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

Timeout for large payload #174

Open
2 tasks done
dthib opened this issue Jan 14, 2025 · 0 comments
Open
2 tasks done

Timeout for large payload #174

dthib opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@dthib
Copy link

dthib commented Jan 14, 2025

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

When the payload is large, it does not reach the endpoint and seems stuck in pg_net until a timeout is reached. This is the case with the latest pg_net version (0.14.0) installed by default but is not the case on one production system using 0.7.x pg_net version.

To Reproduce

With latest supabase version.
I have searched for a while but now we are sure that it's not related to our api because we were able to reproduce it with https://webhook.site.

  1. Go to webhookt.site and create a endpoint
  2. Execute the query below
    select * from net.http_post(
    'https://webhook.site/11a266de-f1b6-48d9-9477-3aeb8c8098cc',
    '$PAYLOAD'::jsonb)
    by replacing $PAYLOAD with the joined json payload.

testpayload.txt

  1. Please note that the same query with a smaller payload is ok. Please not too that sending the payload directly to https://webhook.site using postman works too.

Smaller payload testpayload_works.txt

Expected behavior

Request beeing sent to the server

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: macOs
  • Version of supabase postgres docker 15.8.1.020
  • pg_net installed 0.14.0

Additional context

I wanted to try other pg_net versions but I can't drop & reinstall the extension as the owner is supabase_admin.

@dthib dthib added the bug Something isn't working label Jan 14, 2025
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

1 participant