-
Notifications
You must be signed in to change notification settings - Fork 72
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
KeyError: 'domops' #32
Comments
Hmm somebody else had this issue too. Could you please rerun the tool with |
Sure. Will send to you ASAP... |
Thanks for debug logs. It seems your browser prefers Redirect example:
Should be an easy fix but it would be nice for you to test it also! |
I'm not very good with coding. Basically still a noob. What steps should I take to test your suggestion? |
I can create a custom version for you that follows the redirect links for you but it would be good for you to test it. When I have some spare time of course :) |
I can test it, definitely, when you have time. I appreciate it... |
So, I edited your script by changing all the FB www to web and it works now. Thanks for this script. I can finally leave FB... |
Same
|
Hi @mobeigi Attached is a DEBUG log for you to help assist with the problem. Appreciate what you are doing to solve this for all users. |
Can you try this workaround suggested by @secretkloud?
|
Hi @mobeigi Already tried that. Attached debug after running the program with the changes suggested. |
@Link2Adi It looks like your username/password is not correct? Make sure your username/password is correct. When you visit https://www.facebook.com/login.php do you get redirected to another Facebook subdomain? |
Hi @mobeigi The username/password is correct. I have also tried using a app specific password to try and both of these password work for authenticating Facebook login. However when I change www.facebook.com to web.facebook.com, I get authentication error. I get redirected to https://web.facebook.com/login.php?_rdc=1&_rdr when trying to login through the link you shared. |
I say that because I saw this in your error logs: However, I see you've logged in successfully but other calls are failing. You need to change all occurrences of |
It seems for some users, it forces them to use |
Thanks let me know if there is anything I need to test for you. |
I opened the script and did a replace al forl www.facebook.com to web.facebook.com |
I don't think you've done it properly @Link2Adi . Either you didn't replace all the occurrences or you didn't put your email/password in the settings correctly. Please check again carefully, the logs show either the login failing or the links not being updated. |
Hi @mobeigi I tried again. Rechecked that all 6 of the www.facebook.com references in code has been replace with web.facebook.com. With the app specific password, I get the same error as earlier.
With original account password, I get the following error before it fails:
|
Hi @Link2Adi App specific passwords will not work, this tool does not use Facebook API. It has to be your original Facebook password. Also it looks like you have had too many failed log in attempts and you will have to manually log out and into Facebook in your browser and reset your password. |
Hi @mobeigi I assume the problem is that Facebook is not showing me any option to authorize the device for logging in. After every unsuccessful attempt, I get a security login, I provide the necessary details and that's it. No option to authorize the device. Am I missing something here? |
@Link2Adi Another thing to try is wait a few days (i.e. 3 days) and try again. Some people have had success with that after many failed login attempts with the script. |
Yes I am running the on the same PC I use to access my FB account daily. Will try to wait 3 days and run the script again. Will keep you informed on how it goes. Thanks |
hi @mobeigi During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Hey @Allen0620, I'm not too sure how to fix this as it never occurs for me. I need someone to help me test this properly. I've added a debug line to the latest version of the code: I need people to run this version with DEBUG logging enabled. See Troubleshooting section in readme for details. |
I had this same problem. Without changing any of the www.facebook.com occurrences in the script. It was removing 2-factor authentication on my account which did the trick. (Reactivated it after running) |
@Link2Adi @Allen0620 Hello, I just want to say the script is updated now using a completely new method for data retrieval. This issue should not happen again. I'm not sure if you ever solved the problem so just letting you know. |
Hello
Yeah, I solved it by changing the address in the script to Facebook.net, or
something like that.
Thanks for the update...
…On Thu, 12 Nov 2020, 9:36 am Mo Beigi, ***@***.***> wrote:
@Link2Adi <https://github.com/Link2Adi> @Allen0620
<https://github.com/Allen0620> Hello, I just want to say the script is
updated now using a completely new method for data retrieval. This issue
should not happen again. I'm not sure if you ever solved the problem so
just letting you know.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJIOEMFC7WOOI4RXMVS4K5TSPONBZANCNFSM4ILBSZVQ>
.
|
[2019-08-12 14:51:00,396] fb2cal INFO (main) Fetching all Birthdays via async endpoint...
[2019-08-12 14:51:04,866] fb2cal INFO (get_async_birthdays) Processing birthdays for month August.
[2019-08-12 14:51:07,053] fb2cal ERROR (parse_birthday_async_output) KeyError: 'domops'
Traceback (most recent call last):
File "./fb2cal.py", line 437, in parse_birthday_async_output
birthday_card_html = json_response['domops'][0][3]['__html']
KeyError: 'domops'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./fb2cal.py", line 770, in
main()
File "./fb2cal.py", line 111, in main
birthdays = get_async_birthdays(browser)
File "./fb2cal.py", line 395, in get_async_birthdays
birthdays_for_month = parse_birthday_async_output(browser, response.text)
File "./fb2cal.py", line 445, in parse_birthday_async_output
raise SystemError
SystemError
The text was updated successfully, but these errors were encountered: