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
Error 504 Gateway Time-out with POST (on Node.JS) #4342
Comments
I solved the problem by reverting to the old nodejs version: v14.19.0 |
hapi 16 requires paid support and probably doesn't work with node 16, you should upgrade. |
I can pay if it is not very expensive. According to your comment, I have two choices:
How to contact you to update? |
@Madriix There was a big major breaking change between version 16 and version 17 (full rewrite to async/await). You can find a detailed upgrade explanation here: #3658. You can use this search for the other versions: https://github.com/hapijs/hapi/issues?q=label%3A%22breaking+changes%22+is%3Aclosed. I believe there were several breaking changes in Since you're still on The support of older I highly suggest you to look into upgrading your hapi version since I don't think the services offered by Eran will last forever. |
I managed to recode everything, put the latest version of node back, and put the latest version of "@hapi/<..." and everything is working now. Here's the new one (for server.js):
Here is the old one:
For this part, know how to restore it?
content of cachebuster.js (1 file only) :
Paid support or maybe the cache buster is useless as my project is running?! on the other hand there is no longer any cache buster. |
Well done @Madriix, I'm glad to know you managed to fix everything and migrate to the latest Regarding the cachebusting it seems that code is style pre-v17. You can find some basic information regarding plugins in our plugins section on the website: https://hapi.dev/tutorials/plugins/?lang=en_US. I don't expect it to be hard to migrate over the latest version.
That's basically what the code you shared seems to be doing. |
@Nargonath thanks for motivating me, i put this up and it looks working : cachebuster.js:
|
Well done @Madriix. 👍 |
Hi, what is the difference between "new" and without? :
Which should be used? I removed it and I see no difference |
Technically both Lines 17 to 23 in dc2213c
|
Hi
I have a problem with POST, the /_test2 page is slowing down and after a minute there is a 504 error code Gateway Timeout
Do you know where the problem could come from?
is it at least possible to send a post on /_test2 with jquery?
I have a Debian 11, hapi v16.0.1, Nodejs v16.14.0 with GET it works fine, but not with POST.
What is strange is that locally on my PC, this POST works without problem, but not on the dedicated server
Cordially
The text was updated successfully, but these errors were encountered: