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.

Executing the streaming example consistently return errors for all endpoint

See original GitHub issue

Code run: USDC_asset = Asset("USDC", "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5") server = Server("https://horizon-testnet.stellar.org") for response in server.orderbook(Asset.native(), USDC_asset).cursor("now").stream(): print(response)

The error message I get:

Traceback (most recent call last): File “C:/Users/nasse/Syncthing/Code/Python/Stellar_test/main_order_book.py”, line 22, in <module> for response in server.orderbook(Asset.native(), USDC_asset).cursor(“now”).stream(): File “C:\Users\nasse\Syncthing\Code\Python\Stellar_test\venv_xeon\lib\site-packages\typeguard_init_.py”, line 897, in next return self.send(None) File “C:\Users\nasse\Syncthing\Code\Python\Stellar_test\venv_xeon\lib\site-packages\typeguard_init_.py”, line 915, in send value = self.__wrapped.send(obj) File “C:\Users\nasse\Syncthing\Code\Python\Stellar_test\venv_xeon\lib\site-packages\stellar_sdk\client\requests_client.py”, line 174, in stream params=query_params, File “C:\Users\nasse\Syncthing\Code\Python\Stellar_test\venv_xeon\lib\site-packages\stellar_sdk\client\requests_client.py”, line 222, in init url, last_id, retry, session, chunk_size, connect_retry, **kwargs TypeError: init() got an unexpected keyword argument ‘params’

Process finished with exit code 1

Thank you for your help.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Krixzuscommented, Jan 7, 2022

Wow, it now works very well. It streams the orderbook in a endless loop, like expected. Thank you for your help. As you suggested I removed the conflicting dependencies (sseclient and requests) rebuilt my virtual environment and boom all working now. I have been working on this issue for a while so thx again for putting a stop to this.

1reaction
overcatcommented, Jan 7, 2022

Hello, are you using a virtual environment? If not, I suggest you use it.

I think the conflict is caused by sseclient and sseclient-py, why are they introduced? If they are not necessary, I think removing them from the dependent files and rebuilding the virtual environment should solve this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Streaming - Oracle Help Center
An example is when the stream-push policy is missing, or the stream has been deleted or is not accessible. Ensure that all the...
Read more >
Streaming requests with the fetch API - Chrome Developers
This shows how you can stream data from the user to the server, and send data back that can be processed in real...
Read more >
Error handling and automatic retries in AWS Lambda
When you invoke a function, two types of error can occur. Invocation errors occur when the invocation request is rejected before your function...
Read more >
Kusto.Ingest errors & exceptions - Azure Data Explorer
This article describes Kusto.Ingest - Errors and Exceptions in Azure Data Explorer.
Read more >
Handling faults | Apigee Edge
The DefaultFaultRule is typically used to return a generic error message for any unexpected error. An example would be a message that contains...
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