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

Umami always responding with 307 Temporary Redirect after v2.12.0 #2820

Closed
SenseiMarv opened this issue Jun 28, 2024 · 4 comments
Closed

Umami always responding with 307 Temporary Redirect after v2.12.0 #2820

SenseiMarv opened this issue Jun 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@SenseiMarv
Copy link

SenseiMarv commented Jun 28, 2024

Describe the Bug

Current behaviour

After upgrading to version >2.12.0, Umami will always respond to a request to the root URL with a 307 Temporary Redirect HTTP response. Requests to other pages like /dashboard, /websites, ... will return 200 OK instead.

Expected behaviour

Umami should respond with 200 OK to a request for the root URL. I noticed this issue because I have Uptime Kuma checking my service and after the upgrade, it failed the check since I'm only counting 2XX responses as healthy responses.

Steps to reproduce

  1. Spin up Umami with a version >2.12.0.
  2. Open the DevTools in the browser and open the Network tab.
  3. Navigate to the root URL of the Umami instance. Local HTTP or Remote HTTPS will return the same result.
  4. Examine the first response in the DevTools which returns the initial HTML. It will have the status code 307.

Database

PostgreSQL

Relevant log output

No response

Which Umami version are you using? (if relevant)

2.12.1

Which browser are you using? (if relevant)

Chrome, also tested in Postman

How are you deploying your application? (if relevant)

Docker through Reverse Proxy and Cloudflare

@franciscao633 franciscao633 added the bug Something isn't working label Jul 1, 2024
@franciscao633
Copy link
Collaborator

confirmed. We will take a look. Thanks for reporting.

@mikecao
Copy link
Collaborator

mikecao commented Jul 5, 2024

Redirect is the correct code. When you go to the root, it either redirects you to /dashboard or /login depending on your logged in status. There is no page at the root. If you want to simply want to check uptime, send a request to /api/heartbeat

@boerge30
Copy link

boerge30 commented Jul 6, 2024

Thanks! It now works with calling /api/heartbeat. But the 307 error described above only appeared here with the current version. (Uptime Kuma / updown.io)

@SenseiMarv
Copy link
Author

Makes sense with that explanation. Using the heartbeat route works for me. If this is the intended behaviour, this issue can be closed.

@SenseiMarv SenseiMarv closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
4 participants