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

/json/messages endpoint returns 500 #427

Open
Pandry opened this issue Jan 23, 2024 · 0 comments
Open

/json/messages endpoint returns 500 #427

Pandry opened this issue Jan 23, 2024 · 0 comments

Comments

@Pandry
Copy link

Pandry commented Jan 23, 2024

Hiya! Thanks for the great work!
I manage a Zulip server for an association and we've been using zulip since version 3 I think.
Since the version 8 update, we had a bit of issues regarding the /json/events endpoint:
image
image

Turned out, the issue was the nginx server inside the docker container:
2024/01/22 21:12:43 [error] 56#56: *44354 invalid URL prefix in "localhost:9800", client: 172.18.0.2, server: , request: "DELETE /json/events HTTP/1.1", host: "zulip.*.org", referrer: "https://zulip.*.org/"

As the issue says, the upstream misses the protocol (I assumed http looking around in the same file)
The fix I found was to replace $tornado_server with http://tornado in /etc/nginx/zulip-include/app

Is this an issue unique to our setup? Given the git blame I suspect so, as I tried searching for this issue and possible duplicates and I found no results

If this is indeed an issue, the fix would be as easy as editing the app file, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant