You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making API requests to Supabase using PostgREST client, the server unexpectedly disconnects, resulting in a httpx.RemoteProtocolError: Server disconnected error. This happens consistently when trying to retrieve data from a specific table or batch insert.
To Reproduce
Steps to reproduce the behavior:
Set up a connection to Supabase using client
Attempt to execute a query to retrieve data from a table
The server disconnects during the request, throwing a RemoteProtocolError
Code snippet demonstrating the issue:
# Using postgrest client to query a tableresult=client.table("my_table").select("*").eq("key", "value").execute()
# This results in server disconnection
Expected behavior
The query should complete successfully and return the requested data without any server disconnection.
System information
OS: Linux
Version of postgrest-py: [latest]
Version of httpx: [latest]
Python version: 3.11
Additional context
As of now, We have added retry mechanism over certain call during exception of HTTPX disconnect. Following stack trace,
File "/usr/local/lib/python3.11/site-packages/postgrest/_sync/request_builder.py", line 58, in execute
r = self.session.request(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 825, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/dd_tracer/python/ddtrace/contrib/internal/httpx/patch.py", line 166, in _wrapped_sync_send
resp = wrapped(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 914, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_client.py", line 1014, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 249, in handle_request
with map_httpcore_exceptions():
File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.RemoteProtocolError: Server disconnected
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
When making API requests to Supabase using PostgREST client, the server unexpectedly disconnects, resulting in a
httpx.RemoteProtocolError: Server disconnected
error. This happens consistently when trying to retrieve data from a specific table or batch insert.To Reproduce
Steps to reproduce the behavior:
RemoteProtocolError
Code snippet demonstrating the issue:
Expected behavior
The query should complete successfully and return the requested data without any server disconnection.
System information
Additional context
As of now, We have added retry mechanism over certain call during exception of HTTPX disconnect. Following stack trace,
The text was updated successfully, but these errors were encountered: