Closed dbeckwith closed 1 year ago
Correct, see RFC 9110. If you need sub-second precision (which is the case here), you have to use a custom header field.
Ok good to know, I think we'll round this up the the full second so it doesn't break client generators. Really appreciate you catching this!
Seems like this has been fixed now?
I'm using the Space Traders API in Python with a client generated by openapi-generator. When I hit rate-limit errors, I get an error from the underlying
urllib3
library used for the network handling:According to MDN, the
Retry-After
header value must be either a date string or an integer number of seconds.