A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Working until yesterday afternoon, I now get (from my app) a "406 Not acceptable" header when attempting to create a gift card on a plus store I have collaborator and development access to.
I am using the admin rest api and can use "GET" to get a list of gift cards, but using "POST" has suddenly stopped creating cards.
My app receives no response body, yet replicating the request in postman receives an html-based error attempting to redirect to an oauth URL.
Support / live chat suggested lokking/posting in the forums
Solved! Go to the solution
This is an accepted solution.
As many other 406 issues have identified a typo in the request, I have identified something similar in my requests.
The curl handle I was using in my PHP script was being over used and recycled. As such, additional headers were present and these were not understood or accepted by Shopify.
Using a new curl handle solved the issue
Hi,
As mentioned here.
Is your app a custom/private app and does it have the write_gift_cards access scope
Hi,
Thanks for the response.. it is a private app and does have the correct access scope
This is an accepted solution.
As many other 406 issues have identified a typo in the request, I have identified something similar in my requests.
The curl handle I was using in my PHP script was being over used and recycled. As such, additional headers were present and these were not understood or accepted by Shopify.
Using a new curl handle solved the issue