Heroku cli issues - behind corporate proxy
Noticing issues with running commands like heroku logs behind our corporate proxy lately. I set the environment variable and enabled debug for the log below.
If I curl the URL in the 201 response (logplex_url) I am able to retrieve the logs.. but the heroku cli is throwing an error.
proxy set to https://10.10.5.18:8080
--> POST /apps/
we use got as a dependency which is also out of date, I might need to bump it
Hi, I am facing the same issue with heroku logs command. I am behind firewall and able to login via "heroku login" command after setting HTTP_PROXY environment variable. I am able to execute other commands as well but whenever I am trying "heroku logs" command it is not giving any result.
The same command work when I login from network without proxy restriction. Is there anything in Heroku CLI which needs to be set to make "heroku logs" run behind corporate firewall?
Thanks for your help.
I think I found the issue. We started using SSE for logs and it wasn't setup to look at the proxy. I just pushed a potential fix. Would you mind updating to the beta with heroku update beta and trying again?
I tried updating but i have the same problem.
when i type heroku version i get:
heroku/7.4.1-beta.b93fad7 win32-x64 node-v10.4.1
Still no chance to get heroku logs --tail working via proxy?
heroku/7.27.1 win32-x64 node-v11.14.0
Same issue with heroku logs under proxy here. Any perspective for a solution?
heroku/7.35.0 win32-x64 node-v12.13.0
Same here.
heroku/7.42.13 linux-x64 node-v12.16.2
Hello there,
I just encountered the same problem.
heroku/7.67.1 linux-x64 node-v14.19.0
Usually we use username/password to control access to the internet and basically heroku cli works with our configuration:
e.g. ( access log of our proxyserver)
2022-12-21T14:51:27+0100 321 x.x.x.x TCP_MISS/000 5038 CONNECT backboard.heroku.com:443 username FIRST_UP_PARENT/proxyserver -
2022-12-21T14:51:28+0100 443 x.x.x.x TCP_MISS/000 4803 CONNECT api.heroku.com:443 username FIRST_UP_PARENT/proxyserver –
Only if we try to get the logs heoku cli it looks like heroku cli does not send the credentials with the request, resulting in a 407.
2022-12-21T14:51:28+0100 0 x.x.x.x TCP_DENIED/407 4009 GET https://dublin.sessions.logs.heroku.com/stream? - NONE/- text/html
As soon as we switch to ip based access control in our proxy server heroku cli works completely fine, also with logs.
Bye, Dirk