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

Overview detail information shows 'Something went wrong' when trying to display data (partially) before the first date of usage #2752

Closed
CTHRU opened this issue May 23, 2024 · 2 comments
Labels
bug Something isn't working fixed in dev Fixed in the dev branch

Comments

@CTHRU
Copy link

CTHRU commented May 23, 2024

Describe the Bug

The overview detail information shows 'Something went wrong (see picture below) when the date range is (partially) before the first date of usage. There's also an error on the terminal output. See screen below.

image

Database

PostgreSQL

Relevant log output

code: 'P2010',
umami     |   clientVersion: '5.12.1',
umami     |   meta: { code: '2201X', message: 'ERROR: OFFSET must not be negative' }
umami     | }
umami     | PrismaClientKnownRequestError: 
umami     | Invalid `prisma.$queryRawUnsafe()` invocation:
umami     | 
umami     | 
umami     | Raw query failed. Code: `2201X`. Message: `ERROR: OFFSET must not be negative`
umami     |     at In.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:122:6854)
umami     |     at In.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:122:6188)
umami     |     at In.request (/app/node_modules/@prisma/client/runtime/library.js:122:5896)
umami     |     at async l (/app/node_modules/@prisma/client/runtime/library.js:127:11167)
umami     |     at async m (/app/.next/server/pages/api/websites/[websiteId]/metrics.js:1:3217)
umami     |     at async K (/app/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16545)
umami     |     at async U.render (/app/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16981)
umami     |     at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:554:9)
umami     |     at async NextNodeServer.handleCatchallRenderRequest (/app/node_modules/next/dist/server/next-server.js:266:37)
umami     |     at async NextNodeServer.handleRequestImpl (/app/node_modules/next/dist/server/base-server.js:791:17) {
umami     |   code: 'P2010',
umami     |   clientVersion: '5.12.1',
umami     |   meta: { code: '2201X', message: 'ERROR: OFFSET must not be negative' }
umami     | }

Which Umami version are you using? (if relevant)

v2.11.3

Which browser are you using? (if relevant)

Firefox

How are you deploying your application? (if relevant)

Docker

@franciscao633 franciscao633 added bug Something isn't working fixed in dev Fixed in the dev branch labels May 24, 2024
@franciscao633
Copy link
Collaborator

We have this bug fixed in this commit. It will come out with the next release.

@mikecao
Copy link
Collaborator

mikecao commented Jun 21, 2024

Fixed in v2.12.0.

@mikecao mikecao closed this as completed Jun 21, 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 fixed in dev Fixed in the dev branch
Projects
None yet
Development

No branches or pull requests

3 participants