Testing Shopify app with Shopify GraphQL query is giving a strange error

Highlighted
New Member
3 0 0

Hello, I am trying to test a simple Shopify app using a development store. I am making a simple query for product titles of a store and displaying those titles within a Polaris data table. For an unknown reason, I am getting this error that is difficult to parse when loading the app onto the store.

 

Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:87:16)

 
This error is occurring during the process of loading the shopify app. The app successfully displays the <p>loading...<p> in the loading conditional but does not successfully load afterwards. Rather, it remains displaying the loading paragraph and then the above error message is displayed in succession about 5 or 6 times to console on my code editor and then the app displays an empty screen. The pastebin link below has the code.

 https://pastebin.com/zWsWGPje

0 Likes
Highlighted
Shopify Staff
Shopify Staff
493 98 88

Hey @Zavien 

 

Are you using koa? if so, can you try reverting your koa-shopify-graphql-proxy to version 2.1.5? That step of the tutorial would be here: https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/fetch-data-with-apo... if you are following this. Also, make sure you are utilizing the code correctly with the correct version:  server.use(graphQLProxy({version: ApiVersion.October19}))

 

Let me know any more information about when this error is occurring if possible! 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes
Highlighted
New Member
3 0 0

I downgraded the koa-shopify-graphql-proxy package to 2.1.5. This did get rid of the EPIPE error but now I am getting a new error altogether.

Network error: Unexpected token < in JSON at position 1
0 Likes
Highlighted
New Member
3 0 0

@vix 

0 Likes