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

How to configure "API Routes Response Size" #2747

Open
ndaidong opened this issue May 16, 2024 · 2 comments
Open

How to configure "API Routes Response Size" #2747

ndaidong opened this issue May 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ndaidong
Copy link

ndaidong commented May 16, 2024

Describe the Bug

Sometimes I could not view realtime page.
It looks like the data is too large, exceeds the limit of Nextjs router, as they explain in this guide:

https://nextjs.org/docs/messages/api-routes-response-size-limit

How to change that config - responseLimit - in Umami?

Database

PostgreSQL

Relevant log output

API response for /api/realtime/58a20b98-****-****-****-e35d69ea6bab?startAt=0 exceeds 4MB. API Routes are meant to respond quickly. https://nextjs.org/docs/messages/api-routes-response-size-limit

Which Umami version are you using? (if relevant)

No response

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

Docker

@mikecao
Copy link
Collaborator

mikecao commented May 16, 2024

You must have a lot of traffic if you ran into this. We can probably do something on the API side to reduce the payload.

@mikecao mikecao added the bug Something isn't working label May 16, 2024
@ndaidong
Copy link
Author

@mikecao yes, that often occurs when there are more than 1000 visitors on the website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants