question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RestClientErrorException: invalid syntax

See original GitHub issue

I’m running the latest version and haven’t run the code for a few days but I’m now getting the following exception for all of my accounts and I have no clue why or what is causing it. Now due to the new changes I’m guessing, the program doesn’t try to reconnect or anything. It just sits there doing nothing after getting this error. Here is the full printout that I get

We are waiting for the market to open...
Market opened.
Alpaca streaming client socket opened.
Alpaca streaming client connection status is Authorized.
Alpaca data streaming client socket opened.
Alpaca data streaming client connection status is Authorized.
Alpaca data streaming client error:
Exception Type:
Alpaca.Markets.RestClientErrorException

Exception Message:
invalid syntax

Alpaca data streaming client socket opened.
Alpaca data streaming client connection status is Unauthorized.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
OlegRacommented, Apr 16, 2021

@ooples In fact, initially they deployed it with this feature but something goes wrong and they had to rollback it 😦

1reaction
OlegRacommented, Apr 15, 2021

@ooples Only all symbols subscription doesn’t work. I’ll check why soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid Syntax in Python: Common Reasons for SyntaxError
If the interpreter can't parse your Python code successfully, then this means that you used invalid syntax somewhere in your code. The interpreter...
Read more >
Why do I get the syntax error "SyntaxError: invalid ...
On the marked line of code, guess = Pmin+(Pmax-Pmin)*((1-w**2)*fi1+(w**2)*fi2) , I get an error message: SyntaxError: invalid syntax . Pmin , ...
Read more >
Trade/Quote Subscription broken - Alpaca Market Data
InvalidOperationException : Websocket closed with error: MessageTooBig. at Alpaca.Markets.WebSocketsTransport.startReceiving(WebSocket socket) 9
Read more >
SOLVED: Why does this say it's invalid syntax?
I'm not sure why this is giving me this error. It appears that it should work but doesn't. Here's the link https://repl.it/@JAGMAN248/Roll-the-Dice ....
Read more >
PIP Install Invalid Syntax - Don't Miss the Description - YouTube
PIP Install Invalid Syntax - PIP Syntax Error - Quick Solution - Don't Miss the Description. 75K views · 2 years ago ...more ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found