Internal error. Looks like something went wrong on our end

Hi all,

I’ve received the following internal server error: Internal error. Looks like something went wrong on our end. Request ID: 5df0a44a-c6cd-417b-b4e2-60ad6f1883b4

Is there someone that can look up this request ID and provide some detail on what is going wrong? Thanks!

{"query":"mutation{refundSessionResolve(id:\"gid://shopify/RefundSession/gVPpQnntcZIab0yPsGA7eyqQ\"){refundSession{ id status{ code } } userErrors{ field message }}}"}

Hi @Taoy

We’re going to need a little more info for this issue - could you please fill out the Report an Issue form found under the Partners Support section? This and any additional information you can provide around this issue would be very helpful, such as whether you can query for the refund session itself successfully, and any other examples of this behaviour.

Thanks!

Hi @csam ,

I came across the same issue.

It seems before calling RefundSessionReject, Shopify want the payment app to reply with status code 201 first before calling RefundSessionReject…

Not working:

Refund request received from Shopify.

Call RefundSessionReject, receive error.

Working:

Refund request received from Shopify.

Respond to Shopify with status code 201.

Call RefundSessionReject, receive success response.

Is it because Shopify assume refund cannot be confirmed immediately? and should return status code 201 first before calling RefundSessionReject?

Please advise

Regards,

Christian

Hi @AsiaPay

Yes, Shopify would want the payment app to confirm that the refund session was successfully created, it then waits for the session to be finalized with either the reject or resolve call from the app.

Regards,

Hi @csam ,

We are trying to complete refund flow, all works as you wrote, but in order history after we send 201 response Shopify reported an error message as below

And immediately after when we call mutation with refundSessionResolve we have that refund go ok

Are you sure that is it the expected behaviour?