I am doing a POC of Sentry for capturing errors in a new Vue.js application. When I run the application in Chrome on my Windows machine, I am able to get errors from the application to show up in the online Sentry service. But when I run “sentry-cli login” I get “Invalid token: API request failed”. I have tried setting all of SENTRY_DSN, SENTRY_LOG_LEVEL=info, SENTRY_ORG, SENTRY_PROJECT, and http_proxy but it still fails.
My organization has a network proxy. I suspect that the the proxy is being used automatically when the application uses the SDK to send an error to sentry.io – but that the proxy is not being applied correctly by sentry-cli. I set the proxy via “http_proxy=<domain name>:3128” but that didn’t help.
I set the log level to “info” but the output does not show the sentry-cli http requests and responses.
I do not have a .sentryclirc file.
I am stuck. Some questions:
- Am I setting the http_proxy environment variable correctly? Is the port supported in the way that I entered it?
- What can I try next?