Closed seminarian closed 1 year ago
Well, after a bit of digging I realized that the problem comes from Contentful which changed the default content type. You have to set it manually.
@Baldrani Thanks for pitching in. We'll make sure to add a note in our documentation :)
cc @shahednasser
Well, after a bit of digging I realized that the problem comes from Contentful which changed the default content type. You have to set it manually.
@Baldrani Thanks a lot, you save my life!
Bug report
Describe the bug
Sync back from Contentful via webhooks to Medusa server fails. Reponse returned has status code 400.
Information from the Web hook detail page in Contentful:
Medusa dev server POST http://REMOVED_FOR_PRIVACY:9000/hooks/contentful 2023-01-11T21:05:00.055Z HTTP 400
Request Headers
Response headers
Response body
System information
medusa-plugin-contentful: 1.2.4 @medusajs/medusa: 1.7.3 Node.js version: 17.1.0 Database: postgres Operating system: Docker version
Steps to reproduce the behavior
I've followed this guide: https://www.contentful.com/blog/create-a-composable-commerce-site-with-contentful-and-medusa/
The sync from Medusa to Contentful works.
Though the sync back to medusa, using Contentful hooks fails.
Expected behavior
After editing a product in Contentful see the changes synced to Medusa.
Additional context
Two locales are active in Contentful: