-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Gzip on the server was stopping Transmit from working #31
Comments
Hey @eduwass! 👋🏻 This is interesting! Do you know which Reverse Proxy Coolify is setting up on your server? Also, do you have any logs on your server that may explain why I needed to add a few headers to make it work properly with |
Hi @RomainLanz 👋 Thanks for chiming in so quickly! I believe Coolify does set up a reverse proxy using Traefik to manage traffic, here's a Configuration file I've found:
Regarding the request, my server logs were showing a completed HTTP request, but it didn't show up as completed in the browser:
The moment I disabled Gzip in the Coolify UI, this option here: The request started successfully responding. I've deployed two instances of the same project with and without gzip to be able to easily see the difference in behavior: If you open up network tab on the gzip one you'll see how /events is not resolving. |
Can you try to monkeypatch the |
Package version
2.0.2
Describe the bug
Bug Report: Gzip Interference with Adonis Transmit/Client on Coolify Deployment
Description:
I'm new to Adonis and encountered an issue when deploying Adonis with Transmit (
@adonisjs/transmit
v2.0.2) and Transmit Client (@adonisjs/transmit-client
v1.0.0) packages on a Hetzner VPS via Coolify. The setup works perfectly on my local machine but fails after deployment. I'm not entirely sure if this is a bug, but I wanted to report it in case others experience the same issue.Environment:
Steps to Reproduce:
Expected Behavior:
Transmit should work as expected after deployment, similar to the local environment.
Actual Behavior:
__transmit/subscribe
HTTP request is missing in production. For example, accessinghttp://localhost:3333/__transmit/subscribe
does not work in production.__transmit/events?uid=xxx
request in production does not get a200 OK
response.Workaround:
Disabling Gzip in Coolify (an option in the Coolify dashboard) resolved the problem.
Additional Information:
Since I'm new to Adonis, I’m not sure if this is a bug or a configuration issue. I'm happy to provide more details or logs if necessary.
If it's an actual configuration issue, I think adding this to the documentation for future users would be a good addition.
Thanks for the awesome work!
Reproduction repo
No response
The text was updated successfully, but these errors were encountered: