-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
[BUG] Error 500 while importing when using postgres #113
Comments
@rtkac do you have any server logs? |
Hi, here are the server logs:
|
I'm getting the same issue. I'm migrating data from Strapi v4.5.2 to v4.90 using |
Fixed in |
@Baboo7 Thanks!
Should work in both situations, right? :D |
Import should work only if the collection type is known by the app. I haven't tested importing data for a collection that hasn't been created before, and actually unknown slugs are ignored |
OK thanks. So it looks like it's working now :) What do you think about this feature mentioned in point 2.? Is it realistic? It will be great to have such a functionality (to import collection type with its data). |
It looks interesting but it requires a lot of investigation to see how strapi handles the creation of a new collection. Plus a change in how data is exported at the moment, which is not the main blocking part. We'll see how many times this feature will be requested |
Regarding the sync of content model along with content, sounds like a bad idea. The content model is code and this is a plugin for moving content. Content model changes should be managed as code (e.g. version control, etc), especially since they are creating tables in a database. |
I can see 500 error response while uploading when using postgres database:
{"data":null,"error":{"status":500,"name":"InternalServerError","message":"Internal Server Error"}}
Body payload:
{"slug":"custom:db","data":"{\n\t\"version\": 2,\n\t\"data\": {\n\t\t\"plugin::upload.folder\": {},\n\t\t\"plugin::upload.file\": {},\n\t\t\"api::test1.test1\": {\n\t\t\t\"1\": {\n\t\t\t\t\"id\": 1,\n\t\t\t\t\"name1\": \"test 1 name\",\n\t\t\t\t\"createdAt\": \"2023-04-24T07:54:55.073Z\",\n\t\t\t\t\"updatedAt\": \"2023-04-24T07:54:55.073Z\",\n\t\t\t\t\"publishedAt\": null,\n\t\t\t\t\"media1\": null,\n\t\t\t\t\"createdBy\": null,\n\t\t\t\t\"updatedBy\": null\n\t\t\t}\n\t\t}\n\t}\n}","format":"json","idField":"id"}
Do you know what could be a problem?
FYI:
Thanks!
The text was updated successfully, but these errors were encountered: