supabase / pg_net

A PostgreSQL extension that enables asynchronous (non-blocking) HTTP/HTTPS requests with SQL
https://supabase.github.io/pg_net
Apache License 2.0
213 stars 16 forks source link

clarify how to use pg_net on a different database #99

Closed soedirgo closed 1 year ago

soedirgo commented 1 year ago

why is this flaky :(

TheOtherBrian1 commented 1 year ago

The tests make requests that timeout before a response can be returned. The default max time for any request is 2 seconds. The endpoint, httpbin, is too slow, so the tests receive a timeout error instead of an expected response.

I tried changing the API endpoint from httpbin to postman's testing API in a pull request some time ago. I was hoping utilizing a more reliable endpoint would solve the issue. However, after Github actions took over an hour to execute the test, I closed my request.

I'm not too familiar with Github actions, but perhaps modifying the testing code it relied on resulted in strange behaviors. Either or, if you can limit the max runtime for the actions, I think you should.

steve-chavez commented 1 year ago

The endpoint, httpbin, is too slow, so the tests receive a timeout error instead of an expected response.

Will move the tests to our openresty server in another PR

Edit: https://github.com/supabase/pg_net/pull/102