-
Notifications
You must be signed in to change notification settings - Fork 129
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 and crash when doing PUT request but GET works fine #198
Comments
Hm, I'm not sure what is causing the error. Since it has a If you are using
Is this via the same JS SDK instance? |
Sure, the code is just this for the update: I'll review these notes, thank you! |
I'll close the issue for now since I don't think it is related to the JS SDK and I'm not sure how to reproduce it. If you weren't able to find the reason for the error, feel free to provide a minimal reproducible steps/repo and I'll try to investigate it. |
For people who stumbled on this error recently and is using vercel (Like I did), apparently they are having some problems: |
I have a nodejs (v18) pocketbase script that is crashing when I attempt to update the model. The error is a timeout. But, the GET request works fine.
(
Node.js v18.16.0
)Right at the crash I get a stack trace with this:
file:///app/www/node_modules/pocketbase/dist/pocketbase.es.mjs:1
(then lots and lots of JS code from the pocketbase library).This app is running inside dokku (and the request is running as a cron job inside the container). I would have assumed that this is an issue with the internal ports and external ports not being wired together correctly and the docker host not sending traffic to the correct backend (pocketbase) container, but the fact that a GET request works makes my head spin.
If I run things outside the container, it works fine. It clearly is an issue with the way traffic is being routed between containers and the nginx front end, but I'm really stumped as to why GET works but PUT does not.
The text was updated successfully, but these errors were encountered: