Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import throw Error: not found #5

Open
MauriceOppenberger opened this issue Jun 11, 2020 · 5 comments
Open

Import throw Error: not found #5

MauriceOppenberger opened this issue Jun 11, 2020 · 5 comments

Comments

@MauriceOppenberger
Copy link

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

@lazurey
Copy link
Owner

lazurey commented Jun 15, 2020

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 Custom api routes and controllers return 404 not found strapi/strapi#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.

@mohmmadmoussa1988
Copy link

mohmmadmoussa1988 commented Jul 1, 2020

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

@lazurey
Copy link
Owner

lazurey commented Jul 2, 2020

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.

@jolic
Copy link

jolic commented Aug 11, 2020

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

image

Any hints on this? (Strapi 3.1.3)

@jumptrnr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants