[GH-ISSUE #4232] [bug]: Self hosted with "https" After entering login credentials during authorization getting 401 unauthorisation error. #1527

Open
opened 2026-03-16 20:42:05 +03:00 by kerem · 11 comments
Owner

Originally created by @analuramalho on GitHub (Aug 1, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4232

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When the user tries to log into the application with a Microsoft account, error 401 occurs, as an intermittent error.
There are no specific patterns for this error to occur, just sometimes the same user can connect normally and other times he cannot.

error : {"message":"Unauthorized","statusCode":401}

Steps to reproduce

  • Access the Front end UI
  • click on login
  • click on microsoft login
  • login credentials page is displayed
  • Enter Username and Password
  • click login
  • keep signed pop up
  • select option no
    and then -> 401 unauthorized error on UI (at this web url is https://sub-domain.com/v1/auth/microsoft/callback?code=0."some string"&state="some string"&session_state="some string"")

Here "some string" referring to alphanumeric value for security purpose have not given.

I found this similar issue but there is no solution to the problem here. We are already using version 2024.3.4
similar issue: https://github.com/hoppscotch/hoppscotch/issues/3194

Environment

Production

Version

Self-hosted

Originally created by @analuramalho on GitHub (Aug 1, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4232 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When the user tries to log into the application with a Microsoft account, error 401 occurs, as an intermittent error. There are no specific patterns for this error to occur, just sometimes the same user can connect normally and other times he cannot. error : {"message":"Unauthorized","statusCode":401} ### Steps to reproduce - Access the Front end UI - click on login - click on microsoft login - login credentials page is displayed - Enter Username and Password - click login - keep signed pop up - select option no and then -> 401 unauthorized error on UI (at this web url is [https://sub-domain.com/v1/auth/microsoft/callback?code=0."some](https://sub-domain.com/v1/auth/microsoft/callback?code=0.%22some) string"&state="some string"&session_state="some string"") Here "some string" referring to alphanumeric value for security purpose have not given. I found this similar issue but there is no solution to the problem here. We are already using version 2024.3.4 similar issue: https://github.com/hoppscotch/hoppscotch/issues/3194 ### Environment Production ### Version Self-hosted
Author
Owner

@bigghe commented on GitHub (Sep 12, 2024):

Ehi @analuramalho
Any news with this? Are you still facing the issue?

Another info, because I'm checking if hoppscotch could fit for me.
Does the selfhosted community edition allows for login through username/password?

<!-- gh-comment-id:2345864275 --> @bigghe commented on GitHub (Sep 12, 2024): Ehi @analuramalho Any news with this? Are you still facing the issue? Another info, because I'm checking if hoppscotch could fit for me. Does the selfhosted community edition allows for login through username/password?
Author
Owner

@liyasthomas commented on GitHub (Sep 12, 2024):

Hi @analuramalho, we're looking into this ticket. Thanks for your patience.

<!-- gh-comment-id:2346032876 --> @liyasthomas commented on GitHub (Sep 12, 2024): Hi @analuramalho, we're looking into this ticket. Thanks for your patience.
Author
Owner

@RockChinQ commented on GitHub (Dec 31, 2024):

Same issue here, I'm using hoppscotch-aio with Docker Compose, and using caddy to reverse proxy hopscotch.

this's the caddy config

hoppscotch.my.domain {
    reverse_proxy / hoppscotch:3000
    reverse_proxy /admin/* hoppscotch:3100
    reverse_proxy /graphql/* hoppscotch:3170
    reverse_proxy /v1/* hoppscotch:3170
}

env file

#-----------------------Backend Config------------------------------#
# Prisma Config
DATABASE_URL=postgresql://postgres:xxxx@postgres-hoppscotch:5432/postgres # or replace with your database URL

# (Optional) By default, the AIO container (when in subpath access mode) exposes the endpoint on port 80. Use this setting to specify a different port if needed.
HOPP_AIO_ALTERNATE_PORT=80

# Auth Tokens Config
JWT_SECRET=Akq6G6UgKEcw1TPM
TOKEN_SALT_COMPLEXITY=10
MAGIC_LINK_TOKEN_VALIDITY=3
REFRESH_TOKEN_VALIDITY=604800000 # Default validity is 7 days (604800000 ms) in ms
ACCESS_TOKEN_VALIDITY=86400000 # Default validity is 1 day (86400000 ms) in ms
SESSION_SECRET=QyrCmoluiRhDdJww

# Recommended to be true. Set to false if you are using http.
# Note: Some auth providers may not support http requests and may stop working when set to false.
ALLOW_SECURE_COOKIES=true

# Sensitive Data Encryption Key while storing in Database (32 character)
DATA_ENCRYPTION_KEY=********************************

# Hoppscotch App Domain Config
REDIRECT_URL=https://hoppscotch.my.domain
WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3000,http://localhost:3100,https://hoppscotch.my.domain
VITE_ALLOWED_AUTH_PROVIDERS=GITHUB

# Github Auth Config
GITHUB_CLIENT_ID=a valid github client id
GITHUB_CLIENT_SECRET=a valid github client secret
GITHUB_CALLBACK_URL=https://hoppscotch.my.domain/v1/auth/github/callback
GITHUB_SCOPE=user:email

# Rate Limit Config
RATE_LIMIT_TTL=60 # In seconds
RATE_LIMIT_MAX=100 # Max requests per IP

#-----------------------Frontend Config------------------------------#

# Base URLs
VITE_BASE_URL=https://hoppscotch.my.domain
VITE_SHORTCODE_BASE_URL=https://hoppscotch.my.domain
VITE_ADMIN_URL=https://hoppscotch.my.domain

# Backend URLs
VITE_BACKEND_GQL_URL=https://hoppscotch.my.domain/graphql
VITE_BACKEND_WS_URL=wss://hoppscotch.my.domain/graphql
VITE_BACKEND_API_URL=https://hoppscotch.my.domain/v1

# Terms Of Service And Privacy Policy Links (Optional)
VITE_APP_TOS_LINK=https://docs.hoppscotch.io/support/terms
VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/support/privacy

# Set to `true` for subpath based access
ENABLE_SUBPATH_BASED_ACCESS=false

I was facing #3733 and finally solved that, when I try to login with GitHub, 401 error occurred.

3d047e0e0987cba0dc04424aa3902b52

<!-- gh-comment-id:2566548635 --> @RockChinQ commented on GitHub (Dec 31, 2024): Same issue here, I'm using hoppscotch-aio with Docker Compose, and using caddy to reverse proxy hopscotch. this's the caddy config ```caddy hoppscotch.my.domain { reverse_proxy / hoppscotch:3000 reverse_proxy /admin/* hoppscotch:3100 reverse_proxy /graphql/* hoppscotch:3170 reverse_proxy /v1/* hoppscotch:3170 } ``` env file ```env #-----------------------Backend Config------------------------------# # Prisma Config DATABASE_URL=postgresql://postgres:xxxx@postgres-hoppscotch:5432/postgres # or replace with your database URL # (Optional) By default, the AIO container (when in subpath access mode) exposes the endpoint on port 80. Use this setting to specify a different port if needed. HOPP_AIO_ALTERNATE_PORT=80 # Auth Tokens Config JWT_SECRET=Akq6G6UgKEcw1TPM TOKEN_SALT_COMPLEXITY=10 MAGIC_LINK_TOKEN_VALIDITY=3 REFRESH_TOKEN_VALIDITY=604800000 # Default validity is 7 days (604800000 ms) in ms ACCESS_TOKEN_VALIDITY=86400000 # Default validity is 1 day (86400000 ms) in ms SESSION_SECRET=QyrCmoluiRhDdJww # Recommended to be true. Set to false if you are using http. # Note: Some auth providers may not support http requests and may stop working when set to false. ALLOW_SECURE_COOKIES=true # Sensitive Data Encryption Key while storing in Database (32 character) DATA_ENCRYPTION_KEY=******************************** # Hoppscotch App Domain Config REDIRECT_URL=https://hoppscotch.my.domain WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3000,http://localhost:3100,https://hoppscotch.my.domain VITE_ALLOWED_AUTH_PROVIDERS=GITHUB # Github Auth Config GITHUB_CLIENT_ID=a valid github client id GITHUB_CLIENT_SECRET=a valid github client secret GITHUB_CALLBACK_URL=https://hoppscotch.my.domain/v1/auth/github/callback GITHUB_SCOPE=user:email # Rate Limit Config RATE_LIMIT_TTL=60 # In seconds RATE_LIMIT_MAX=100 # Max requests per IP #-----------------------Frontend Config------------------------------# # Base URLs VITE_BASE_URL=https://hoppscotch.my.domain VITE_SHORTCODE_BASE_URL=https://hoppscotch.my.domain VITE_ADMIN_URL=https://hoppscotch.my.domain # Backend URLs VITE_BACKEND_GQL_URL=https://hoppscotch.my.domain/graphql VITE_BACKEND_WS_URL=wss://hoppscotch.my.domain/graphql VITE_BACKEND_API_URL=https://hoppscotch.my.domain/v1 # Terms Of Service And Privacy Policy Links (Optional) VITE_APP_TOS_LINK=https://docs.hoppscotch.io/support/terms VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/support/privacy # Set to `true` for subpath based access ENABLE_SUBPATH_BASED_ACCESS=false ``` I was facing #3733 and finally solved that, when I try to login with GitHub, 401 error occurred. ![3d047e0e0987cba0dc04424aa3902b52](https://github.com/user-attachments/assets/ace8447d-a244-4c85-87e3-869f45e10d58)
Author
Owner

@mirarifhasan commented on GitHub (Dec 31, 2024):

Hi @RockChinQ,
Could you please check the Docker container logs for any errors? If you find any, kindly share them with us. This will help us debug the issue more effectively.

<!-- gh-comment-id:2566570995 --> @mirarifhasan commented on GitHub (Dec 31, 2024): Hi @RockChinQ, Could you please check the Docker container logs for any errors? If you find any, kindly share them with us. This will help us debug the issue more effectively.
Author
Owner

@RockChinQ commented on GitHub (Jan 1, 2025):

this's the docker-compose.yaml file, shared-network is pre created.

# docker run -p 3000:3000 -p 3100:3100 -p 3170:3170 --env-file .env --restart unless-stopped hoppscotch/hoppscotch
services:
  hoppscotch:
    image: hoppscotch/hoppscotch
    ports:
      - 3000:3000
      - 3100:3100
      - 3170:3170
    env_file:
      - .env
    restart: unless-stopped
    container_name: hoppscotch
    networks:
      - shared-network
    depends_on:
      - postgres
  postgres:
    image: postgres:15
    environment:
      - PGUSER=postgres
      - POSTGRES_PASSWORD=xxxx
    volumes:
      - ./pgsql-data:/var/lib/postgresql/data
    healthcheck:
      test: [ "CMD", "pg_isready" ]
      interval: 1s
      timeout: 3s
      retries: 30
    restart: always
    networks:
      - shared-network
    container_name: postgres-hoppscotch

networks:
  shared-network:
    external: true

migration has already done in previous runs. And below is the whole logs from a new launch to the 401 occurred.

[+] Running 2/0
 ✔ Container postgres-hoppscotch  Created                                                                               0.0s 
 ✔ Container hoppscotch           Created                                                                               0.0s 
Attaching to hoppscotch, postgres-hoppscotch
postgres-hoppscotch  | 
postgres-hoppscotch  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres-hoppscotch  | 
postgres-hoppscotch  | 2025-01-01 03:09:19.261 UTC [1] LOG:  starting PostgreSQL 15.10 (Debian 15.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
postgres-hoppscotch  | 2025-01-01 03:09:19.264 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres-hoppscotch  | 2025-01-01 03:09:19.264 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres-hoppscotch  | 2025-01-01 03:09:19.267 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-hoppscotch  | 2025-01-01 03:09:19.275 UTC [29] LOG:  database system was interrupted; last known up at 2024-12-31 15:45:25 UTC
postgres-hoppscotch  | 2025-01-01 03:09:19.316 UTC [29] LOG:  database system was not properly shut down; automatic recovery in progress
postgres-hoppscotch  | 2025-01-01 03:09:19.320 UTC [29] LOG:  redo starts at 0/1B04168
postgres-hoppscotch  | 2025-01-01 03:09:19.320 UTC [29] LOG:  invalid record length at 0/1B041A0: wanted 24, got 0
postgres-hoppscotch  | 2025-01-01 03:09:19.320 UTC [29] LOG:  redo done at 0/1B04168 system usage: CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.00 s
postgres-hoppscotch  | 2025-01-01 03:09:19.324 UTC [27] LOG:  checkpoint starting: end-of-recovery immediate wait
postgres-hoppscotch  | 2025-01-01 03:09:19.332 UTC [27] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.002 s, sync=0.002 s, total=0.009 s; sync files=2, longest=0.002 s, average=0.001 s; distance=0 kB, estimate=0 kB
postgres-hoppscotch  | 2025-01-01 03:09:19.337 UTC [1] LOG:  database system is ready to accept connections
hoppscotch           | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1196983,"msg":"using provided configuration","config_file":"/etc/caddy/aio-multiport-setup.Caddyfile","config_adapter":"caddyfile"}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"warn","ts":1735700961.1246524,"logger":"admin","msg":"admin endpoint disabled"}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1253455,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000489e00"}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.126927,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1271036,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1272097,"logger":"http.log","msg":"server running","name":"srv2","protocols":["h1","h2","h3"]}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.127256,"msg":"serving initial configuration"}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"warn","ts":1735700961.1318746,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/root/.local/share/caddy","instance":"6893b5e2-4900-49f7-9b2f-cb0d0030b324","try_again":1735787361.1318665,"try_again_in":86399.999998834}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1320086,"logger":"tls","msg":"finished cleaning storage units"}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"error","ts":1735700961.6539714,"logger":"http.log.error","msg":"dial tcp [::1]:8080: connect: connection refused","request":{"remote_ip":"::1","remote_port":"42106","client_ip":"::1","proto":"HTTP/1.1","method":"HEAD","host":"localhost:3170","uri":"/ping","headers":{"User-Agent":["curl/8.9.1"],"Accept":["*/*"]}},"duration":0.006655876,"status":502,"err_id":"qis3gkrjh","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"}
hoppscotch           | App/Admin Dashboard Caddy | {"level":"error","ts":1735700963.808445,"logger":"http.log.error","msg":"dial tcp [::1]:8080: connect: connection refused","request":{"remote_ip":"::1","remote_port":"42114","client_ip":"::1","proto":"HTTP/1.1","method":"HEAD","host":"localhost:3170","uri":"/ping","headers":{"User-Agent":["curl/8.9.1"],"Accept":["*/*"]}},"duration":0.000923685,"status":502,"err_id":"sb06jxjfr","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"}
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:23 AM     LOG [NestFactory] Starting Nest application...
hoppscotch           | Backend Server | Mailer module is disabled
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] PubSubModule dependencies initialized +478ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] PrismaModule dependencies initialized +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] PassportModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] ConfigHostModule dependencies initialized +9ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +2ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] TerminusModule dependencies initialized +6ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] ConfigModule dependencies initialized +2ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +6ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] HealthModule dependencies initialized +3ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] AppModule dependencies initialized +2ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] ThrottlerModule dependencies initialized +8ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] JwtModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +2ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] UserModule dependencies initialized +6ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] UserSettingsModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] UserEnvironmentsModule dependencies initialized +3ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] UserCollectionModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] UserRequestModule dependencies initialized +2ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] TeamModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] ShortcodeModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] AccessTokenModule dependencies initialized +3ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] TeamEnvironmentsModule dependencies initialized +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] GraphQLModule dependencies initialized +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] TeamRequestModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] TeamCollectionModule dependencies initialized +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] ConfigModule dependencies initialized +50ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] MailerModule dependencies initialized +2ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] PosthogModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] UserHistoryModule dependencies initialized +6ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] TeamInvitationModule dependencies initialized +7ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] InfraConfigModule dependencies initialized +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] AdminModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] AuthModule dependencies initialized +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [InstanceLoader] InfraTokenModule dependencies initialized +1ms
hoppscotch           | Backend Server | Running in production:  true
hoppscotch           | Backend Server | Port: 8080
hoppscotch           | Backend Server | Wed, 01 Jan 2025 03:09:24 GMT express-session deprecated undefined resave option; provide resave option at dist/main.js:41:13
hoppscotch           | Backend Server | Wed, 01 Jan 2025 03:09:24 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at dist/main.js:41:13
hoppscotch           | Backend Server | Enabling CORS with production settings
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RoutesResolver] AppController {/ping}: +71ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/ping, GET} route +8ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RoutesResolver] AuthController {/auth} (version: 1): +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/providers, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/signin, POST} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/verify, POST} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/refresh, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/google, GET} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/google/callback, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/github, GET} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/github/callback, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/microsoft, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/microsoft/callback, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/logout, GET} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/auth/verify/admin, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RoutesResolver] SiteController {/site} (version: 1): +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/site/setup, GET} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/site/setup, PUT} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RoutesResolver] TeamCollectionController {/team-collection} (version: 1): +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/team-collection/search/:teamID, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RoutesResolver] HealthController {/health}: +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/health, GET} route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RoutesResolver] AccessTokenController {/access-tokens} (version: 1): +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/access-tokens/create, POST} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/access-tokens/revoke, DELETE} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/access-tokens/list, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/access-tokens/collection/:id, GET} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/access-tokens/environment/:id, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RoutesResolver] InfraTokensController {/infra} (version: 1): +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/infra/user-invitations, POST} (version: 1) route +2ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/infra/user-invitations, GET} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/infra/user-invitations, DELETE} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/infra/users, GET} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid, GET} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid, PATCH} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid, DELETE} (version: 1) route +0ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid/admin-status, PATCH} (version: 1) route +1ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:24 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid/workspaces, GET} (version: 1) route +0ms
hoppscotch           | Backend Server | Initialize PubSub
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:25 AM     LOG [GraphQLModule] Mapped {/graphql, POST} route +894ms
hoppscotch           | Backend Server | [Nest] 37  - 01/01/2025, 3:09:25 AM     LOG [NestApplication] Nest application successfully started +15ms
hoppscotch           | Backend Server | Query Complexity: 4
hoppscotch           | Backend Server | Query Complexity: 17
hoppscotch           | Backend Server | Query Complexity: 3
hoppscotch           | Backend Server | Query Complexity: 3
hoppscotch           | Backend Server | Query Complexity: 7
<!-- gh-comment-id:2566823468 --> @RockChinQ commented on GitHub (Jan 1, 2025): this's the docker-compose.yaml file, `shared-network` is pre created. ```yaml # docker run -p 3000:3000 -p 3100:3100 -p 3170:3170 --env-file .env --restart unless-stopped hoppscotch/hoppscotch services: hoppscotch: image: hoppscotch/hoppscotch ports: - 3000:3000 - 3100:3100 - 3170:3170 env_file: - .env restart: unless-stopped container_name: hoppscotch networks: - shared-network depends_on: - postgres postgres: image: postgres:15 environment: - PGUSER=postgres - POSTGRES_PASSWORD=xxxx volumes: - ./pgsql-data:/var/lib/postgresql/data healthcheck: test: [ "CMD", "pg_isready" ] interval: 1s timeout: 3s retries: 30 restart: always networks: - shared-network container_name: postgres-hoppscotch networks: shared-network: external: true ``` migration has already done in previous runs. And below is the whole logs from a new launch to the 401 occurred. ```bash [+] Running 2/0 ✔ Container postgres-hoppscotch Created 0.0s ✔ Container hoppscotch Created 0.0s Attaching to hoppscotch, postgres-hoppscotch postgres-hoppscotch | postgres-hoppscotch | PostgreSQL Database directory appears to contain a database; Skipping initialization postgres-hoppscotch | postgres-hoppscotch | 2025-01-01 03:09:19.261 UTC [1] LOG: starting PostgreSQL 15.10 (Debian 15.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit postgres-hoppscotch | 2025-01-01 03:09:19.264 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 postgres-hoppscotch | 2025-01-01 03:09:19.264 UTC [1] LOG: listening on IPv6 address "::", port 5432 postgres-hoppscotch | 2025-01-01 03:09:19.267 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" postgres-hoppscotch | 2025-01-01 03:09:19.275 UTC [29] LOG: database system was interrupted; last known up at 2024-12-31 15:45:25 UTC postgres-hoppscotch | 2025-01-01 03:09:19.316 UTC [29] LOG: database system was not properly shut down; automatic recovery in progress postgres-hoppscotch | 2025-01-01 03:09:19.320 UTC [29] LOG: redo starts at 0/1B04168 postgres-hoppscotch | 2025-01-01 03:09:19.320 UTC [29] LOG: invalid record length at 0/1B041A0: wanted 24, got 0 postgres-hoppscotch | 2025-01-01 03:09:19.320 UTC [29] LOG: redo done at 0/1B04168 system usage: CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.00 s postgres-hoppscotch | 2025-01-01 03:09:19.324 UTC [27] LOG: checkpoint starting: end-of-recovery immediate wait postgres-hoppscotch | 2025-01-01 03:09:19.332 UTC [27] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.002 s, sync=0.002 s, total=0.009 s; sync files=2, longest=0.002 s, average=0.001 s; distance=0 kB, estimate=0 kB postgres-hoppscotch | 2025-01-01 03:09:19.337 UTC [1] LOG: database system is ready to accept connections hoppscotch | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1196983,"msg":"using provided configuration","config_file":"/etc/caddy/aio-multiport-setup.Caddyfile","config_adapter":"caddyfile"} hoppscotch | App/Admin Dashboard Caddy | {"level":"warn","ts":1735700961.1246524,"logger":"admin","msg":"admin endpoint disabled"} hoppscotch | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1253455,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000489e00"} hoppscotch | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.126927,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]} hoppscotch | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1271036,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]} hoppscotch | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1272097,"logger":"http.log","msg":"server running","name":"srv2","protocols":["h1","h2","h3"]} hoppscotch | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.127256,"msg":"serving initial configuration"} hoppscotch | App/Admin Dashboard Caddy | {"level":"warn","ts":1735700961.1318746,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/root/.local/share/caddy","instance":"6893b5e2-4900-49f7-9b2f-cb0d0030b324","try_again":1735787361.1318665,"try_again_in":86399.999998834} hoppscotch | App/Admin Dashboard Caddy | {"level":"info","ts":1735700961.1320086,"logger":"tls","msg":"finished cleaning storage units"} hoppscotch | App/Admin Dashboard Caddy | {"level":"error","ts":1735700961.6539714,"logger":"http.log.error","msg":"dial tcp [::1]:8080: connect: connection refused","request":{"remote_ip":"::1","remote_port":"42106","client_ip":"::1","proto":"HTTP/1.1","method":"HEAD","host":"localhost:3170","uri":"/ping","headers":{"User-Agent":["curl/8.9.1"],"Accept":["*/*"]}},"duration":0.006655876,"status":502,"err_id":"qis3gkrjh","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"} hoppscotch | App/Admin Dashboard Caddy | {"level":"error","ts":1735700963.808445,"logger":"http.log.error","msg":"dial tcp [::1]:8080: connect: connection refused","request":{"remote_ip":"::1","remote_port":"42114","client_ip":"::1","proto":"HTTP/1.1","method":"HEAD","host":"localhost:3170","uri":"/ping","headers":{"User-Agent":["curl/8.9.1"],"Accept":["*/*"]}},"duration":0.000923685,"status":502,"err_id":"sb06jxjfr","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"} hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:23 AM LOG [NestFactory] Starting Nest application... hoppscotch | Backend Server | Mailer module is disabled hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] PubSubModule dependencies initialized +478ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] PrismaModule dependencies initialized +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] PassportModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +9ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +2ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] TerminusModule dependencies initialized +6ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] ConfigModule dependencies initialized +2ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +6ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] HealthModule dependencies initialized +3ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] AppModule dependencies initialized +2ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] ThrottlerModule dependencies initialized +8ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] JwtModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +2ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] UserModule dependencies initialized +6ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] UserSettingsModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] UserEnvironmentsModule dependencies initialized +3ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] UserCollectionModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] UserRequestModule dependencies initialized +2ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] TeamModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] ShortcodeModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] AccessTokenModule dependencies initialized +3ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] TeamEnvironmentsModule dependencies initialized +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] GraphQLModule dependencies initialized +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] TeamRequestModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] TeamCollectionModule dependencies initialized +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] ConfigModule dependencies initialized +50ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] MailerModule dependencies initialized +2ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] PosthogModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] UserHistoryModule dependencies initialized +6ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] TeamInvitationModule dependencies initialized +7ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] InfraConfigModule dependencies initialized +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] AdminModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] AuthModule dependencies initialized +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [InstanceLoader] InfraTokenModule dependencies initialized +1ms hoppscotch | Backend Server | Running in production: true hoppscotch | Backend Server | Port: 8080 hoppscotch | Backend Server | Wed, 01 Jan 2025 03:09:24 GMT express-session deprecated undefined resave option; provide resave option at dist/main.js:41:13 hoppscotch | Backend Server | Wed, 01 Jan 2025 03:09:24 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at dist/main.js:41:13 hoppscotch | Backend Server | Enabling CORS with production settings hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RoutesResolver] AppController {/ping}: +71ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/ping, GET} route +8ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RoutesResolver] AuthController {/auth} (version: 1): +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/providers, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/signin, POST} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/verify, POST} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/refresh, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/google, GET} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/google/callback, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/github, GET} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/github/callback, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/microsoft, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/microsoft/callback, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/logout, GET} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/auth/verify/admin, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RoutesResolver] SiteController {/site} (version: 1): +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/site/setup, GET} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/site/setup, PUT} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RoutesResolver] TeamCollectionController {/team-collection} (version: 1): +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/team-collection/search/:teamID, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RoutesResolver] HealthController {/health}: +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/health, GET} route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RoutesResolver] AccessTokenController {/access-tokens} (version: 1): +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/access-tokens/create, POST} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/access-tokens/revoke, DELETE} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/access-tokens/list, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/access-tokens/collection/:id, GET} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/access-tokens/environment/:id, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RoutesResolver] InfraTokensController {/infra} (version: 1): +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/infra/user-invitations, POST} (version: 1) route +2ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/infra/user-invitations, GET} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/infra/user-invitations, DELETE} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/infra/users, GET} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/infra/users/:uid, GET} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/infra/users/:uid, PATCH} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/infra/users/:uid, DELETE} (version: 1) route +0ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/infra/users/:uid/admin-status, PATCH} (version: 1) route +1ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:24 AM LOG [RouterExplorer] Mapped {/infra/users/:uid/workspaces, GET} (version: 1) route +0ms hoppscotch | Backend Server | Initialize PubSub hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:25 AM LOG [GraphQLModule] Mapped {/graphql, POST} route +894ms hoppscotch | Backend Server | [Nest] 37 - 01/01/2025, 3:09:25 AM LOG [NestApplication] Nest application successfully started +15ms hoppscotch | Backend Server | Query Complexity: 4 hoppscotch | Backend Server | Query Complexity: 17 hoppscotch | Backend Server | Query Complexity: 3 hoppscotch | Backend Server | Query Complexity: 3 hoppscotch | Backend Server | Query Complexity: 7 ```
Author
Owner

