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

pg_net worker on hosted not running/requests not being executed #76

Closed
ScarVite opened this issue Dec 20, 2022 · 4 comments
Closed

pg_net worker on hosted not running/requests not being executed #76

ScarVite opened this issue Dec 20, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@ScarVite
Copy link

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 there

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to Databases -> Click on Extensions -> Enable pg_net
  2. Switch to SQL Tab and execute following query select net.check_worker_is_up()
  3. Failed to run sql query: the pg_net background worker is not up
    Other way to test:
  4. Go to Databases -> Click on Extensions -> Enable pg_net
  5. Switch to SQL Tab and execute following query select net.http_get('https://filesamples.com/samples/code/json/sample2.json') and take note of the responding id.
  6. select net.http_collect_response(id) - id = result from query before
  7. get error "request matching request_id not found"

Expected 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
success (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
collect_response

As you can see here the worker is not running.
worker

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"

@ScarVite ScarVite added the bug Something isn't working label Dec 20, 2022
@steve-chavez steve-chavez transferred this issue from supabase/supabase Dec 20, 2022
@steve-chavez
Copy link
Member

Can you share the output of:

select extversion from pg_extension where extname = 'pg_net';

@ScarVite
Copy link
Author

ScarVite commented Jan 2, 2023

Hey, Happy New Year!

Somehow didn't get notified about your comment, but when running your query i got "0.6" as the response

@steve-chavez
Copy link
Member

I believe this was related to #80. This has been fixed on 0.7, which will be deployed to Supabase soon.

@northfacejmb
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants