API Support Forum
OEC API > API Support > Error: -2146233079 Descr: Price server not connected
Author Topic: Error: -2146233079 Descr: Price server not connected
(4 messages, Page 1 of 1)
Moderators: VPfau
ASykes4318
Posts: 18
Joined:


Posted: Nov 02, 2020 @ 09:21 AM             Msg. 1 of 4
We are connecting to the “Aggregate” server, however in the Public Sub SubscribeAll we are getting “Price server not connected” error.
What should we be doing different???

If client Is Nothing Then
Set client = New GFComClient
client.Threading.CreateRunnerFor(client).Start
Set connection = client.connection.Aggregate
Server = "api.gainfutures.com"
End If

Dim builder As ConnectionContextBuilder
Set builder = New ConnectionContextBuilder

builder.WithUserName(Name) _
.WithPassword(Pass) _
.WithUUID("5549126e-9866-488f-b7c8-156683f8eacc") _
.WithHost(Server) _
.WithPort (9210)

connection.Connect builder.Build
Anthony Sykes
VPfau
Moderator
Posts: 154
Joined:


Posted: Nov 02, 2020 @ 09:39 AM             Msg. 2 of 4
Hello Anthony,

I see your last connect was successful at 09:22:16.797 CT
All previous attempts were forcibly closed by remote host. Do you experience the same with our example?
Vitaliy Pfau
ASykes4318
Posts: 18
Joined:


Posted: Nov 02, 2020 @ 12:26 PM             Msg. 3 of 4
When using your example I'm not getting that error. Any thoughts as to why the remote host (GF server??) is forcibly closing??

Our application is saying that we are still connected
Anthony Sykes
VPfau
Moderator
Posts: 154
Joined:


Posted: Nov 03, 2020 @ 07:34 AM             Msg. 4 of 4
Anthony,

No, it was forcible closed by the client side. That's how server reports disconnect in your case.
Without source code it's hard to say what is wrong

Please provide a source code of example that replicates the issue.

Thank you
Vitaliy Pfau