Connection Error
Connection Error
03 Jan 2022, 09:09
I'm receiving a FRAME_TOO_LONG ProtoMessage while trying to authenticate in my application based on your sample code:
_tcpClient = new TcpClient(_apiHost, _apiPort); ;
_apiSocket = new SslStream(_tcpClient.GetStream(), false, new RemoteCertificateValidationCallback(ValidateServerCertificate), null);
_apiSocket.AuthenticateAsClient(_apiHost);
With OAuth2.0 it is showing a System.Collections.Generic.KeyNotFoundException and also this error code:
Exchanging code for tokens...
03/01/2022 07:05:31: {"errorCode":"INVALID_REQUEST","description":"Unknown grant_type"}
{"errorCode":"INVALID_REQUEST","description":"Unknown grant_type"}
It has been workig fine up until restarting the application last night.
Replies
Ketu
03 Jan 2022, 10:59
RE:
amusleh said:
Hi,
Try to use our console sample at: spotware/OpenAPI.Net: Spotware Open API .NET Rx library (github.com)
See if it works or you will get the same error message.
I just tested and everything was working fine.
You can also test this web app sample: Blazor.WebSocket.Sample (spotware.github.io)
And can you tell which broker you are using and which endpoint? live or demo?
PepperstoneUK is the broker, demo endpoint.
The new sample is giving this error at the moment "NETSDK1045 The current .NET SDK does not support targeting .NET 6.0"
@Ketu
Ketu
03 Jan 2022, 11:32
RE: RE:
amusleh said:
Ketu said:
I've got the console sample app working on VS 2022 but it just hangs after authenticating
Hi,
Does it show any error message?
Sorry, Hangs wasn't the right word, the program still runs but the account authorisation window stays up and nothing happens
@Ketu
amusleh
03 Jan 2022, 11:48
( Updated at: 03 Jan 2022, 11:53 )
RE: RE: RE:
Ketu said:
amusleh said:
Ketu said:
I've got the console sample app working on VS 2022 but it just hangs after authenticating
Hi,
Does it show any error message?
Sorry, Hangs wasn't the right word, the program still runs but the account authorisation window stays up and nothing happens
Hi,
I just tested with a PepperstoneUK demo account, it works fine on my system.
I tired on both TCP and web socket, and both of them worked fine.
Can you try on console sample web socket?
If it still doesn't work please email us these info:
- Your Open API application credentials
- Access token you used
- Proxy/endpoint and port you tried to connect
- And if possible screenshot or a video of your experience
email: connect@spotware.com
@amusleh
amusleh
03 Jan 2022, 09:28 ( Updated at: 03 Jan 2022, 09:32 )
Hi,
Try to use our console sample at: spotware/OpenAPI.Net: Spotware Open API .NET Rx library (github.com)
See if it works or you will get the same error message.
I just tested and everything was working fine.
You can also test this web app sample: Blazor.WebSocket.Sample (spotware.github.io)
And can you tell which broker you are using and which endpoint? live or demo?
@amusleh