[GH-ISSUE #3807] [bug]: getting 500 error from magic link #1333

Closed
opened 2026-03-16 19:53:42 +03:00 by kerem · 1 comment
Owner

Originally created by @Brainpitcher on GitHub (Feb 5, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3807

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Hi there so the problem is above when i am trying to use magic link to authorize for the first time it gives 500 error in logs i can see smth like that
Backend Server | Query Complexity: 3 Backend Server | [Nest] 61 - 02/05/2024, 6:18:46 PM ERROR [ExceptionsHandler] "expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60 Backend Server | Error: "expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60

here is my values:

    # Auth Tokens Config
    ENABLE_SUBPATH_BASED_ACCESS: true
    JWT_SECRET: secretcode123
    TOKEN_SALT_COMPLEXITY: 10
    MAGIC_LINK_TOKEN_VALIDITY: 3
    REFRESH_TOKEN_VALIDITY: 604800000
    ACCESS_TOKEN_VALIDITY: 86400000
    SESSION_SECRET: anothersecretcode123

    WHITELISTED_ORIGINS: https://{{ .Values.hoppscotch.url }},https://{{ .Values.hoppscotch.url }}/admin

    REDIRECT_URL: https://{{ .Values.hoppscotch.url }}

    # Base URL
    VITE_BASE_URL: https://{{ .Values.hoppscotch.url }}
    VITE_SHORTCODE_BASE_URL: https://{{ .Values.hoppscotch.url }}
    VITE_ADMIN_URL: https://{{ .Values.hoppscotch.url }}/admin

    # Backend URLs
    VITE_BACKEND_GQL_URL: https://{{ .Values.hoppscotch.url }}/backend/graphql
    VITE_BACKEND_WS_URL: ws://{{ .Values.hoppscotch.url }}/backend/graphql
    VITE_BACKEND_API_URL: https://{{ .Values.hoppscotch.url }}/backend/v1

Steps to reproduce

use magic link
get an email
use the link
get the 500 error

Environment

Release

Version

Self-hosted

Originally created by @Brainpitcher on GitHub (Feb 5, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3807 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior Hi there so the problem is above when i am trying to use magic link to authorize for the first time it gives 500 error in logs i can see smth like that `Backend Server | Query Complexity: 3 Backend Server | [Nest] 61 - 02/05/2024, 6:18:46 PM ERROR [ExceptionsHandler] "expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60 Backend Server | Error: "expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60` here is my values: ``` # Auth Tokens Config ENABLE_SUBPATH_BASED_ACCESS: true JWT_SECRET: secretcode123 TOKEN_SALT_COMPLEXITY: 10 MAGIC_LINK_TOKEN_VALIDITY: 3 REFRESH_TOKEN_VALIDITY: 604800000 ACCESS_TOKEN_VALIDITY: 86400000 SESSION_SECRET: anothersecretcode123 WHITELISTED_ORIGINS: https://{{ .Values.hoppscotch.url }},https://{{ .Values.hoppscotch.url }}/admin REDIRECT_URL: https://{{ .Values.hoppscotch.url }} # Base URL VITE_BASE_URL: https://{{ .Values.hoppscotch.url }} VITE_SHORTCODE_BASE_URL: https://{{ .Values.hoppscotch.url }} VITE_ADMIN_URL: https://{{ .Values.hoppscotch.url }}/admin # Backend URLs VITE_BACKEND_GQL_URL: https://{{ .Values.hoppscotch.url }}/backend/graphql VITE_BACKEND_WS_URL: ws://{{ .Values.hoppscotch.url }}/backend/graphql VITE_BACKEND_API_URL: https://{{ .Values.hoppscotch.url }}/backend/v1 ``` ### Steps to reproduce use magic link get an email use the link get the 500 error ### Environment Release ### Version Self-hosted
kerem 2026-03-16 19:53:42 +03:00
Author
Owner

@Brainpitcher commented on GitHub (Feb 6, 2024):

Well i guess i can close the issue. The point is that i used values without quotes in my helm chart that is why i was getting ERROR [ExceptionsHandler] "expiresIn" troubles in pod logs. The value field should be a string and must be enclosed the string values for environment variables in double quotes. Sorry for bother

<!-- gh-comment-id:1928909950 --> @Brainpitcher commented on GitHub (Feb 6, 2024): Well i guess i can close the issue. The point is that i used values without quotes in my helm chart that is why i was getting `ERROR [ExceptionsHandler] "expiresIn"` troubles in pod logs. The value field should be a string and must be enclosed the string values for environment variables in double quotes. Sorry for bother
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1333
No description provided.