Comments (5)
@steve-chavez I could modify the tests to work with the Postman Echo API. It's designed specifically for this kind of testing, and can be easily swapped with httpbin. Looking through the tests, it would probably only take me half an hour to an hour to implement. Timeouts are still bound to happen occasionally, but it would be an improvement.
from pg_net.
@TheOtherBrian1 Cool. Please go ahead!
from pg_net.
The root cause appears to be timeout errors resulting from the httpbin endpoints being excessively slow (over 2 seconds for response).
@TheOtherBrian1 True, just noticed that as well. I think we should change those tests to use our Nginx server(one is started for the test suite) endpoints or Postman endpoints.
from pg_net.
@steve-chavez I added my changes to a pull request, but the automatic tests were taking an unusually long amount of time (more than an hour). I decided to close my request to prevent the action from maxing out.
The changes I made were fairly mild, so I'm hesitant to think that I accidentally created an infinite loop that held up the server. It's possible that because the actions are dependent on the tests, the modifications interfered with their normal function.
By default Github actions will timeout after 6 hours, which seems excessive in this context. It is probably wise to lower the timeout limit.
from pg_net.
@steve-chavez I have concerns regarding the test_http_requests_deleted_after_ttl
test function. It expects entries in the net._http_response
table to be deleted after 5 seconds of being inserted. However, upon reviewing the worker.c
file, specifically lines 236 and 39, it seems that the deletion cycle has been adjusted to occur every 6 hours.
I may be misinterpreting the C code, but if my understanding is accurate, this test does not seem feasible and may need to be removed or commented out. You have a lot more insight on the inner workings of the extension than I do, so I would like to know your interpretation of this problem.
from pg_net.
Related Issues (20)
- i can not compile pg_net on centos HOT 3
- Multiple versions of nixpkgs HOT 1
- Add retries HOT 6
- ERROR: extension "pg_net" has no installation script nor update path for version "0.7.3" HOT 2
- "SSL connect error", "Error in the HTTP2 framing layer" while using edge functions HOT 3
- Show libcurl version
- Fail to compile with the latest libcurl 7.76.1
- Error with net.http_post : query has no destination for result data HOT 1
- UNLOGGED table segfault causing whole cluster to restart HOT 1
- Order is not guaranteed on rapidly generated requests to same end point.
- pg_net prevents `DROP database foo` from succeeding
- Can't send HTTP requests to localhost from a trigger function HOT 16
- `net._http_response` rows do not respect TTL
- Failed to toggle PG_NET: failed to create pg.extensions: function net.http_collect_response HOT 8
- Cannot enable pg_net extension HOT 1
- pg_net not working in self-hosted supabase HOT 7
- pg_net doesn't support 308 redirects HOT 1
- cleanup of net._http_response table HOT 11
- Self Hosted / Docker `supabase/postgres:15.1.0.109_arm64` : Worker does not execute requests HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg_net.