@RockChinQ commented on GitHub (Jan 1, 2025):

I deployed an individual containers mode, which still met the 401 error.

docker-compose.yaml

services:
  hoppscotch-frontend:
    image: hoppscotch/hoppscotch-frontend
    container_name: hoppscotch-frontend
    ports:
      - 3000:3000
    env_file:
      - .env
    restart: unless-stopped
    networks:
      - shared-network
    depends_on:
      - postgres

  hoppscotch-backend:
    image: hoppscotch/hoppscotch-backend
    container_name: hoppscotch-backend
    ports:
      - 3170:3170
    env_file:
      - .env
    restart: unless-stopped
    networks:
      - shared-network
    depends_on:
      - postgres

  hoppscotch-admin:
    image: hoppscotch/hoppscotch-admin
    container_name: hoppscotch-admin
    ports:
      - 3100:3100
    env_file:
      - .env
    restart: unless-stopped
    networks:
      - shared-network
    depends_on:
      - postgres

  postgres:
    image: postgres:15
    environment:
      - PGUSER=postgres
      - POSTGRES_PASSWORD=xxxx
    volumes:
      - ./pgsql-data:/var/lib/postgresql/data
    healthcheck:
      test: [ "CMD", "pg_isready" ]
      interval: 1s
      timeout: 3s
      retries: 30
    restart: always
    networks:
      - shared-network
    container_name: postgres-hoppscotch

