-
Notifications
You must be signed in to change notification settings - Fork 148
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
[BUG] Timeout when requesting get_product_info #474
Comments
Hello, I have a similar problem, can't auth in steam using client.cli_login() or client.cli_login(). I add print(eresult) after self._pre_login() in "client/init.py/def login" and pre_login always returns EResult.TryAnotherCM. |
Fighting with the same issue and while it doesn't seem easy to troubleshoot why the TCP connection is dropped, I've had better success with the websocket implementation suggested on PR #469 - not as perfect as some servers don't seem to communicate correctly for some reason.. https://gist.github.com/revij/da3a8ae03de673caf68ec1cfe79b5654 |
I use the login() function in CMClient.PROTOCOL_WEBSOCKET way, and your code is still problematic, but using anonymous_login() is normal |
Okay
This is actually working in my test enviroment. I uninstalled the steam library (pip remove steam), then I installed the steam library from the PR (pip install https://github.com/njbooher/steam/archive/wsproto.zip) and then I added the following to the Code: Import the following: Then add:
after
and then its working. |
Trying to get multiple apps with get_product_info will have problems |
While it seems to work with some websocket servers, I had trouble with the ones located in fra1/fra2/ams/vie1 but the ones in par1/sto1/sto2/waw1 work just fine. |
Okay. I just tried it from multiple Servers I run in germany and they all can connect to Steam Servers reliable.
|
OK, I fixed it, he still uses TCP
|
Alright, I had a feeling the implementation from the PR wasn’t perfect as it might be a first draft, but it’s still an improvement over the previous state where nothing worked at all. Can we gather the issues we’ve found and revise the PR? I also noticed that @revij made a few adjustments in his fork. Overall, improving this would benefit many Steam projects. If I find the time them I’ll dive deeper into the code and the topic next week to see what’s still missing and not working. |
Plus one here:
And:
|
This is working well for me. No observed errors using this approach instead of the websocket method. |
I switched to detiam's fork, where he implemented the fix: https://github.com/detiam/steam_websocket My Poetry config:
@detiam Thanks a lot for fixing the issue! |
It seems that the issue on Steam's side has been resolved, as the code that stopped working few weeks ago is now functioning again 🤔 |
Description
When I try "client.get_product_info(apps=[app_id], timeout=1)" I get an timeout. Of course before I initialize and login the Client and login anonymously with
then I print(client) I get:
<SteamClient(('155.133.226.75', 27028)) offline>
So it seems like the SteamClient is offline?
Steps to Reproduce the behavior
Run:
app_id = 570
client = SteamClient()
client.anonymous_login()
info = client.get_product_info(apps=[app_id], timeout=1)
print (info)
Expected behavior
I expect informations about the provided App ID but since tonight I only get an timeout back
Screenshots
Versions Report
python -m steam.versions_report
The text was updated successfully, but these errors were encountered: