pg_net extension and which table to retrieve http_post response #13000
|
I'm trying to implement a http_post select statement to add a contact in Hubspot from a Supabase function/trigger when a new user is add/created. I've a working select statement: Reading the documentation I should use the following command to retrieve the result of the above select statement: When executing this select statement I get the following error message:
I do not have any glue why this error message is raised? What is wrong with the from the doc copied statement? When I run the following command:
I get a good result: The difference is that it is a different result table! net._http_response and net.http_collect_response. Are my findings correct and should I use the net._http_response table or am I doing something wrong? If so, what am I doing wrong? Thanks for your support. |
Replies: 2 comments
The It's deprecated and shouldn't be used. For now you can query the |
|
Hey rgroothuis, |

The
net.http_collect_responsefunction executes aRAISE,see https://github.com/supabase/pg_net/blob/master/sql/pg_net.sql#L335-L353.It's deprecated and shouldn't be used. For now you can query the
net._http_responsedirectly. Once supabase/pg_net#62 it's done that won't be necessary anymore.