networks:
  shared-network:
    external: true

my own caddy file


hoppscotch.my.domain {
    reverse_proxy / hoppscotch-frontend:3000
    reverse_proxy /v1/* hoppscotch-backend:3170
}

hoppscotch-admin.my.domain {
    reverse_proxy hoppscotch-admin:3100
}

the .env file

#-----------------------Backend Config------------------------------#
# Prisma Config
DATABASE_URL=postgresql://postgres:xxxx@postgres-hoppscotch:5432/postgres # or replace with your database URL

# (Optional) By default, the AIO container (when in subpath access mode) exposes the endpoint on port 80. Use this setting to specify a different port if needed.
HOPP_AIO_ALTERNATE_PORT=80

# Auth Tokens Config
JWT_SECRET=Akq6G6UgKEcw1TPM
TOKEN_SALT_COMPLEXITY=10
MAGIC_LINK_TOKEN_VALIDITY=3
REFRESH_TOKEN_VALIDITY=604800000 # Default validity is 7 days (604800000 ms) in ms
ACCESS_TOKEN_VALIDITY=86400000 # Default validity is 1 day (86400000 ms) in ms
SESSION_SECRET=QyrCmoluiRhDdJww

# Recommended to be true. Set to false if you are using http.
# Note: Some auth providers may not support http requests and may stop working when set to false.
ALLOW_SECURE_COOKIES=true

# Sensitive Data Encryption Key while storing in Database (32 character)
DATA_ENCRYPTION_KEY=7Sy2G46dla13Xw8l3itu5Wb7mIZqginL

# Hoppscotch App Domain Config
REDIRECT_URL=https://hoppscotch.my.domain
WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3000,http://localhost:3100,https://hoppscotch.my.domain
VITE_ALLOWED_AUTH_PROVIDERS=GITHUB

# Github Auth Config
GITHUB_CLIENT_ID=a valid github oauth app client id
GITHUB_CLIENT_SECRET=a valid github oauth app client secret
GITHUB_CALLBACK_URL=https://hoppscotch.my.domain/v1/auth/github/callback
GITHUB_SCOPE=user:email

# Rate Limit Config
RATE_LIMIT_TTL=60 # In seconds
RATE_LIMIT_MAX=100 # Max requests per IP

#-----------------------Frontend Config------------------------------#

# Base URLs
VITE_BASE_URL=https://hoppscotch.my.domain
VITE_SHORTCODE_BASE_URL=https://hoppscotch.my.domain
VITE_ADMIN_URL=https://hoppscotch-admin.my.domain

# Backend URLs
VITE_BACKEND_GQL_URL=https://hoppscotch-backend:3170/graphql
VITE_BACKEND_WS_URL=wss://hoppscotch-backend:3170/graphql
VITE_BACKEND_API_URL=https://hoppscotch-backend:3170/v1

# Terms Of Service And Privacy Policy Links (Optional)
VITE_APP_TOS_LINK=https://docs.hoppscotch.io/support/terms
VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/support/privacy

# Set to `true` for subpath based access
ENABLE_SUBPATH_BASED_ACCESS=false

logs of the run I met 401 error

root@us-ca-cloudcone-03:~/docker/hoppscotch# docker compose up --force-recreate
WARN[0000] Found orphan containers ([hoppscotch-hoppscotch-backend-run-d32e6cc8b6aa]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. 
[+] Running 4/4
 ✔ Container hoppscotch-admin     Recreated                                                                                           0.2s 
 ✔ Container hoppscotch-backend   Recreated                                                                                           0.2s 
 ✔ Container hoppscotch-frontend  Recreated                                                                                           0.1s 
 ✔ Container postgres-hoppscotch  Recreated                                                                                           0.1s 
Attaching to hoppscotch-admin, hoppscotch-backend, hoppscotch-frontend, postgres-hoppscotch
postgres-hoppscotch  | 
postgres-hoppscotch  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres-hoppscotch  | 
postgres-hoppscotch  | 2025-01-01 03:37:40.519 UTC [1] LOG:  starting PostgreSQL 15.10 (Debian 15.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
postgres-hoppscotch  | 2025-01-01 03:37:40.520 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres-hoppscotch  | 2025-01-01 03:37:40.520 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres-hoppscotch  | 2025-01-01 03:37:40.523 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-hoppscotch  | 2025-01-01 03:37:40.533 UTC [28] LOG:  database system was interrupted; last known up at 2025-01-01 03:28:03 UTC
postgres-hoppscotch  | 2025-01-01 03:37:40.559 UTC [28] LOG:  database system was not properly shut down; automatic recovery in progress
postgres-hoppscotch  | 2025-01-01 03:37:40.562 UTC [28] LOG:  redo starts at 0/16389F0
postgres-hoppscotch  | 2025-01-01 03:37:40.562 UTC [28] LOG:  invalid record length at 0/1639A58: wanted 24, got 0
postgres-hoppscotch  | 2025-01-01 03:37:40.562 UTC [28] LOG:  redo done at 0/1639A20 system usage: CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.00 s
postgres-hoppscotch  | 2025-01-01 03:37:40.567 UTC [26] LOG:  checkpoint starting: end-of-recovery immediate wait
postgres-hoppscotch  | 2025-01-01 03:37:40.578 UTC [26] LOG:  checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.002 s, total=0.012 s; sync files=3, longest=0.001 s, average=0.001 s; distance=4 kB, estimate=4 kB
postgres-hoppscotch  | 2025-01-01 03:37:40.586 UTC [1] LOG:  database system is ready to accept connections
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1557837,"msg":"using provided configuration","config_file":"/etc/caddy/backend.Caddyfile","config_adapter":"caddyfile"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702661.157695,"logger":"admin","msg":"admin endpoint disabled"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702661.1579134,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.158112,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0002fde00"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702661.1585166,"logger":"tls","msg":"unable to get instance ID; storage clean stamps will be incomplete","error":"open /root/.local/share/caddy/instance.uuid: no such file or directory"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1587586,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1591496,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1591845,"msg":"serving initial configuration"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1653733,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/root/.local/share/caddy"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1658683,"logger":"tls","msg":"finished cleaning storage units"}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3730164,"msg":"using config from file","file":"/etc/caddy/sh-admin-multiport-setup.Caddyfile"}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3748415,"msg":"adapted config to JSON","adapter":"caddyfile"}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702662.3748615,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/sh-admin-multiport-setup.Caddyfile","line":2}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702662.3751547,"logger":"admin","msg":"admin endpoint disabled"}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702662.3755429,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3756166,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0006a0680"}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.376835,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.376995,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3770416,"msg":"serving initial configuration"}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3814104,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/data/caddy"}
hoppscotch-admin     | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3817666,"logger":"tls","msg":"finished cleaning storage units"}
hoppscotch-frontend  | {"level":"info","ts":1735702662.5606956,"msg":"using config from file","file":"/etc/caddy/selfhost-web.Caddyfile"}
hoppscotch-frontend  | {"level":"info","ts":1735702662.5619297,"msg":"adapted config to JSON","adapter":"caddyfile"}
hoppscotch-frontend  | {"level":"warn","ts":1735702662.561952,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/selfhost-web.Caddyfile","line":2}
hoppscotch-frontend  | {"level":"warn","ts":1735702662.5622203,"logger":"admin","msg":"admin endpoint disabled"}
hoppscotch-frontend  | {"level":"warn","ts":1735702662.5624716,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
hoppscotch-frontend  | {"level":"info","ts":1735702662.5627744,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0000cad80"}
hoppscotch-frontend  | {"level":"info","ts":1735702662.5632777,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
hoppscotch-frontend  | {"level":"info","ts":1735702662.5634227,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
hoppscotch-frontend  | {"level":"info","ts":1735702662.5634546,"msg":"serving initial configuration"}
hoppscotch-frontend  | {"level":"info","ts":1735702662.565603,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/data/caddy"}
hoppscotch-frontend  | {"level":"info","ts":1735702662.5660498,"logger":"tls","msg":"finished cleaning storage units"}
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:43 AM     LOG [NestFactory] Starting Nest application...
hoppscotch-backend   | Backend Server | Mailer module is disabled
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] PubSubModule dependencies initialized +540ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] PrismaModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] PassportModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] ConfigHostModule dependencies initialized +10ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] TerminusModule dependencies initialized +7ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] ConfigModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +5ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] HealthModule dependencies initialized +5ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] AppModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] ThrottlerModule dependencies initialized +8ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] JwtModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] UserModule dependencies initialized +5ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] UserSettingsModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] UserEnvironmentsModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] UserCollectionModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] UserRequestModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] TeamModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] ShortcodeModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] AccessTokenModule dependencies initialized +4ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] TeamEnvironmentsModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] GraphQLModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] TeamRequestModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] TeamCollectionModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] ConfigModule dependencies initialized +54ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] MailerModule dependencies initialized +3ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] PosthogModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] UserHistoryModule dependencies initialized +6ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] TeamInvitationModule dependencies initialized +7ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] InfraConfigModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] AdminModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] AuthModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [InstanceLoader] InfraTokenModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | Running in production:  true
hoppscotch-backend   | Backend Server | Port: 8080
hoppscotch-backend   | Backend Server | Wed, 01 Jan 2025 03:37:44 GMT express-session deprecated undefined resave option; provide resave option at dist/main.js:41:13
hoppscotch-backend   | Backend Server | Wed, 01 Jan 2025 03:37:44 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at dist/main.js:41:13
hoppscotch-backend   | Backend Server | Enabling CORS with production settings
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RoutesResolver] AppController {/ping}: +75ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/ping, GET} route +8ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RoutesResolver] AuthController {/auth} (version: 1): +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/providers, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/signin, POST} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/verify, POST} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/refresh, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/google, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/google/callback, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/github, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/github/callback, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/microsoft, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/microsoft/callback, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/logout, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/auth/verify/admin, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RoutesResolver] SiteController {/site} (version: 1): +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/site/setup, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/site/setup, PUT} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RoutesResolver] TeamCollectionController {/team-collection} (version: 1): +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/team-collection/search/:teamID, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RoutesResolver] HealthController {/health}: +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/health, GET} route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RoutesResolver] AccessTokenController {/access-tokens} (version: 1): +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/access-tokens/create, POST} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/access-tokens/revoke, DELETE} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/access-tokens/list, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/access-tokens/collection/:id, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/access-tokens/environment/:id, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RoutesResolver] InfraTokensController {/infra} (version: 1): +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/infra/user-invitations, POST} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/infra/user-invitations, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/infra/user-invitations, DELETE} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/infra/users, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid, PATCH} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid, DELETE} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid/admin-status, PATCH} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:44 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid/workspaces, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | Initialize PubSub
hoppscotch-backend   | Backend Server | Stopping app in 5 seconds...
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:45 AM     LOG [GraphQLModule] Mapped {/graphql, POST} route +878ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:45 AM     LOG [NestApplication] Nest application successfully started +15ms
hoppscotch-backend   | Backend Server | Stopping app now...
hoppscotch-backend   | Backend Server | SIGTERM signal received
hoppscotch-backend   | Exiting process because Backend Server exited with code 0
hoppscotch-backend exited with code 0
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.879978,"msg":"using provided configuration","config_file":"/etc/caddy/backend.Caddyfile","config_adapter":"caddyfile"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702670.8819258,"logger":"admin","msg":"admin endpoint disabled"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702670.8820486,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.8824067,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0000bff80"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.8828487,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.882953,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.8829734,"msg":"serving initial configuration"}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702670.8877528,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/root/.local/share/caddy","instance":"d583de66-b198-4f3d-a141-5afd3d1abd62","try_again":1735789070.887748,"try_again_in":86399.999998892}
hoppscotch-backend   | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.8878882,"logger":"tls","msg":"finished cleaning storage units"}
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [NestFactory] Starting Nest application...
hoppscotch-backend   | Backend Server | Mailer module is disabled
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] PubSubModule dependencies initialized +483ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] PrismaModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] PassportModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] ConfigHostModule dependencies initialized +10ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] TerminusModule dependencies initialized +8ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] ConfigModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +5ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] HealthModule dependencies initialized +3ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] AppModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] ThrottlerModule dependencies initialized +6ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] JwtModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] UserModule dependencies initialized +4ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] UserSettingsModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] UserEnvironmentsModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] UserCollectionModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] UserRequestModule dependencies initialized +3ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] TeamModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] ShortcodeModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] AccessTokenModule dependencies initialized +4ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] TeamEnvironmentsModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] GraphQLModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] TeamRequestModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] TeamCollectionModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] ConfigModule dependencies initialized +57ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] MailerModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] PosthogModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] UserHistoryModule dependencies initialized +7ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] TeamInvitationModule dependencies initialized +6ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] InfraConfigModule dependencies initialized +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] AdminModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] AuthModule dependencies initialized +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:53 AM     LOG [InstanceLoader] InfraTokenModule dependencies initialized +1ms
hoppscotch-backend   | Backend Server | Running in production:  true
hoppscotch-backend   | Backend Server | Port: 8080
hoppscotch-backend   | Backend Server | Wed, 01 Jan 2025 03:37:54 GMT express-session deprecated undefined resave option; provide resave option at dist/main.js:41:13
hoppscotch-backend   | Backend Server | Wed, 01 Jan 2025 03:37:54 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at dist/main.js:41:13
hoppscotch-backend   | Backend Server | Enabling CORS with production settings
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RoutesResolver] AppController {/ping}: +88ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/ping, GET} route +11ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RoutesResolver] AuthController {/auth} (version: 1): +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/providers, GET} (version: 1) route +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/signin, POST} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/verify, POST} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/refresh, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/google, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/google/callback, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/github, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/github/callback, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/microsoft, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/microsoft/callback, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/logout, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/auth/verify/admin, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RoutesResolver] SiteController {/site} (version: 1): +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/site/setup, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/site/setup, PUT} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RoutesResolver] TeamCollectionController {/team-collection} (version: 1): +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/team-collection/search/:teamID, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RoutesResolver] HealthController {/health}: +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/health, GET} route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RoutesResolver] AccessTokenController {/access-tokens} (version: 1): +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/access-tokens/create, POST} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/access-tokens/revoke, DELETE} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/access-tokens/list, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/access-tokens/collection/:id, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/access-tokens/environment/:id, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RoutesResolver] InfraTokensController {/infra} (version: 1): +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/infra/user-invitations, POST} (version: 1) route +2ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/infra/user-invitations, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/infra/user-invitations, DELETE} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/infra/users, GET} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid, PATCH} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid, DELETE} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid/admin-status, PATCH} (version: 1) route +0ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [RouterExplorer] Mapped {/infra/users/:uid/workspaces, GET} (version: 1) route +1ms
hoppscotch-backend   | Backend Server | Initialize PubSub
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [GraphQLModule] Mapped {/graphql, POST} route +831ms
hoppscotch-backend   | Backend Server | [Nest] 19  - 01/01/2025, 3:37:54 AM     LOG [NestApplication] Nest application successfully started +15ms
hoppscotch-backend   | Backend Server | Query Complexity: 7
hoppscotch-backend   | Backend Server | Query Complexity: 3
hoppscotch-backend   | Backend Server | Query Complexity: 4
hoppscotch-backend   | Backend Server | Query Complexity: 3
hoppscotch-backend   | Backend Server | Query Complexity: 17
<!-- gh-comment-id:2566829009 --> @RockChinQ commented on GitHub (Jan 1, 2025): I deployed an `individual containers` mode, which still met the 401 error. docker-compose.yaml ```yaml services: hoppscotch-frontend: image: hoppscotch/hoppscotch-frontend container_name: hoppscotch-frontend ports: - 3000:3000 env_file: - .env restart: unless-stopped networks: - shared-network depends_on: - postgres hoppscotch-backend: image: hoppscotch/hoppscotch-backend container_name: hoppscotch-backend ports: - 3170:3170 env_file: - .env restart: unless-stopped networks: - shared-network depends_on: - postgres hoppscotch-admin: image: hoppscotch/hoppscotch-admin container_name: hoppscotch-admin ports: - 3100:3100 env_file: - .env restart: unless-stopped networks: - shared-network depends_on: - postgres postgres: image: postgres:15 environment: - PGUSER=postgres - POSTGRES_PASSWORD=xxxx volumes: - ./pgsql-data:/var/lib/postgresql/data healthcheck: test: [ "CMD", "pg_isready" ] interval: 1s timeout: 3s retries: 30 restart: always networks: - shared-network container_name: postgres-hoppscotch networks: shared-network: external: true ``` my own caddy file ```caddy hoppscotch.my.domain { reverse_proxy / hoppscotch-frontend:3000 reverse_proxy /v1/* hoppscotch-backend:3170 } hoppscotch-admin.my.domain { reverse_proxy hoppscotch-admin:3100 } ``` the .env file ```env #-----------------------Backend Config------------------------------# # Prisma Config DATABASE_URL=postgresql://postgres:xxxx@postgres-hoppscotch:5432/postgres # or replace with your database URL # (Optional) By default, the AIO container (when in subpath access mode) exposes the endpoint on port 80. Use this setting to specify a different port if needed. HOPP_AIO_ALTERNATE_PORT=80 # Auth Tokens Config JWT_SECRET=Akq6G6UgKEcw1TPM TOKEN_SALT_COMPLEXITY=10 MAGIC_LINK_TOKEN_VALIDITY=3 REFRESH_TOKEN_VALIDITY=604800000 # Default validity is 7 days (604800000 ms) in ms ACCESS_TOKEN_VALIDITY=86400000 # Default validity is 1 day (86400000 ms) in ms SESSION_SECRET=QyrCmoluiRhDdJww # Recommended to be true. Set to false if you are using http. # Note: Some auth providers may not support http requests and may stop working when set to false. ALLOW_SECURE_COOKIES=true # Sensitive Data Encryption Key while storing in Database (32 character) DATA_ENCRYPTION_KEY=7Sy2G46dla13Xw8l3itu5Wb7mIZqginL # Hoppscotch App Domain Config REDIRECT_URL=https://hoppscotch.my.domain WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3000,http://localhost:3100,https://hoppscotch.my.domain VITE_ALLOWED_AUTH_PROVIDERS=GITHUB # Github Auth Config GITHUB_CLIENT_ID=a valid github oauth app client id GITHUB_CLIENT_SECRET=a valid github oauth app client secret GITHUB_CALLBACK_URL=https://hoppscotch.my.domain/v1/auth/github/callback GITHUB_SCOPE=user:email # Rate Limit Config RATE_LIMIT_TTL=60 # In seconds RATE_LIMIT_MAX=100 # Max requests per IP #-----------------------Frontend Config------------------------------# # Base URLs VITE_BASE_URL=https://hoppscotch.my.domain VITE_SHORTCODE_BASE_URL=https://hoppscotch.my.domain VITE_ADMIN_URL=https://hoppscotch-admin.my.domain # Backend URLs VITE_BACKEND_GQL_URL=https://hoppscotch-backend:3170/graphql VITE_BACKEND_WS_URL=wss://hoppscotch-backend:3170/graphql VITE_BACKEND_API_URL=https://hoppscotch-backend:3170/v1 # Terms Of Service And Privacy Policy Links (Optional) VITE_APP_TOS_LINK=https://docs.hoppscotch.io/support/terms VITE_APP_PRIVACY_POLICY_LINK=https://docs.hoppscotch.io/support/privacy # Set to `true` for subpath based access ENABLE_SUBPATH_BASED_ACCESS=false ``` logs of the run I met 401 error ```bash root@us-ca-cloudcone-03:~/docker/hoppscotch# docker compose up --force-recreate WARN[0000] Found orphan containers ([hoppscotch-hoppscotch-backend-run-d32e6cc8b6aa]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. [+] Running 4/4 ✔ Container hoppscotch-admin Recreated 0.2s ✔ Container hoppscotch-backend Recreated 0.2s ✔ Container hoppscotch-frontend Recreated 0.1s ✔ Container postgres-hoppscotch Recreated 0.1s Attaching to hoppscotch-admin, hoppscotch-backend, hoppscotch-frontend, postgres-hoppscotch postgres-hoppscotch | postgres-hoppscotch | PostgreSQL Database directory appears to contain a database; Skipping initialization postgres-hoppscotch | postgres-hoppscotch | 2025-01-01 03:37:40.519 UTC [1] LOG: starting PostgreSQL 15.10 (Debian 15.10-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit postgres-hoppscotch | 2025-01-01 03:37:40.520 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 postgres-hoppscotch | 2025-01-01 03:37:40.520 UTC [1] LOG: listening on IPv6 address "::", port 5432 postgres-hoppscotch | 2025-01-01 03:37:40.523 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" postgres-hoppscotch | 2025-01-01 03:37:40.533 UTC [28] LOG: database system was interrupted; last known up at 2025-01-01 03:28:03 UTC postgres-hoppscotch | 2025-01-01 03:37:40.559 UTC [28] LOG: database system was not properly shut down; automatic recovery in progress postgres-hoppscotch | 2025-01-01 03:37:40.562 UTC [28] LOG: redo starts at 0/16389F0 postgres-hoppscotch | 2025-01-01 03:37:40.562 UTC [28] LOG: invalid record length at 0/1639A58: wanted 24, got 0 postgres-hoppscotch | 2025-01-01 03:37:40.562 UTC [28] LOG: redo done at 0/1639A20 system usage: CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.00 s postgres-hoppscotch | 2025-01-01 03:37:40.567 UTC [26] LOG: checkpoint starting: end-of-recovery immediate wait postgres-hoppscotch | 2025-01-01 03:37:40.578 UTC [26] LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.002 s, total=0.012 s; sync files=3, longest=0.001 s, average=0.001 s; distance=4 kB, estimate=4 kB postgres-hoppscotch | 2025-01-01 03:37:40.586 UTC [1] LOG: database system is ready to accept connections hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1557837,"msg":"using provided configuration","config_file":"/etc/caddy/backend.Caddyfile","config_adapter":"caddyfile"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702661.157695,"logger":"admin","msg":"admin endpoint disabled"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702661.1579134,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.158112,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0002fde00"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702661.1585166,"logger":"tls","msg":"unable to get instance ID; storage clean stamps will be incomplete","error":"open /root/.local/share/caddy/instance.uuid: no such file or directory"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1587586,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1591496,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1591845,"msg":"serving initial configuration"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1653733,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/root/.local/share/caddy"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702661.1658683,"logger":"tls","msg":"finished cleaning storage units"} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3730164,"msg":"using config from file","file":"/etc/caddy/sh-admin-multiport-setup.Caddyfile"} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3748415,"msg":"adapted config to JSON","adapter":"caddyfile"} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702662.3748615,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/sh-admin-multiport-setup.Caddyfile","line":2} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702662.3751547,"logger":"admin","msg":"admin endpoint disabled"} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702662.3755429,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3756166,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0006a0680"} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.376835,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.376995,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3770416,"msg":"serving initial configuration"} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3814104,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/data/caddy"} hoppscotch-admin | App/Admin Dashboard Caddy | {"level":"info","ts":1735702662.3817666,"logger":"tls","msg":"finished cleaning storage units"} hoppscotch-frontend | {"level":"info","ts":1735702662.5606956,"msg":"using config from file","file":"/etc/caddy/selfhost-web.Caddyfile"} hoppscotch-frontend | {"level":"info","ts":1735702662.5619297,"msg":"adapted config to JSON","adapter":"caddyfile"} hoppscotch-frontend | {"level":"warn","ts":1735702662.561952,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/selfhost-web.Caddyfile","line":2} hoppscotch-frontend | {"level":"warn","ts":1735702662.5622203,"logger":"admin","msg":"admin endpoint disabled"} hoppscotch-frontend | {"level":"warn","ts":1735702662.5624716,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80} hoppscotch-frontend | {"level":"info","ts":1735702662.5627744,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0000cad80"} hoppscotch-frontend | {"level":"info","ts":1735702662.5632777,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]} hoppscotch-frontend | {"level":"info","ts":1735702662.5634227,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]} hoppscotch-frontend | {"level":"info","ts":1735702662.5634546,"msg":"serving initial configuration"} hoppscotch-frontend | {"level":"info","ts":1735702662.565603,"logger":"tls","msg":"cleaning storage unit","storage":"FileStorage:/data/caddy"} hoppscotch-frontend | {"level":"info","ts":1735702662.5660498,"logger":"tls","msg":"finished cleaning storage units"} hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:43 AM LOG [NestFactory] Starting Nest application... hoppscotch-backend | Backend Server | Mailer module is disabled hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] PubSubModule dependencies initialized +540ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] PrismaModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] PassportModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +10ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] TerminusModule dependencies initialized +7ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] ConfigModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +5ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] HealthModule dependencies initialized +5ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] AppModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] ThrottlerModule dependencies initialized +8ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] JwtModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] UserModule dependencies initialized +5ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] UserSettingsModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] UserEnvironmentsModule dependencies initialized +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] UserCollectionModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] UserRequestModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] TeamModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] ShortcodeModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] AccessTokenModule dependencies initialized +4ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] TeamEnvironmentsModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] GraphQLModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] TeamRequestModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] TeamCollectionModule dependencies initialized +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] ConfigModule dependencies initialized +54ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] MailerModule dependencies initialized +3ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] PosthogModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] UserHistoryModule dependencies initialized +6ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] TeamInvitationModule dependencies initialized +7ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] InfraConfigModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] AdminModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] AuthModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [InstanceLoader] InfraTokenModule dependencies initialized +1ms hoppscotch-backend | Backend Server | Running in production: true hoppscotch-backend | Backend Server | Port: 8080 hoppscotch-backend | Backend Server | Wed, 01 Jan 2025 03:37:44 GMT express-session deprecated undefined resave option; provide resave option at dist/main.js:41:13 hoppscotch-backend | Backend Server | Wed, 01 Jan 2025 03:37:44 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at dist/main.js:41:13 hoppscotch-backend | Backend Server | Enabling CORS with production settings hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RoutesResolver] AppController {/ping}: +75ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/ping, GET} route +8ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RoutesResolver] AuthController {/auth} (version: 1): +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/providers, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/signin, POST} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/verify, POST} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/refresh, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/google, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/google/callback, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/github, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/github/callback, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/microsoft, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/microsoft/callback, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/logout, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/auth/verify/admin, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RoutesResolver] SiteController {/site} (version: 1): +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/site/setup, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/site/setup, PUT} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RoutesResolver] TeamCollectionController {/team-collection} (version: 1): +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/team-collection/search/:teamID, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RoutesResolver] HealthController {/health}: +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/health, GET} route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RoutesResolver] AccessTokenController {/access-tokens} (version: 1): +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/access-tokens/create, POST} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/access-tokens/revoke, DELETE} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/access-tokens/list, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/access-tokens/collection/:id, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/access-tokens/environment/:id, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RoutesResolver] InfraTokensController {/infra} (version: 1): +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/infra/user-invitations, POST} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/infra/user-invitations, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/infra/user-invitations, DELETE} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/infra/users, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/infra/users/:uid, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/infra/users/:uid, PATCH} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/infra/users/:uid, DELETE} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/infra/users/:uid/admin-status, PATCH} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:44 AM LOG [RouterExplorer] Mapped {/infra/users/:uid/workspaces, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | Initialize PubSub hoppscotch-backend | Backend Server | Stopping app in 5 seconds... hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:45 AM LOG [GraphQLModule] Mapped {/graphql, POST} route +878ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:45 AM LOG [NestApplication] Nest application successfully started +15ms hoppscotch-backend | Backend Server | Stopping app now... hoppscotch-backend | Backend Server | SIGTERM signal received hoppscotch-backend | Exiting process because Backend Server exited with code 0 hoppscotch-backend exited with code 0 hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.879978,"msg":"using provided configuration","config_file":"/etc/caddy/backend.Caddyfile","config_adapter":"caddyfile"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702670.8819258,"logger":"admin","msg":"admin endpoint disabled"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702670.8820486,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv1","http_port":80} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.8824067,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0000bff80"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.8828487,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.882953,"logger":"http.log","msg":"server running","name":"srv1","protocols":["h1","h2","h3"]} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.8829734,"msg":"serving initial configuration"} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"warn","ts":1735702670.8877528,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/root/.local/share/caddy","instance":"d583de66-b198-4f3d-a141-5afd3d1abd62","try_again":1735789070.887748,"try_again_in":86399.999998892} hoppscotch-backend | App/Admin Dashboard Caddy | {"level":"info","ts":1735702670.8878882,"logger":"tls","msg":"finished cleaning storage units"} hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [NestFactory] Starting Nest application... hoppscotch-backend | Backend Server | Mailer module is disabled hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] PubSubModule dependencies initialized +483ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] PrismaModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] PassportModule dependencies initialized +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +10ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] TerminusModule dependencies initialized +8ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] ConfigModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +5ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] HealthModule dependencies initialized +3ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] AppModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] ThrottlerModule dependencies initialized +6ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] JwtModule dependencies initialized +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] GraphQLSchemaBuilderModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] UserModule dependencies initialized +4ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] UserSettingsModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] UserEnvironmentsModule dependencies initialized +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] UserCollectionModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] UserRequestModule dependencies initialized +3ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] TeamModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] ShortcodeModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] AccessTokenModule dependencies initialized +4ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] TeamEnvironmentsModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] GraphQLModule dependencies initialized +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] TeamRequestModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] TeamCollectionModule dependencies initialized +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] ConfigModule dependencies initialized +57ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] MailerModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] PosthogModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] UserHistoryModule dependencies initialized +7ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] TeamInvitationModule dependencies initialized +6ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] InfraConfigModule dependencies initialized +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] AdminModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] AuthModule dependencies initialized +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:53 AM LOG [InstanceLoader] InfraTokenModule dependencies initialized +1ms hoppscotch-backend | Backend Server | Running in production: true hoppscotch-backend | Backend Server | Port: 8080 hoppscotch-backend | Backend Server | Wed, 01 Jan 2025 03:37:54 GMT express-session deprecated undefined resave option; provide resave option at dist/main.js:41:13 hoppscotch-backend | Backend Server | Wed, 01 Jan 2025 03:37:54 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at dist/main.js:41:13 hoppscotch-backend | Backend Server | Enabling CORS with production settings hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RoutesResolver] AppController {/ping}: +88ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/ping, GET} route +11ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RoutesResolver] AuthController {/auth} (version: 1): +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/providers, GET} (version: 1) route +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/signin, POST} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/verify, POST} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/refresh, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/google, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/google/callback, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/github, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/github/callback, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/microsoft, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/microsoft/callback, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/logout, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/auth/verify/admin, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RoutesResolver] SiteController {/site} (version: 1): +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/site/setup, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/site/setup, PUT} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RoutesResolver] TeamCollectionController {/team-collection} (version: 1): +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/team-collection/search/:teamID, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RoutesResolver] HealthController {/health}: +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/health, GET} route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RoutesResolver] AccessTokenController {/access-tokens} (version: 1): +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/access-tokens/create, POST} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/access-tokens/revoke, DELETE} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/access-tokens/list, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/access-tokens/collection/:id, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/access-tokens/environment/:id, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RoutesResolver] InfraTokensController {/infra} (version: 1): +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/infra/user-invitations, POST} (version: 1) route +2ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/infra/user-invitations, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/infra/user-invitations, DELETE} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/infra/users, GET} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/infra/users/:uid, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/infra/users/:uid, PATCH} (version: 1) route +1ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/infra/users/:uid, DELETE} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/infra/users/:uid/admin-status, PATCH} (version: 1) route +0ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [RouterExplorer] Mapped {/infra/users/:uid/workspaces, GET} (version: 1) route +1ms hoppscotch-backend | Backend Server | Initialize PubSub hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [GraphQLModule] Mapped {/graphql, POST} route +831ms hoppscotch-backend | Backend Server | [Nest] 19 - 01/01/2025, 3:37:54 AM LOG [NestApplication] Nest application successfully started +15ms hoppscotch-backend | Backend Server | Query Complexity: 7 hoppscotch-backend | Backend Server | Query Complexity: 3 hoppscotch-backend | Backend Server | Query Complexity: 4 hoppscotch-backend | Backend Server | Query Complexity: 3 hoppscotch-backend | Backend Server | Query Complexity: 17 ```
Author
Owner

@VeevoTest commented on GitHub (Jan 3, 2025):

im facing same issue , i get 500 err then when it reload it gives 401

log :

Backend Server | Query Complexity: 7
Backend Server | Query Complexity: 4
Backend Server | Query Complexity: 3
Backend Server | Query Complexity: 3
Backend Server | Query Complexity: 17
Backend Server | [Nest] 37 - 01/03/2025, 7:21:16 AM 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
Backend Server | at module.exports [as sign] (/dist/backend/node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/sign.js:213:22)
Backend Server | at JwtService.sign (/dist/backend/node_modules/.pnpm/@nestjs+jwt@10.2.0_@nestjs+common@10.4.4_class-transformer@0.5.1_class-validator@0.14.1_refle_p73cogk5aumciauu2q42yaxpfq/node_modules/@nestjs/jwt/dist/jwt.service.js:41:20)
Backend Server | at AuthService.generateRefreshToken (/dist/backend/dist/auth/auth.service.js:76:52)
Backend Server | at AuthService.generateAuthTokens (/dist/backend/dist/auth/auth.service.js:94:41)
Backend Server | at AuthController.githubAuthRedirect (/dist/backend/dist/auth/auth.controller.js:74:51)
Backend Server | at /dist/backend/node_modules/.pnpm/@nestjs+core@10.4.4_@nestjs+common@10.4.4_class-transformer@0.5.1_class-validator@0.14.1_refl_uclmhdhodpinoxc7fwisrergn4/node_modules/@nestjs/core/router/router-execution-context.js:38:29

Screenshot 2025-01-03 122856

<!-- gh-comment-id:2568793981 --> @VeevoTest commented on GitHub (Jan 3, 2025): im facing same issue , i get 500 err then when it reload it gives 401 log : Backend Server | Query Complexity: 7 Backend Server | Query Complexity: 4 Backend Server | Query Complexity: 3 Backend Server | Query Complexity: 3 Backend Server | Query Complexity: 17 Backend Server | [Nest] 37 - 01/03/2025, 7:21:16 AM 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 Backend Server | at module.exports [as sign] (/dist/backend/node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/sign.js:213:22) Backend Server | at JwtService.sign (/dist/backend/node_modules/.pnpm/@nestjs+jwt@10.2.0_@nestjs+common@10.4.4_class-transformer@0.5.1_class-validator@0.14.1_refle_p73cogk5aumciauu2q42yaxpfq/node_modules/@nestjs/jwt/dist/jwt.service.js:41:20) Backend Server | at AuthService.generateRefreshToken (/dist/backend/dist/auth/auth.service.js:76:52) Backend Server | at AuthService.generateAuthTokens (/dist/backend/dist/auth/auth.service.js:94:41) Backend Server | at AuthController.githubAuthRedirect (/dist/backend/dist/auth/auth.controller.js:74:51) Backend Server | at /dist/backend/node_modules/.pnpm/@nestjs+core@10.4.4_@nestjs+common@10.4.4_class-transformer@0.5.1_class-validator@0.14.1_refl_uclmhdhodpinoxc7fwisrergn4/node_modules/@nestjs/core/router/router-execution-context.js:38:29 ![Screenshot 2025-01-03 122856](https://github.com/user-attachments/assets/98e5afaf-4fe2-4d06-aae7-ff676effd8fb)
Author
Owner

@VeevoTest commented on GitHub (Jan 3, 2025):

im facing same issue , i get 500 err then when it reload it gives 401

log :

Backend Server | Query Complexity: 7 Backend Server | Query Complexity: 4 Backend Server | Query Complexity: 3 Backend Server | Query Complexity: 3 Backend Server | Query Complexity: 17 Backend Server | [Nest] 37 - 01/03/2025, 7:21:16 AM 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 Backend Server | at module.exports [as sign] (/dist/backend/node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/sign.js:213:22) Backend Server | at JwtService.sign (/dist/backend/node_modules/.pnpm/@nestjs+jwt@10.2.0_@nestjs+common@10.4.4_class-transformer@0.5.1_class-validator@0.14.1_refle_p73cogk5aumciauu2q42yaxpfq/node_modules/@nestjs/jwt/dist/jwt.service.js:41:20) Backend Server | at AuthService.generateRefreshToken (/dist/backend/dist/auth/auth.service.js:76:52) Backend Server | at AuthService.generateAuthTokens (/dist/backend/dist/auth/auth.service.js:94:41) Backend Server | at AuthController.githubAuthRedirect (/dist/backend/dist/auth/auth.controller.js:74:51) Backend Server | at /dist/backend/node_modules/.pnpm/@nestjs+core@10.4.4_@nestjs+common@10.4.4_class-transformer@0.5.1_class-validator@0.14.1_refl_uclmhdhodpinoxc7fwisrergn4/node_modules/@nestjs/core/router/router-execution-context.js:38:29

Screenshot 2025-01-03 122856

okay , my issue got resolved using changes suggested in issue#4205
by removing inline comments from .env got successful login .

<!-- gh-comment-id:2568813645 --> @VeevoTest commented on GitHub (Jan 3, 2025): > im facing same issue , i get 500 err then when it reload it gives 401 > > log : > > Backend Server | Query Complexity: 7 Backend Server | Query Complexity: 4 Backend Server | Query Complexity: 3 Backend Server | Query Complexity: 3 Backend Server | Query Complexity: 17 Backend Server | [Nest] 37 - 01/03/2025, 7:21:16 AM 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 Backend Server | at module.exports [as sign] (/dist/backend/node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/sign.js:213:22) Backend Server | at JwtService.sign (/dist/backend/node_modules/.pnpm/@nestjs+jwt@[10.2.0_@nestjs](mailto:10.2.0_@nestjs)+common@10.4.4_class-transformer@[0.5.1_class-validator@0.14.1_refle_p73cogk5aumciauu2q42yaxpfq](mailto:0.5.1_class-validator@0.14.1_refle_p73cogk5aumciauu2q42yaxpfq)/node_modules/@nestjs/jwt/dist/jwt.service.js:41:20) Backend Server | at AuthService.generateRefreshToken (/dist/backend/dist/auth/auth.service.js:76:52) Backend Server | at AuthService.generateAuthTokens (/dist/backend/dist/auth/auth.service.js:94:41) Backend Server | at AuthController.githubAuthRedirect (/dist/backend/dist/auth/auth.controller.js:74:51) Backend Server | at /dist/backend/node_modules/.pnpm/@nestjs+core@[10.4.4_@nestjs](mailto:10.4.4_@nestjs)+common@10.4.4_class-transformer@0.5.1_class-validator@0.14.1_refl_uclmhdhodpinoxc7fwisrergn4/node_modules/@nestjs/core/router/router-execution-context.js:38:29 > > ![Screenshot 2025-01-03 122856](https://private-user-images.githubusercontent.com/144884029/399887183-98e5afaf-4fe2-4d06-aae7-ff676effd8fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzU4ODk2NjcsIm5iZiI6MTczNTg4OTM2NywicGF0aCI6Ii8xNDQ4ODQwMjkvMzk5ODg3MTgzLTk4ZTVhZmFmLTRmZTItNGQwNi1hYWU3LWZmNjc2ZWZmZDhmYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMTAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDEwM1QwNzI5MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMDIwYWYwOWVmMWM5NmRmNzhiM2ZmYTlhM2Q4NmViZjMyZjBiYWU2NDZmMjNmNmY5NDM2Mzk2NGYxYWNkMmNmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.qRtWiWSooOmsYpJJWAYmK2eaAAUJxu-4tvgZ4Nx_Fz8) okay , my issue got resolved using changes suggested in issue#4205 by removing inline comments from .env got successful login .
Author
Owner

@rintaaaa commented on GitHub (Jan 8, 2025):

@VeevoTest
How did you set up the login method?mail?GoogleOAuth?etc?

<!-- gh-comment-id:2577311949 --> @rintaaaa commented on GitHub (Jan 8, 2025): @VeevoTest How did you set up the login method?mail?GoogleOAuth?etc?
Author
Owner

@VeevoTest commented on GitHub (Jan 8, 2025):

i used github for OAuth , problem was rising due to inline comment in example .env file.

following is my new env file:

#-----------------------Backend Config------------------------------#

Prisma Config

DATABASE_URL=postgresql://:@:5432/*****

(Optional) By default, the AIO container (when in subpath access mode) exposes the endpoint on port 80. Use this setting to specify a different port if needed.

#HOPP_AIO_ALTERNATE_PORT=80

Auth Tokens Config

JWT_SECRET=************
TOKEN_SALT_COMPLEXITY=10
MAGIC_LINK_TOKEN_VALIDITY=3
REFRESH_TOKEN_VALIDITY=604800000
ACCESS_TOKEN_VALIDITY=86400000
SESSION_SECRET=**secret-code-

Recommended to be true. Set to false if you are using http.

Note: Some auth providers may not support http requests and may stop working when set to false.

ALLOW_SECURE_COOKIES=false

Sensitive Data Encryption Key while storing in Database (32 character)

DATA_ENCRYPTION_KEY=8GMsSBBY9********************

Hoppscotch App Domain Config

REDIRECT_URL=http://:3000
WHITELISTED_ORIGINS=http://
:3170,http://
:3000,http://***:3100
VITE_ALLOWED_AUTH_PROVIDERS=GITHUB

Github Auth Config

GITHUB_CLIENT_ID=***********
GITHUB_CLIENT_SECRET=***********
GITHUB_CALLBACK_URL=http://***********:3170/v1/auth/github/callback
GITHUB_SCOPE=user:email

Rate Limit Config

RATE_LIMIT_TTL=60 # In seconds
RATE_LIMIT_MAX=100 # Max requests per IP

#-----------------------Frontend Config------------------------------#

Base URLs

VITE_BASE_URL=http://:3000
VITE_SHORTCODE_BASE_URL=http://
:3000
VITE_ADMIN_URL=http://***********:3100

Backend URLs

VITE_BACKEND_GQL_URL=http://:3170/graphql
VITE_BACKEND_WS_URL=wss://
:3170/graphql
VITE_BACKEND_API_URL=http://***********:3170/v1

Set to true for subpath based access

ENABLE_SUBPATH_BASED_ACCESS=false

<!-- gh-comment-id:2577433977 --> @VeevoTest commented on GitHub (Jan 8, 2025): i used github for OAuth , problem was rising due to inline comment in example .env file. following is my new env file: #-----------------------Backend Config------------------------------# # Prisma Config DATABASE_URL=postgresql://************:********@*********:5432/********** # (Optional) By default, the AIO container (when in subpath access mode) exposes the endpoint on port 80. Use this setting to specify a different port if needed. #HOPP_AIO_ALTERNATE_PORT=80 # Auth Tokens Config JWT_SECRET=************ TOKEN_SALT_COMPLEXITY=10 MAGIC_LINK_TOKEN_VALIDITY=3 REFRESH_TOKEN_VALIDITY=604800000 ACCESS_TOKEN_VALIDITY=86400000 SESSION_SECRET=********secret-code-****** # Recommended to be true. Set to false if you are using http. # Note: Some auth providers may not support http requests and may stop working when set to false. ALLOW_SECURE_COOKIES=false # Sensitive Data Encryption Key while storing in Database (32 character) DATA_ENCRYPTION_KEY=8GMsSBBY9******************** # Hoppscotch App Domain Config REDIRECT_URL=http://**************:3000 WHITELISTED_ORIGINS=http://***********:3170,http://***********:3000,http://***********:3100 VITE_ALLOWED_AUTH_PROVIDERS=GITHUB # Github Auth Config GITHUB_CLIENT_ID=*********** GITHUB_CLIENT_SECRET=*********** GITHUB_CALLBACK_URL=http://***********:3170/v1/auth/github/callback GITHUB_SCOPE=user:email # Rate Limit Config RATE_LIMIT_TTL=60 # In seconds RATE_LIMIT_MAX=100 # Max requests per IP #-----------------------Frontend Config------------------------------# # Base URLs VITE_BASE_URL=http://***********:3000 VITE_SHORTCODE_BASE_URL=http://***********:3000 VITE_ADMIN_URL=http://***********:3100 # Backend URLs VITE_BACKEND_GQL_URL=http://***********:3170/graphql VITE_BACKEND_WS_URL=wss://***********:3170/graphql VITE_BACKEND_API_URL=http://***********:3170/v1 # Set to true for subpath based access ENABLE_SUBPATH_BASED_ACCESS=false
Author
Owner

@nvroot commented on GitHub (Apr 15, 2025):

Remove database storage and try again
sudo rm -rf pgsql-data

<!-- gh-comment-id:2805116644 --> @nvroot commented on GitHub (Apr 15, 2025): Remove database storage and try again `sudo rm -rf pgsql-data`
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#1527
No description provided.