Sample Open API not able to authorize
Sample Open API not able to authorize
28 Feb 2020, 05:37
Hi Guys,
After using the sample app for a few hours I now am unable to get a response from the Authorization request.
I tried getting new account and trading tokens but no luck.
Send: ProtoMessage{AppAuthRequest{clientId:496_vI2DH0hQustu5QVfgvrAzjfXABcOsMjxvZ5CdS5YJJFPrGsgp7, clientSecret:Tp3VYWgbIE5QPbLNlVvdzVZf8v4RZ5uznovfOFJvHJHueqQuDo}}
But no response is received
Best Regards,
Alistair
Replies
acrigney
28 Feb 2020, 09:23
( Updated at: 21 Dec 2023, 09:21 )
RE:
Still no luck mate, I have not changed the code and I had checked it in before so I can see if there are any changes, I had created new tokens and I checked the old tokens that worked before but its not working now.
PanagiotisCharalampous said:
Hi acrigney,
I just tried this and I see no issues. Please make sure everything is correct.
Best Regards,
Panagiotis
@acrigney
PanagiotisCharalampous
28 Feb 2020, 09:27
Hi acrigney,
Please send the client ID, client Secret, token and host in text format at community@spotware.com so that I can check.
Best Regards,
Panagiotis
@PanagiotisCharalampous
acrigney
28 Feb 2020, 09:35
RE:
I emailed you my main.cs file.
PanagiotisCharalampous said:
Hi acrigney,
Please send the client ID, client Secret, token and host in text format at community@spotware.com so that I can check.
Best Regards,
Panagiotis
@acrigney
PanagiotisCharalampous
28 Feb 2020, 09:44
Hi acrigney,
I tested your token and seems fine to me
Best Regards,
Panagiotis
@PanagiotisCharalampous
acrigney
04 Mar 2020, 13:00
( Updated at: 21 Dec 2023, 09:21 )
RE: RE:
acrigney said:The problem was that I added this statement to the listen function that was causing it to crash
var type = String.Format("Received: " + OpenApiMessagesPresentation.ToString(protoMessage));
The error is "Input string was not in a correct format." I don't see why this doesn't work.
Weird mate! must be something wrong with my machine, I rebooted before I will try that again.
PanagiotisCharalampous said:
Hi acrigney,
I tested your token and seems fine to me
Best Regards,
Panagiotis
@acrigney
PanagiotisCharalampous
04 Mar 2020, 15:14
Hi acrigney,
Change it to the below
var type = "Received: " + OpenApiMessagesPresentation.ToString(protoMessage);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
28 Feb 2020, 08:37
Hi acrigney,
I just tried this and I see no issues. Please make sure everything is correct.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous