Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove net._http_collect_response usage #116

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

steve-chavez
Copy link
Member

The net._http_collect_response was never meant to be used by end users. It only was meant as an internal function for testing.

Why? Because it uses an endless loop (net._await_response) which is not safe when running inside a transaction.

Previously it was removed from

https://supabase.com/docs/guides/database/extensions/pg_net

For the same reason.

If there's a need for sync requests, the current recommendation is to use pgsql-http.


cc @TheOtherBrian1

The _http_collect_response was never meant to be used by end users. It
only was meant as an internal function for testing.

Why? Because it uses an endless loop (net._await_response) which is not
safe when running inside a transaction.

Previously it was removed from

https://supabase.com/docs/guides/database/extensions/pg_net

For the same reason.

If there's a need for sync requests, the current recommendation
is to use pgsql-http.
@steve-chavez steve-chavez merged commit 1680fe4 into supabase:master Nov 7, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants