Strapi Import or Transfer Pull Failed

System Information
  • Strapi Version: v4.20.5
  • Operating System: Ubuntu
  • Database: Postgres
  • Node Version: v18.18.2
  • NPM Version: 9.8.1
  • Yarn Version: 1.22.19

I got following error when run strapi import or strapi transfer from remote

[2024-05-16 08:52:54.149] error: [FATAL] restore failed TypeError: Cannot read properties of undefined (reading 'originalUrl')

any advice?

Thanks

Open the repo from root and search every file for “originalUrl”. One of the results will be somevariable.originalUrl. That variable is undefined and is throwing the error. You’ll want to optional chain, or wrap it in an if, however you want to go about making sure that somevariable is not undefined.