-
-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashed kline stream. Error: 2 - string indices must be integers #98
Comments
Was it the only one stream you created, or did you have more then one stream and only this one stream restarted in this bad manner with to much delay? |
In version 1.16.5 I added a restart to this error, but the result was to much restarts - it didnt work as expected. I will add more infos to the logging in https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/blob/master/unicorn_binance_websocket_api/unicorn_binance_websocket_api_connection.py#L95 please update this in your fork too and post me the new logs for further investigations. |
Please add this commit to your fork and post new logs: 08c4048 |
I added a few more changes to logging in connection.py to find the exact reason of the bug. |
So what version or commit i should install? |
I also get the exact same error on But only after I updated to 1.16.7 Why don't you keep old versions up??? 1.16.6 worked like charm! |
This is what I get: |
I had to comment out the lines 73-102 in unicorn_binance_websocket_api_connection.py to get this work again. Damn it!! Please leave old versions up next time! |
Please reset your API key! I dont know the permisions of your API key, but with the listen_key postet here, everybody can use your api key. Do you only get error logs, or does the userdata stream not function anymore too? Are other stream types (kline, trades, ...) also affected? |
Yes, thats maybe better :D |
Hm the test is running very well: https://ubwa-demo.lucit.co/print_summary.php Error 2 is just a log but doing nothing then! no restart or anything else. In row 73 the programm trys to access I am looking to find a bug and need more verbose information for finding it and thats what I did with 1.16.7 - adding more logging. Behavior of the lib should still be the same... |
Its working without any issues after I commented out those lines. As you said, he expects a dict() type, but URI was just string in my case. Thank you for reminding me about API keys. |
If you get a valid URI, than its allways string! But if the URI is not valid its not a string anymore, its a dict containing error code and error msg. I would not remove the hole block! With it you removed error handling for invalid URIs. What I wanted to know from you: |
I have read all the code now and error2 is actualy an error that happens when no error happens, because then uri is just a string with the uri. its just logged as error, but is actualy a good thing :D I set it to debug level. Flowelcat: |
error2 still exists? My version 1.16.4dev and version 1.16.7 constantly flooding logs with "2 - string indices must be integers" and no reason disconnect.
VPS Logs:
|
Kline stream wont start anymore because of this error. Can't run my application normally. |
Fixed error "Error: 2 - string indices must be integers", issue #98
Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])
Have similar error on status: crashed - string indices must be integers #91
Select one:
Environment
Operating System? (include version)
Python Version Requirement
Exact Python Version?
Pip Version?
Dependencies
Run
pip list > pip_list.txt
and upload the file.UNICORN Binance WebSocket API Version?
Description of your issue
So after running like few hour kline stream crashed with "no reason" comment, after it thread tries to reconnect and crashed with message 2 - string indices must be integers. After few minutes it reconnects and worked normaly.
It won't be an issue if i was not lost a 1 hour kline because of this.
Also attaching debug log:
The text was updated successfully, but these errors were encountered: