-
Notifications
You must be signed in to change notification settings - Fork 154
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
Steam cookies not working #343
Comments
me too, cant promise order |
Now steamcommunity.com store.steampowered.com are separate and each steamLoginSecure works separately |
|
So we will share too. Everything will be ready soon! |
just cancel
|
This solution is right , I found the steamcommunity.com and steampowered.com can't share the same sessionId which make the bug. |
I think we shouldn't disable this code. Doing so might disrupt trading operations. It's better to just assign a unique LoginSecure to each domain, similar to what Steam did. |
Does buying and selling work for you? |
Yes, everything is working as before. |
del self._
|
i used this solution, but i got none response in response = self._session.post(url, data=params, headers=headers) |
recommend to use wolfovik solution,#344. |
iam beginner on gh. Dont know how post correctly post recommend. But now login with cookies dont work correctly. I fixed it with next code. def save_cookies_to_file(cookies_list: list, file_path: str): def load_cookies_from_file(file_path: str):
|
Make sure that you are using the 'sessionid' value of domain 'steamcommunity.com' for the trade offer request parameters, there are multiple cookies with the same name 'sessionid' in the cookiejar, you have to explicitly choose the value of the correct domain. |
This fix is not working for me using username, pass and shared_secret to login. Any idea how to fix it? This is the traceback:
|
replace self._create_cookie on create_cookie |
hmm i tried |
I think I did that. This is my current function:
Am I missing something? |
I replaced self._create_cookie with create_cookie in the code below
|
Sorry, I didn´t get you before. Great, it´s working now. Thank you so much! |
I'm using the buy item method from the steampy library. Before this, this method worked normally. And for the last two days I’ve been receiving this response: {'message': 'There was a problem purchasing your item. The listing may have been removed. Refresh the page and try again.'} 2024-01-19 18:26:33,196 - my_logger - WARNING - There was a problem buying this item. Message: There was a problem buying this item. Message: There was a problem purchasing your item. The listing may have been removed. Refresh the page and try again. I tried everything above, nothing worked. |
My fix for steamcommunity.com cookies
|
I tried all solutions from this issue and I always get one problem: it works through time and I get this error: |
@HappyWaffle566 I get the same error |
Fixed code for cookies: in login.py
in client.py (if you use accept trade offer function):
In general, if you need to restore the functionality of functions, then you need to check calls to self._session.cookies.get_dict and pass the required domain I only tested the code for steamcommunity, so let me know if anything doesn't work |
Fixing the code for cookies as described above does not work for me. |
Try to replace in buy_item method
with
|
it doesn't help, I also get an error: There was a problem purchasing your item. The listing may have been removed. Refresh the page and try again |
Seems everything works fine, thank you |
Had somebody found a solution to KeyError: 'refresh_token'? |
The KeyError: 'refresh_token' exception occurs when you have exhausted all your login attempts. They are usually updated after 12 hours Your question is not related to the topic of this question #343, next time create a new question |
Oh, I see. I'm sorry. The problem has appeared since the library broke and cookies seemed to be broken (I get refresh_token error when I try to set cookies). Sorry for troubling |
I updated the login.py file to the above commit from @xidios but authorization still doesn't work as well as purchases in steam) |
client.py
|
I logged into steam via my steam username and password, but when I checked my session I found it had expired。
When I printed the login-related parameters, I found that everything was normal, but the cookie had expired. This situation suddenly appeared today
Thanks for your answer
The text was updated successfully, but these errors were encountered: