Hi I was reading the documentation here
https://docs.sentry.io/cli/configuration/
and it seems like it should be possible to configure the http proxy using the .sentryclirc file.
My file is like this:
[defaults]
org = <my-org>
project = <my-project>
[auth]
token = <my-token>
[http]
proxy_url = http://<ip>:<port>
proxy_username = <my-username>
proxy_password = <my-password>
but if i run sentry-cli info this is the result:
sentry-cli info
Sentry Server: https://sentry.io
Default Organization: <my-org>
Default Project: <my-project>
Authentication Info:
Method: Auth Token
(failure on authentication: API request failed)
if i disconnect my pc from the ethernet and use my phone hotspot the command works just fine.
Am I doing something wrong?
Thanks.
I tried with some invalid proxies and sentry-cli didn't give connection error, and everything works like the proxy_url was ignored.
running it on windows 10 with sentry-cli 1.40.0
same here - proxy settings being ignored.
macos, sentry-cli 1.40.0
Still not fixed.
Ubuntu 18.04 - Sentry-CLI 1.54.0
Same here. Any chance to get this fixed soon? This prevents us to use the Releases feature from our CI/CD.
sentry-cli 1.61.0
Amazon EC2 Linux behind proxy.
[ec2-user@ip-10-142-254-222 ~]$ sentry-cli releases new test-1
INFO 2021-01-21 16:30:48.962105196 +00:00 Loaded config from /home/ec2-user/.sentryclirc
DEBUG 2021-01-21 16:30:48.962146038 +00:00 sentry-cli version: 1.61.0, platform: "linux", architecture: "x86_64"
INFO 2021-01-21 16:30:48.962164875 +00:00 sentry-cli was invoked with the following command line: "sentry-cli" "releases" "new" "test-1"
DEBUG 2021-01-21 16:30:48.962911257 +00:00 request POST https://x.com/api/0/projects/x/playground/releases/
DEBUG 2021-01-21 16:30:48.962939094 +00:00 using token authentication
DEBUG 2021-01-21 16:30:48.962959688 +00:00 json body: {"version":"test-1","projects":["playground"],"dateStarted":"2021-01-21T16:30:48.962866263Z"}
DEBUG 2021-01-21 16:30:48.962971620 +00:00 retry number 0, max retries: 0
error: API request failed
caused by: [6] Couldn't resolve host name (Could not resolve host: x.com)
DEBUG 2021-01-21 16:30:48.965423689 +00:00 client close; no transport to shut down (from sentry)
INFO 2021-01-21 16:30:48.965519156 +00:00 Skipping update nagger update check
Both the environment variables (http_proxy in both small and upper caps, https_proxy as well) and the config settings are correct:
[http]
proxy_url = http://123.23.23.23:1234
Most helpful comment
I tried with some invalid proxies and sentry-cli didn't give connection error, and everything works like the proxy_url was ignored.
running it on windows 10 with sentry-cli 1.40.0