HybridH
Windmill3y ago
6 replies
Hybrid

Issues with Golang on selfhosted environment

Hi,
I just installed the selfhosted version a few hours ago, and I currently can't request any variables/resources as I'm getting an Unauthorized access from the API with Golang.
The issue is not present with Python and Bash.
After some digging, it looks like the env WM_WORKSPACE is not populated, and it does not output a correct URI as seen from the logs :
uri=/api/w//variables/get/u%2Fredacteduser%2Fredactedvariable?decrypt_secret=true


On Windmill cloud, the
os.Environ()
function returns a list of WM_* env but not on the selfhosted version.

The setup is pretty standard and I only changed the Postgres default password in the .env file, and the caddy container port.

Any ideas ?
Thanks
image.png
Was this page helpful?