alpaca-proxy-agent icon indicating copy to clipboard operation
alpaca-proxy-agent copied to clipboard

Error when connecting to Proxy Agent

Open matt953 opened this issue 4 years ago • 1 comments

Hi,

I am trying to get the updated proxy agent working. When I try I am getting the following error every time I send a message to the Proxy.

This is occurring when I try and send the auth action message.

{"action": "auth", "key": "{APCA-API-KEY-ID}", "secret": "{APCA-API-SECRET-KEY}"}

The Error in the Porxy Agent log is:

a bytes-like object is required, not 'str'

local variable 'data' referenced before assignment

2021-08-10 14:01:09,205 root Unsubscribing from: defaultdict(<class 'set'>, {})

2021-08-10 14:01:09,205 root error unsubscribing from defaultdict(<class 'set'>, {}). 'NoneType' object has no attribute 'unsubscribe_trades'

Done

Thanks

matt953 avatar Aug 10 '21 14:08 matt953

In addition to the above issue I am also not able to get the C# SDK to work using the updated docker image.

        using var client = Environments.Live
            .WithProxyForAlpacaDataStreamingClient(new Uri("ws://127.0.0.1:8765"))
            .GetAlpacaDataStreamingClient(new SecretKey("Key", "Secret")).WithReconnect();

I am not gotting any errors just no messaging are being recived on the subscriptions.

The docker image log says "Done" But there isn't any errors appearing in the log.

matt953 avatar Aug 10 '21 14:08 matt953