throwing asyncio error messages
See original GitHub issueCheck this or we will delete your issue. (fill in the checkbox with an X like so: [x])
- I have searched for other issues with the same problem or similar feature requests.
Select one:
- [] Bug
- Feature Request
- Technical Help
- Other
Environment
- Are you using the module on a VPS or other Cloud hosting?
- If so, have you tried running the code on your local machine?
- Are you using the module on a Raspberry Pi?
Operating System? (include version)
- macOS
- Windows
- Linux (include flavour) - Ubuntu 16
Python Version Requirement
- I am using Python 3.5.3 or above
Exact Python Version?
Include here the response of 'python --version' or 'python3 --version'
Python 3.6.5
Pip Version?
Include here the response of 'pip --version' or 'pip3 --version'
pip 19.1.1 from /Users/.../python3.6/site-packages/pip (python 3.6)
Dependencies
Run `pip list > pip_list.txt pip_list.txt
` and upload the file.
UNICORN Binance WebSocket API Version?
Did you upgrade to the latest release version with `pip install unicorn-binance-websocket-api --upgrade`?
yes
Please control what version you are using with this script and post the output: https://github.com/unicorn-data-analysis/unicorn-binance-websocket-api/blob/master/tools/get_used_module_version.py
1.6.5
Description of your issue
System has been running smoothly for months. Today, I started receiving the error message below. I haven’t updated any code or libraries in a few weeks. Note that Binance updated their API yesterday, including some websockets update. I tried both 7.0 and 8.0 websockets, on a Mac and Ubuntu. Same issue everywhere.
Also note that the https://github.com/sammchardy/python-binance library continues to work.
ERROR:asyncio:Task was destroyed but it is pending!
task: <Task pending coro=<WebSocketCommonProtocol.close_connection() done, defined at /Users/michaelbrill/Documents/projects/binance_realtime/env/lib/python3.6/site-packages/websockets/protocol.py:1113> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x10bb1fdf8>()]>>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to Manage Exceptions When Waiting On Multiple ...
Handling exceptions in asyncio requires careful management to ensure that code does not become unstable. · Waiting on a single coroutine · It's ......
Read more >18.5.9. Develop with asyncio — Python 3.6.15 documentation
When a coroutine function is called and its result is not passed to ensure_future() or to the AbstractEventLoop.create_task() method, the ...
Read more >Exception Handling in asyncio – roguelynn - Lynn Root
If this was synchronous code, we'd simply see the error that we raised and error out. But this gets swallowed up into an...
Read more >How to Handle Asyncio Task Exceptions - Super Fast Python
How to Handle Asyncio Task Exceptions ; try: # get the exception raised by a task ; # check if the task was...
Read more >Asynchronous exception handling in Python - Stack Overflow
I've the following code using asyncio ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Code on github is updated and tested. A new release is created and a new wheel is available on pypi!
https://github.com/unicorn-data-analysis/unicorn-binance-websocket-api/releases
@GezaBoi I did the following (note that I just tested with my scenario, so I’m not sure what sort of mayhem it could create):
In unicorn_binance_websocket_api_manager.py
above line 638:
return self.websocket_base_uri + str(query)
insert the line:
query = query[:-1]
Same level of indent., This will just remove the “/” at the end. Works for me.