Invalid Retry-After Header Response

Highlighted
Shopify Partner
4 0 1

Shopify is returning an invalid response with the 429's as the value for the Retry-After as "2.0"

It should not include the decimal point.  The ABNF is 1*DIGIT which only allows digits and not the decimal point.  The term "decimal interfere" indicates it is a base 10 interger.

Per the HTTP spec:

https://tools.ietf.org/html/rfc7231#section-7.1.3

This is causing an exception to be thrown in the Python urlib3 library.

1 Like
Shopify Staff
Shopify Staff
619 76 139

Hey @Bryan_Jordin,

Thanks for bringing this up, I'll raise the issue with our developers for further clarification.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Shopify Partner
10 1 1

was this fixed?

0 Likes
Highlighted
Shopify Partner
10 1 1

No, I don't think it was. Bad.

0 Likes
Highlighted
Shopify Partner
4 0 1

I only saw this error when running the code locally on my mac which has a different version of Python and urlib3 installed than on our production servers.  Would be great to get an update from Shopify, but I wouldn't hold my breath for that to happen.

0 Likes
Highlighted
Shopify Partner
10 1 1
I ran into it on one endpoint, I suppose I am hammering it. I made my own
retry around the exception.

0 Likes