Closed ScarVite closed 1 year ago
Can you share the output of:
select extversion from pg_extension where extname = 'pg_net';
Hey, Happy New Year!
Somehow didn't get notified about your comment, but when running your query i got "0.6" as the response
I believe this was related to https://github.com/supabase/pg_net/issues/80. This has been fixed on 0.7, which will be deployed to Supabase soon.
Stumbled onto this while debugging some unexpected behavior related to PG_Net. select extversion from pg_extension where extname = 'pg_net'; = 0.7.1
While the posts above says this was fixed in #80, I got a few ERROR,"request matching request_id not found" errors while debugging a que_system that works but sometimes gets this error before it tries again.
Bug report
Describe the bug
After installing the
pg_net
extension via Database->Extensions GUI the Queries do not get executed, as the background worker is not running. tested this on self-hosted and it's working like intended thereTo Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
pg_net
select net.check_worker_is_up()
pg_net
select net.http_get('https://filesamples.com/samples/code/json/sample2.json')
and take note of the responding id.select net.http_collect_response(id)
- id = result from query beforeExpected behavior
check_worker_is_up should return the process id of the running worker. http_collect_response should return the status success and data along with it (this is on my local supabase cli instance)
Screenshots
As you can see, the response is not collect and instead it tells the request failed
As you can see here the worker is not running.
Additional context
This works on local. The error "request matching request_id not found" only comes to be, as a result of the request not being executed and instead "vanishing"