App reviews, troubleshooting, and recommendations
Hello,
I am trying to make a grapghql api call using this tutorials
https://github.com/Shopify/shopify-api-php/blob/main/docs/usage/graphql.md
But when I make the request I get this error for each call, could any please help me with what I can doing wrong. Attaching the log file and code screenshot https://prnt.sc/OBaUW4_YADyV this screenshot is from my fresh app as I can not share the real app code.
The error is:
{ "errors": [ { "message": "Variable $input of type ProductInput! was provided invalid value", "locations": [ { "line": 1, "column": 24 } ], "extensions": { "value": [ { "title": "TARDIS" }, { "descriptionHtml": "Time and Relative Dimensions in Space" }, { "productType": "Time Lord technology" } ], "problems": [ { "path": [], "explanation": "Expected [\"{\\\"title\\\"=>\\\"TARDIS\\\"}\",\"{\\\"descriptionHtml\\\"=>\\\"Time and Relative Dimensions in Space\\\"}\",\"{\\\"productType\\\"=>\\\"Time Lord technology\\\"}\"] to be a key-value object responding to `to_h` or `to_unsafe_h`." } ] } } ] }
Thanks in advance.
Regards
Aman Batra
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025