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

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

I have got the following message today.

array:1 [▼ // app/Services/ShopifyApi.php:336
“errors” => array:1 [:play_button:
0 => array:2 [:play_button:
“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 [:play_button:
“code” => “INTERNAL_SERVER_ERROR”
“requestId” => “2832eec6-1a31-4c87-b9cd-48657f1ffb20”
]
]
]
]

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

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

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