What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Getting a "Failed to parse the mutation - Unexpected end of document" error on all bulk queries

Getting a "Failed to parse the mutation - Unexpected end of document" error on all bulk queries

Schmidtc63
Shopify Partner
101 14 29

query:

 

mutation {bulkOperationRunMutation(mutation: "mutation call($input: ProductInput!) {productUpdate(input: $input) {product {id {variants(first: 20) {nodes {id sku}}}}}", stagedUploadPath: "tmp/63578079486/bulk/62552451-7eba-4cc1-85df-c947a5559999/1669363450") {bulkOperation {id url status} userErrors {message field}}}

 

response:

 

{"data":{"bulkOperationRunMutation":{"bulkOperation":null,"userErrors":[{"message":"Failed to parse the mutation - Unexpected end of document","field":null}]}},"extensions":{"cost":{"requestedQueryCost":10,"actualQueryCost":10,"throttleStatus":{"maximumAvailable":2000.0,"currentlyAvailable":1990,"restoreRate":100.0}}}}

 

input file:

 

{"input":{"id":"gid:\/\/shopify\/Product\/7931585659999","privateMetafields":[{"namespace": "product", "key": "matrixify", "valueInput": {"value": "1", "valueType": "STRING"}}]}}
{"input":{"id":"gid:\/\/shopify\/Product\/7931587494999","privateMetafields":[{"namespace": "product", "key": "matrixify", "valueInput": {"value": "1", "valueType": "STRING"}}]}}
{"input":{"id":"gid:\/\/shopify\/Product\/7931588116999","privateMetafields":[{"namespace": "product", "key": "matrixify", "valueInput": {"value": "1", "valueType": "STRING"}}]}}

 

 

The exact same query works on a different store. 

What could the issue be?

I've verified the file actually exists on google drive. 

Replies 0 (0)