[GH-ISSUE #4640] [bug]: Failed to connect to the backend server, make sure the backend is setup correctly #1717

Closed
opened 2026-03-16 21:31:25 +03:00 by kerem · 2 comments
Owner

Originally created by @rintaaaa on GitHub (Dec 23, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4640

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

image

I was able to build it locally and log in with Google Auth, but when I built it on a Linux server, I encountered the error screen at page 3100.

Also,I want to identify the cause of the error, but where are the log files output?

Steps to reproduce

DATABASE_URL=postgresql://postgres:hogehoge-123@hoppscotch-db:5432/hoppscotch

Auth Tokens Config

JWT_SECRET=secretcode123
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=anothersecretcode123

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=http://localhost:3000
WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3000,http://localhost:3100
VITE_ALLOWED_AUTH_PROVIDERS=GOOGLE,EMAIL

Google Auth Config

GOOGLE_CLIENT_ID=***
GOOGLE_CLIENT_SECRET=***
GOOGLE_CALLBACK_URL=http://localhost:3170/v1/auth/google/callback
GOOGLE_SCOPE=email,profile

Mailer config

MAILER_SMTP_ENABLE=true
MAILER_USE_CUSTOM_CONFIGS=false
MAILER_ADDRESS_FROM=from@example.com
MAILER_SMTP_URL=smtps://user@domain.com:pass@smtp.domain.com # used if custom mailer configs is false

The following are used if custom mailer configs is true

MAILER_SMTP_HOST=smtp.domain.com
MAILER_SMTP_PORT=587
MAILER_SMTP_SECURE=true
MAILER_SMTP_USER=user@domain.com
MAILER_SMTP_PASSWORD=pass
MAILER_TLS_REJECT_UNAUTHORIZED=true

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://localhost:3000
VITE_SHORTCODE_BASE_URL=http://localhost:3000
VITE_ADMIN_URL=http://localhost:3100

Backend URLs

VITE_BACKEND_GQL_URL=http://localhost:3170/graphql
VITE_BACKEND_WS_URL=wss://localhost:3170/graphql
VITE_BACKEND_API_URL=http://localhost: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


### Environment

Production

### Version

Cloud
Originally created by @rintaaaa on GitHub (Dec 23, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4640 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior <img width="867" alt="image" src="https://github.com/user-attachments/assets/f3f321d7-eb6f-4689-bee1-6fdfbab67cb1" /> I was able to build it locally and log in with Google Auth, but when I built it on a Linux server, I encountered the error screen at page 3100. Also,I want to identify the cause of the error, but where are the log files output? ### Steps to reproduce ``` ``` DATABASE_URL=postgresql://postgres:hogehoge-123@hoppscotch-db:5432/hoppscotch # Auth Tokens Config JWT_SECRET=secretcode123 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=anothersecretcode123 # 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=http://localhost:3000 WHITELISTED_ORIGINS=http://localhost:3170,http://localhost:3000,http://localhost:3100 VITE_ALLOWED_AUTH_PROVIDERS=GOOGLE,EMAIL # Google Auth Config GOOGLE_CLIENT_ID=*** GOOGLE_CLIENT_SECRET=*** GOOGLE_CALLBACK_URL=http://localhost:3170/v1/auth/google/callback GOOGLE_SCOPE=email,profile # Mailer config MAILER_SMTP_ENABLE=true MAILER_USE_CUSTOM_CONFIGS=false MAILER_ADDRESS_FROM=<from@example.com> MAILER_SMTP_URL=smtps://user@domain.com:pass@smtp.domain.com # used if custom mailer configs is false # The following are used if custom mailer configs is true MAILER_SMTP_HOST=smtp.domain.com MAILER_SMTP_PORT=587 MAILER_SMTP_SECURE=true MAILER_SMTP_USER=user@domain.com MAILER_SMTP_PASSWORD=pass MAILER_TLS_REJECT_UNAUTHORIZED=true # 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://localhost:3000 VITE_SHORTCODE_BASE_URL=http://localhost:3000 VITE_ADMIN_URL=http://localhost:3100 # Backend URLs VITE_BACKEND_GQL_URL=http://localhost:3170/graphql VITE_BACKEND_WS_URL=wss://localhost:3170/graphql VITE_BACKEND_API_URL=http://localhost: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 ``` ### Environment Production ### Version Cloud
kerem 2026-03-16 21:31:25 +03:00
Author
Owner

@rintaaaa commented on GitHub (Dec 23, 2024):

I checked the troubleshooting guide and resolved the issue. Closing this.

<!-- gh-comment-id:2559368703 --> @rintaaaa commented on GitHub (Dec 23, 2024): I checked the troubleshooting guide and resolved the issue. Closing this.
Author
Owner

@riekusr commented on GitHub (Aug 18, 2025):

@rintaaaa What was the issue in your case?

<!-- gh-comment-id:3195536843 --> @riekusr commented on GitHub (Aug 18, 2025): @rintaaaa What was the issue in your case?
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#1717
No description provided.