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

[bug]: Invalid unit value NaN #4021

Closed
1 task done
T00rk opened this issue Apr 30, 2024 · 2 comments
Closed
1 task done

[bug]: Invalid unit value NaN #4021

T00rk opened this issue Apr 30, 2024 · 2 comments
Labels
bug Something isn't working need testing Needs to be tested before merging onto production

Comments

@T00rk
Copy link

T00rk commented Apr 30, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

My configuration only enables EMAIL as VITE_ALLOWED_AUTH_PROVIDERS.
Everytime I try to signin, I get a 500 error with these details in the log file :

Backend Server | [Nest] 39  - 04/30/2024, 9:46:47 AM   ERROR [ExceptionsHandler] Invalid unit value NaN
Backend Server | Error: Invalid unit value NaN
Backend Server |     at asNumber (/usr/src/app/node_modules/.pnpm/luxon@3.2.1/node_modules/luxon/build/node/luxon.js:1497:87)
Backend Server |     at normalizeObject (/usr/src/app/node_modules/.pnpm/luxon@3.2.1/node_modules/luxon/build/node/luxon.js:1506:35)
Backend Server |     at Duration.fromObject (/usr/src/app/node_modules/.pnpm/luxon@3.2.1/node_modules/luxon/build/node/luxon.js:2529:15)
Backend Server |     at Duration.fromDurationLike (/usr/src/app/node_modules/.pnpm/luxon@3.2.1/node_modules/luxon/build/node/luxon.js:2552:23)
Backend Server |     at DateTime.plus (/usr/src/app/node_modules/.pnpm/luxon@3.2.1/node_modules/luxon/build/node/luxon.js:6091:26)
Backend Server |     at AuthService.generateMagicLinkTokens (/usr/src/app/packages/hoppscotch-backend/dist/auth/auth.service.js:40:14)
Backend Server |     at async AuthService.signInMagicLink (/usr/src/app/packages/hoppscotch-backend/dist/auth/auth.service.js:147:33)
Backend Server |     at async AuthController.signInMagicLink (/usr/src/app/packages/hoppscotch-backend/dist/auth/auth.controller.js:47:31)
Backend Server |     at async /usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_reflect-metadata@0.1.13_rxjs@7.6.0__@nestjs+platfor_fugnss62jk6fg5tp4mizlu2qtu/node_modules/@nestjs/core/router/router-execution-context.js:46:28
Backend Server |     at async /usr/src/app/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_reflect-metadata@0.1.13_rxjs@7.6.0__@nestjs+platfor_fugnss62jk6fg5tp4mizlu2qtu/node_modules/@nestjs/core/router/router-proxy.js:9:17

Steps to reproduce

1 - Set VITE_ALLOWED_AUTH_PROVIDERS: "EMAIL"
2 - Click "Signin"
3 - Select "Continue with email"
4 - Enter your email address and click "Send magic link"

Environment

Production

Version

Self-hosted

@T00rk T00rk added bug Something isn't working need testing Needs to be tested before merging onto production labels Apr 30, 2024
@T00rk
Copy link
Author

T00rk commented May 1, 2024

Resolved setting MAGIC_LINK_TOKEN_VALIDITY: 3.
I thought there were default values for Docker environment variables.

@balub
Copy link
Member

balub commented May 1, 2024

@T00rk has your issue been resolved ?

@T00rk T00rk closed this as completed May 1, 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 need testing Needs to be tested before merging onto production
Projects
None yet
Development

No branches or pull requests

2 participants