-
Notifications
You must be signed in to change notification settings - Fork 4.4k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Error 500 on stats Api #1241
Comments
You shouldn't get a 500. That means something went wrong on your server. You'll have to check the logs. |
What logs exactly do you mean? |
Run |
My problem is the same I think. Dev console:
|
I got the error:
|
My problem is diferent, I create new ticket |
@alex289 what parameters are you passing to the api? |
I tried multiple versions because the documentation was not helpful about the format. I tried this formats for start_at and end_at: |
I looked at the Vercel errors on these inputs:
|
Using developer console, you could inspect network exchange from umami portal to have an idea of what param (or param format) are expected for some umami API if documentation is not complete. This way I find that start_at or end_at format is timestamp in milliseconds. (cf. #1252) Btw I agree: the doc may be improved to add a sample |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hey, I use umami to get statistics of some websites but the Api is not working.
After getting an auth token from /api/auth/login (POST) I made a request to /api/website/{id}/stats but always got an error 500.
I tried it both with the token as bearer and as a cookie. (Cookies result was 401).
Am I using the api wrong or is this a bug?
The text was updated successfully, but these errors were encountered: