-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
k/bugSomething isn't workingSomething isn't working
Description
Version Information
Server Version: 2.33.4-cloud.1
Environment
Cloud
What is the current behaviour?
When calling healthz/sources endpoint, it returns following error
"error": "environment variable 'PG_DATABASE_URL' not set",
"status": "FAILED",
This happens even though user has set PG_DATABASE_URL in their env vars under cloud project settings.
What is the expected behaviour?
It should not throw the above error if PG_DATABASE_URL is set in env vars regardless of eventual outcome of API response( being success or failure).
How to reproduce the issue?
- Connect Hasura with database where Database URL is set via env vars inside Hasura cloud project settings
- After successful connection, you can try checking health of your database by hitting
healthz/sourcesendpoint. Ref - https://hasura.io/docs/latest/api-reference/source-health/#api-spec - Check the response of the API where it should have similar error as mentioned above
Screenshots or Screencast
Keywords
healthz database
Metadata
Metadata
Assignees
Labels
k/bugSomething isn't workingSomething isn't working