strapi-plugin-content-export-import icon indicating copy to clipboard operation
strapi-plugin-content-export-import copied to clipboard

Import throw Error: not found

Open MauriceOppenberger opened this issue 4 years ago • 5 comments

Hi,

Thanks for this plugin. I installed the plugin and gave it a test run. The export works as expected, however, the import throws a NOT FOUND error.

main.1b25cb36.chunk.js:1 POST http://localhost:1337/content-export-import/import 404 (Not Found) debug POST /content-export-import/import (8 ms) 404.

Can you suggest anything that could solve this issue? Please let me know if what further information you would need.

Thanks

MauriceOppenberger avatar Jun 11 '20 15:06 MauriceOppenberger

Hi @MauriceOppenberger ,

I kind of remember I have met this issue as well. A few things you could try to find more information:

  • Check the permission
  • Did you run yarn build then yarn develop? Not sure if you follow the steps one by one.
  • There could be an internal error, but strapi will throw 404 instead, check this issue https://github.com/strapi/strapi/issues/1522 So maybe there's something wrong with the code and specific content, maybe try a content type quite simple with only text field to test.

lazurey avatar Jun 15 '20 07:06 lazurey

Hi @lazurey , Can we have a sample for the JSON to import, im facing the same issue.

console showing :

Screen Shot 2020-07-01 at 11 48 33 PM

mohmmadmoussa1988 avatar Jul 01 '20 20:07 mohmmadmoussa1988

hi @mohmmadmoussa1988 a really simple example could be this:

[
  {
    "id": 1,
    "title": "unique",
    "content": "There is something to eat aha",
    "created_at": "2020-06-08T01:48:47.555Z",
    "updated_at": "2020-06-08T01:48:47.555Z"
  }
]

You need to create a content type with only 2 fields, title and content to test.

lazurey avatar Jul 02 '20 00:07 lazurey

I tried a simple example to import but it shows an error:

image

Any hints on this? (Strapi 3.1.3)

jolic avatar Aug 11 '20 02:08 jolic

Anyone have any luck with this? - am on strapi 3.2.4 and get the same thing.

jumptrnr avatar Oct 19 '20 19:10 jumptrnr