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

when using http2 its not possible to make api calls #24

Closed
jmattheis opened this issue Nov 12, 2018 · 8 comments
Closed

when using http2 its not possible to make api calls #24

jmattheis opened this issue Nov 12, 2018 · 8 comments
Assignees
Labels
a:bug Something isn't working
Milestone

Comments

@jmattheis
Copy link
Member

See gotify/server#70

@jmattheis jmattheis added a:bug Something isn't working prio:high labels Nov 12, 2018
@jmattheis jmattheis self-assigned this Nov 12, 2018
@jmattheis jmattheis added this to the 2.0.3 milestone Nov 12, 2018
@xp-1000
Copy link

xp-1000 commented Nov 12, 2018

Thanks @jmattheis.
I will be happy to help if you need.

@flocke
Copy link

flocke commented Nov 15, 2018

Just ran into this issue when trying to connect to my gotify server using my nginx proxy.
I'm happy to help with testing and debugging if you need anything.

@jmattheis
Copy link
Member Author

@xp-1000 @flocke Could you try out the latest release? The apk can be downloaded here.

@xp-1000
Copy link

xp-1000 commented Nov 17, 2018

hello @jmattheis I confirm it works fine ! thanks for quick fix.
Seems it have only one problem left, when I reboot my phone gotify does not start automatically even if I configure battery optimization to don't optimize gotify.
But this is another problem and probably from my android, when gotify is manually started all is working fine.
thanks, from my opinion you can close this issue.

@jmattheis
Copy link
Member Author

@xp-1000 There is already an issue for starting Gotify on boot #25

@flocke
Copy link

flocke commented Nov 17, 2018

I can confirm as well that it works now.

It just reconnects a lot for me (every couple of minutes). Maybe I have to take a look at my nginx config again...

@gelse
Copy link

gelse commented Apr 18, 2021

Sorry to be a downer, but it seems as if this bug is here again.

2021-04-18T07:35:42.303Z INFO: Entering LogsActivity
2021-04-18T07:35:37.768Z INFO: Removing message with id 63
2021-04-18T07:35:28.287Z INFO: Loading more messages for -1
2021-04-18T07:35:28.262Z INFO: Entering MessagesActivity
2021-04-18T07:35:28.251Z INFO: WebSocket(1): closing existing connection.
2021-04-18T07:35:28.249Z ERROR: WebSocket(1): failure StatusCode: 400 Message: Bad Request
java.net.ProtocolException: Expected HTTP 101 response but was '400 Bad Request'
at okhttp3.internal.ws.RealWebSocket.checkResponse(RealWebSocket.java:229)
at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:196)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:206)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)

2021-04-18T07:35:28.181Z INFO: Server version: 2.0.22@2021-04-16-18:16:19
2021-04-18T07:35:28.087Z INFO: Network reconnected
2021-04-18T07:35:28.074Z INFO: WebSocket(1): starting...
2021-04-18T07:35:28.035Z INFO: Starting WebSocketService
2021-04-18T07:35:28.028Z INFO: Create WebSocketService
2021-04-18T07:35:28.020Z INFO: Authenticated as admin
2021-04-18T07:35:27.875Z INFO: Entering InitializationActivity
2021-04-18T07:35:03.957Z INFO: Entering LoginActivity
2021-04-18T07:35:03.846Z INFO: Entering InitializationActivity

Server version 2.0.22 is in the logs, docker installation behind an Apache reverse proxy and client version 2.1.1

@jmattheis
Copy link
Member Author

@gelse Open a new issue for this, include gotify/server log and your reverse proxy configuration.

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

4 participants