Closed imran-uk closed 1 year ago
Sorry for just getting back to you, I just saw this sitting in my GitHub notifications (I've been traveling last week and didn't see it).
You'll get unauthorized if the api key is invalid (mistyped or revoked server side). Can you ensure the api key is being set to the right value as shown in your project settings. Can you set .useDebugLogger() before you set the api key, is it passing this api key along with the request as a header?
Were you able to get this working?
Were you able to get this working with node global proxy? https://stackoverflow.com/questions/18586902/node-js-global-proxy-setting
I'm having a problem getting my log and error messages through to the server from my local machine.
I have a simple test script that is sending a sample error message.
I have enabled debugging and I can see it is trying to submit to https://collector.exceptionless.io
However I get an error response like this:
Where the HTML response is from my employers proxy.
I have tried setting the proxy using environment variables (eg. HTTP_PROXY, https_proxy) and via
npm config set ...
but it makes no difference.How can I enable Exceptionless to use a proxy or am I doing something fundamentally wrong? I have a valid API key set and have followed the example pretty accurately.
My test script looks like this: