mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #5924] [bug]: AIO self hosted cannot connect to backend, gateway error and using localhost incorrectly #2327
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2327
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rogersmj on GitHub (Mar 2, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5924
Is there an existing issue for this?
Platform
Web App
Browser
Chrome
Operating System
Other (specify in additional info)
Bug Description
I have deployed Hoppscotch AIO from a Docker image to Google Cloud Run (Google containerized app service). The front end loads, but the backend cannot connect. When attempting to visit
/admin, it appears it is trying to access the correct route, but I get a "gateway error":When I load the front end, it's trying to access "localhost:3170" even though that's nowhere in my .env:
My .env looks like this (real domain and other sensitive info redacted):
One part of my issue looks the same as #4926, but the fix there (adding
/backendin the internal service URLs) did not work for me.Note: I've already run the migrations successfully on the Postgres database I setup for Hoppscotch.
Possibly related:
https://github.com/hoppscotch/hoppscotch/issues/4926
https://github.com/hoppscotch/hoppscotch/issues/3435
Deployment Type
Self-hosted (on-prem deployment)
Version
2026.2.0
@luongquochai commented on GitHub (Mar 3, 2026):
I guess something wrong in your setup, this is my setup on GC
Domains
Security (CORS)
@rogersmj commented on GitHub (Mar 3, 2026):
@luongquochai Are you using the AIO image, or the three separate Hoppscotch docker images?
It looks like you've setup your backend with a different subdomain,
api.domain.ioversus having everything on one domain and addingbackend, e.g.app.domain.io/backend/...like the docs discuss for AIO, so I'm guessing you're using the three separate containers? How did you do that in GC, what does your domain mapping/DNS look like?@luongquochai commented on GitHub (Mar 4, 2026):
@rogersmj
I'm using the AIO image with a multiport setup and subdomain-based routing. My setup uses separate subdomains:
Notes:
@rogersmj commented on GitHub (Mar 4, 2026):
@luongquochai Thanks. But what GC product are you running this on? Google Cloud Run? Or do you have a VM on GCE (Compute Engine)?
As I said, I'm trying to get this working on Google Cloud Run because I want it to be able to go to sleep and not bill me when we're not using it...but Google Cloud Run only supports a single ingress port per service. Hence whey the AIO with subpath access should be perfect for me, but it won't work.
@luongquochai commented on GitHub (Mar 11, 2026):
@rogersmj I'm using VM on GCE. You can try researching with GC.
@rogersmj commented on GitHub (Mar 11, 2026):
@luongquochai Thanks, but that doesn't help me. I'm not trying to run it on a VM. The point of this is to get it running on Google Cloud Run (their containerized hosting service) so it can "go to sleep" and not cost money when we're not using it.
@luongquochai commented on GitHub (Mar 12, 2026):
Maybe I'll try Google Cloud Run next week, @rogersmj . We can exchange ideas if we haven't managed to do it yet 😎