POST orders returning '500 - Internal Server Error'

MStrudwick
Tourist
9 1 1

Hi, I have been using the Shopify API to post new orders for about 5 months now - and have had no issues. However, in the last 2 weeks, I have started to receive lots of 500 errors when trying to upload orders to `/admin/orders.json` - are there currently known issues with the API? If I reprocess the exact same order after it fails, then the request is successful and valid.

Apologies for not having any request IDs as I'm currently not logging that.

Replies 2 (2)
L_J_K
Shopify Staff
363 54 65

Hey @MStrudwick 

Thanks for getting in touch - it would be tricky to confirm what is happening without the request ID, but I can confirm that there's no known issues affecting Orders API occurring at scale.

Considering it sounds like the errors happen regularly, If you begin logging the request ID's and manage to obtain one from the previous ~10 days, please feel free to head to select the new option to Report an issue [BETA] here , select the option for API, and follow the authentication steps. We can't guarantee all requests or bugs reported here are answered directly, but I would absolutely encourage you use this option and share as much detail as possible. Hope this helps!

 

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
MStrudwick
Tourist
9 1 1

Hi,

 

 

We are receiving 500 Internal Server Errors from the API again.

I now have the response headers:

 

{"reqStatus":500,"shopifyApiError":"Internal Server Error","shopify-headers":{"date":["Thu, 02 Dec 2021 15:08:03 GMT"],"content-type":["application/json; charset=utf-8"],"transfer-encoding":["chunked"],"connection":["close"],"x-sorting-hat-podid":["222"],"x-sorting-hat-shopid":["55897194675"],"x-shopify-stage":["production"],"content-security-policy":["default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v
.shopify.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=df3c287e-80bc-4a17-bceb-9e6bc6a8c8ca"],"x-content-type-options":["nosniff"],"x-download-options":["noopen"],"x-permitted-cross-domain-policies":["none"],"x-xss-protection":["1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=df3c287e-80bc-4a17-bceb-9e6bc6a8c8ca"],"x-dc":["gcp-europe-west1,gcp-us-east1,gcp-us-east1"],"x-request-id":["df3c287e-80bc-4a17-bceb-9e6bc6a8c8ca"],"cf-cache-status":["DYNAMIC"],"expect-ct":["max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""],"server":["cloudflare"],"cf-ray":["6b75779c084674b1-LHR"],"alt-svc":["h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"
; ma=86400, h3-27=\":443\"; ma=86400"]}

 

{"reqStatus":500,"shopifyApiError":"Internal Server Error","shopify-headers":{"date":["Thu, 02 Dec 2021 15:08:03 GMT"],"content-type":["application/json; charset=utf-8"],"transfer-encoding":["chunked"],"connection":["close"],"x-sorting-hat-podid":["222"],"x-sorting-hat-shopid":["55897194675"],"x-shopify-stage":["production"],"content-security-policy":["default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v
 .shopify.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=b4c39a39-b6a4-422a-b639-45553f378434"],"x-content-type-options":["nosniff"],"x-download-options":["noopen"],"x-permitted-cross-domain-policies":["none"],"x-xss-protection":["1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=b4c39a39-b6a4-422a-b639-45553f378434"],"x-dc":["gcp-europe-west1,gcp-us-east1,gcp-us-east1"],"x-request-id":["b4c39a39-b6a4-422a-b639-45553f378434"],"cf-cache-status":["DYNAMIC"],"expect-ct":["max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""],"server":["cloudflare"],"cf-ray":["6b75779c8817773e-LHR"],"alt-svc":["h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"
 ; ma=86400, h3-27=\":443\"; ma=86400"]}}
{"reqStatus":500,"shopifyApiError":"Internal Server Error","shopify-headers":{"date":["Thu, 02 Dec 2021 15:08:04 GMT"],"content-type":["application/json; charset=utf-8"],"transfer-encoding":["chunked"],"connection":["close"],"x-sorting-hat-podid":["222"],"x-sorting-hat-shopid":["55897194675"],"x-shopify-stage":["production"],"content-security-policy":["default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v
 .shopify.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=aec75138-7903-4d5a-99eb-53ca26919c48"],"x-content-type-options":["nosniff"],"x-download-options":["noopen"],"x-permitted-cross-domain-policies":["none"],"x-xss-protection":["1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=aec75138-7903-4d5a-99eb-53ca26919c48"],"x-dc":["gcp-europe-west1,gcp-us-east1,gcp-us-east1"],"x-request-id":["aec75138-7903-4d5a-99eb-53ca26919c48"],"cf-cache-status":["DYNAMIC"],"expect-ct":["max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""],"server":["cloudflare"],"cf-ray":["6b7577a32e53e640-LHR"],"alt-svc":["h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"
 ; ma=86400, h3-27=\":443\"; ma=86400"]}}
{"reqStatus":500,"shopifyApiError":"Internal Server Error","shopify-headers":{"date":["Thu, 02 Dec 2021 15:08:03 GMT"],"content-type":["application/json; charset=utf-8"],"transfer-encoding":["chunked"],"connection":["close"],"x-sorting-hat-podid":["222"],"x-sorting-hat-shopid":["55897194675"],"x-shopify-stage":["production"],"content-security-policy":["default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v
 .shopify.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=08ac4672-1db8-482e-bb81-0f8d87220892"],"x-content-type-options":["nosniff"],"x-download-options":["noopen"],"x-permitted-cross-domain-policies":["none"],"x-xss-protection":["1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=08ac4672-1db8-482e-bb81-0f8d87220892"],"x-dc":["gcp-europe-west1,gcp-us-east1,gcp-us-east1"],"x-request-id":["08ac4672-1db8-482e-bb81-0f8d87220892"],"cf-cache-status":["DYNAMIC"],"expect-ct":["max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""],"server":["cloudflare"],"cf-ray":["6b75779cd801e62c-LHR"],"alt-svc":["h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"
 ; ma=86400, h3-27=\":443\"; ma=86400"]}}
{"reqStatus":500,"shopifyApiError":"Internal Server Error","shopify-headers":{"date":["Thu, 02 Dec 2021 15:08:03 GMT"],"content-type":["application/json; charset=utf-8"],"transfer-encoding":["chunked"],"connection":["close"],"x-sorting-hat-podid":["222"],"x-sorting-hat-shopid":["55897194675"],"x-shopify-stage":["production"],"content-security-policy":["default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v
 .shopify.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=c82a34fe-8e46-4f38-a3fd-fef5c6c74793"],"x-content-type-options":["nosniff"],"x-download-options":["noopen"],"x-permitted-cross-domain-policies":["none"],"x-xss-protection":["1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=c82a34fe-8e46-4f38-a3fd-fef5c6c74793"],"x-dc":["gcp-europe-west1,gcp-us-east1,gcp-us-east1"],"x-request-id":["c82a34fe-8e46-4f38-a3fd-fef5c6c74793"],"cf-cache-status":["DYNAMIC"],"expect-ct":["max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""],"server":["cloudflare"],"cf-ray":["6b75779eabe27457-LHR"],"alt-svc":["h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3-28=\":443\"
 ; ma=86400, h3-27=\":443\"; ma=86400"]}}