Why am I getting a 500 Internal Server Error when using GraphiQL API?

Why am I getting a 500 Internal Server Error when using GraphiQL API?

maxwkf
Shopify Partner
16 1 0

Hi,

 

I am using the GraphiQL API to upload products.  However, it returns 500 Internal Server Error on 

bulkOperationRunMutation.
 
How should I debug what is going on?
 
Thanks
Max
Replies 4 (4)

maxwkf
Shopify Partner
16 1 0

I have got the following message today.

 

array:1 [▼ // app/Services/ShopifyApi.php:336
"errors" => array:1 [▶
0 => array:2 [▶
"message" => """
Internal error. Looks like something went wrong on our end.
Request ID: 2832eec6-1a31-4c87-b9cd-48657f1ffb20 (include this in support requests).
"""
"extensions" => array:2 [▶
"code" => "INTERNAL_SERVER_ERROR"
"requestId" => "2832eec6-1a31-4c87-b9cd-48657f1ffb20"
]
]
]
]

SBD_
Shopify Staff
1829 271 415

Hey @maxwkf, are you able the share the smallest version of your query that hits this error? (feel free to DM)

Scott | Developer Advocate @ Shopify 

maxwkf
Shopify Partner
16 1 0

Hi @SBD_ ,

 

This is the php I created to work with GraphiQL.

https://github.com/Annesley-Gandon/tempsharing/blob/main/ShopifyApi.php

 

I am calling the  uploadProductsByGraphQl function inside and uploading the 

export_test_import_20230407_50record_1.csv.

It parse the export_test_import_20230407_50record_1.csv to GraphiQL format to upload.

However, when I am calling the getLastProduct function inside, it returns the result correctly.

 

 

FYI, i have created a ticket 39767441.

 

Thanks a lot

Max

 

maxwkf
Shopify Partner
16 1 0

Is that a GPT generated answer?  Looks so generic.  Might I know where is the GraphiQL Logs located? Thanks