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

Reverse Proxy - 400 Bad Request #355

Closed
6 tasks
EVOTk opened this issue Sep 4, 2020 · 4 comments
Closed
6 tasks

Reverse Proxy - 400 Bad Request #355

EVOTk opened this issue Sep 4, 2020 · 4 comments
Labels
a:bug Something isn't working

Comments

@EVOTk
Copy link

EVOTk commented Sep 4, 2020

Can the issue be reproduced with the latest available release? (y/n) y

Which one is the environment gotify server is running in?

  • [X ] Docker Synology DSM 6
My Compose :
![PS7i9BM](https://user-images.githubusercontent.com/45015615/92289954-b0a0cf00-ef12-11ea-9105-848bee373414.png)

Do you have an reverse proxy installed in front of gotify server? (Please select None if the problem can be reproduced without the presense of a reverse proxy)

  • None
  • [ X] Nginx
  • Apache
  • Caddy
In Synology Proxy Header :

Upgrade $http_upgrade
Connection "upgrade"
X-Real-IP $remote_addr
X-Forwarded-For $proxy_add_x_forwarded_for
X-Forwarded-Proto http
Host $http_host

On which client do you experience problems? (Select as many as you can see)

  • WebUI
  • gotify-cli
  • [ X] Android Client
  • 3rd-party API call (Please include your code)

What did you do?
Remote Connection

What did you see instead? (Include screenshots, android logcat/request dumps if possible)
Screenshot_20200905-004900
I sometimes receive notifications, and I often get "Bad Request" error messages

@EVOTk EVOTk added the a:bug Something isn't working label Sep 4, 2020
@EVOTk EVOTk changed the title Android App - 400 Bad Request Reverse Proxy - 400 Bad Request Sep 4, 2020
@jmattheis
Copy link
Member

Please also add your gotify/server log output.

@EVOTk
Copy link
Author

EVOTk commented Sep 4, 2020

Thx for your reply ! in log gotify/server i'm found :

Error #1: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header

In my reverse proxy, i'm change :
Connection "upgrade"
to
Connection upgrade

and the error is no longer there! the "Bad Request" error has disappeared!
Do you think it is useful to add an intermediate docker on my syno, in order to have a proxy with parameters like:
proxy_connect_timeout 7m;
proxy_send_timeout 7m;
proxy_read_timeout 7m;

That it is not possible to include basic in Synology?

@jmattheis
Copy link
Member

Gotify should work without these parameters.

@EVOTk
Copy link
Author

EVOTk commented Sep 5, 2020

Thx for your reply

@EVOTk EVOTk closed this as completed Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug Something isn't working
Development

No branches or pull requests

2 participants