httpx.RemoteProtocolError: <ConnectionTerminated error_code:ErrorCodes.NO_ERROR, last_stream_id:0, additional_data:7b22726561736f6e223a22426164436572746966> #2509
Replies: 3 comments
-
|
The server is closing the connection. |
Beta Was this translation helpful? Give feedback.
-
|
We are using a single sync httpx.Client(http1=False, http2=True) with ThreadPoolExecutor. It works ok with 1 thread, but 5+ threads sometimes cause different errors: Traceback doesn't help to solve the issues. Could it be a problem with sharing one client between threads? Creating a client inside each thread works well, allowing for 50 threads to perform efficiently. |
Beta Was this translation helpful? Give feedback.
-
|
This happens when server side starts dropping connections, this is not httpx, server side limitations. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a webservice to update a wallet pass using apns push notifications. I am using httpx for this as it can use http/2. I have the following test code for this:
When I try to run this, I am getting the following traceback and error:
Can someone please help me navigate this error and send a successful request to APNS?
Beta Was this translation helpful? Give feedback.
All reactions