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

422 Client Error: Unprocessable Entity for url: /admin/api/2021-10/webhooks.json #10

Open
klauBertram opened this issue Aug 21, 2021 · 2 comments

Comments

@klauBertram
Copy link

Hi there,

Thank you for your example. Still learning the ins and outs of the Shopify apps ecosystem. I am creating a custom app and running the repo in docker. Whenever I make a code change in the app, then I would refresh the store page, and I would get an error 422, however, on 2nd refresh of the store page, the page would load fine. Do you mind pointing me in the right direction so I can fix this? Thanks again!

@fersarr
Copy link

fersarr commented Aug 22, 2021

Hey! I'm no shopify expert but I was just bumping into the same issue and I think it is because Shopify returns the Error 422 if the webhook is already registered for that shop. See here: https://community.shopify.com/c/Shopify-APIs-and-SDKs/Subscribing-to-a-webhook-via-API/td-p/568703

requests.exceptions.HTTPError: 422 Client Error: Unprocessable Entity for url: https://xxxx.myshopify.com/admin/api/2020-01/webhooks.jso

But that issue is surrounded by a try-catch, so it shouldn't affect your flow

@klauBertram
Copy link
Author

klauBertram commented Aug 23, 2021 via email

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

2 participants