Error while connecting. Message: Unable to connect to the remote server

codertuhin
Hi,

I am getting the above error message when executing the following code:

Ticker ticker = new Ticker(api_key, token);
ticker.OnTick += Ticker_OnTick;
ticker.OnConnect += Ticker_OnConnect;
ticker.OnError += Ticker_OnError;
ticker.OnNoReconnect += Ticker_OnNoReconnect;

ticker.EnableReconnect(1, 1);
ticker.Connect();

When executing the code ticker.Connect(); the error appears at Ticker_OnError event. Then again the following message appears:
"Error while connecting. Message: The remote server returned an error: (403) Forbidden."

My API key and token are correct, I can get the list of instruments and exchanges. I tried disabling the firewall, but I got the same error.

Also how/where do I get the detailed error log?

Please help.

Thank you.

  • sujith
    The instruments master dump doesn't have authentication. You need to re-login and create a new access token. It looks like session is expired based on the above message.
Sign In or Register to comment.