return 406 Not Acceptable when Post /graphql

hcnode
New Member
1 0 0

Hi,

I follow the tutorial Build a Shopify App with Node and React  ,  everything  is fine but after selecting product, there is error show in the page:

image.png

 

And there is request return 406, can anyone tell me if anything that I missed? (I did not step by step follow the tutorial, just cloned the github project(https://github.com/Shopify/shopify-demo-app-node-react) and run dev)

0 Likes
VineshG
Tourist
3 0 8

Hey! Were you able to solve it? I'm running into exactly the same issue.

0 Likes
mrfochon
Excursionist
22 1 4

same here, any solution ?

0 Likes
Echizen
New Member
2 1 3

I got the solution:

On the your app setup page of your shopify partner account, check the `Event Version`:

image.png

Then update your `server.js` with the version (here for me it's April20 instead of October19):

server.use(graphQLProxy({ version: ApiVersion.April20 }));
AB316
New Member
1 0 0

I had the same error.  The solution from @Echizen works. Thanks.

0 Likes