JWKClient.get_jwk_set()
raises http.client.IncompleteRead
#1013
Labels
stale
Issues without activity for more than 60 days
When trying to integrate into an internal JWKS endpoint,
PyJWKClient.get_jwk_set()
returnshttp.client.IncompleteRead
.I can fetch the content via curl.
As an aside, I also successfully get the response using both
htpx.get()
andrequests.get()
. I can convert that result into ajwt.PyJWKSet
(usingjwt.PyJWKSet.from_dict(response.json())
. Then the rest of the validation works.Additionally, I'm able to get the same results just using
urllib.request.Request
(as done here) directly.Expected Result
The call should return the key set. I've verified. Ideally, the JWKClient would handle retrying this within the
PyJWKClient.fetch_data
method.This example works after one retry. (expand)
Actual Result
Reproduction Steps
System Information
The text was updated successfully, but these errors were encountered: