question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A error happened when login to icloud: pyicloud_ipd.exceptions.PyiCloudAPIResponseError: statusCode = UnknownServerError, IOException sending request https://accountservice.p00.prod.me.com:443/api/get_challenge_devices, Failed to resolve 'accountservice.p00.prod.me.com' after 6 queries

See original GitHub issue

Overview

Trace info:

2022-11-04 23:00:52 INFO     Using password stored in keyring file: /config/python_keyring/keyring_pass.cfg                                                                                                 
2022-11-04 23:00:52 INFO     Correct owner on config directory, if required                                                                                                                                 
2022-11-04 23:00:52 INFO     Correct group on config directory, if required                                                                                                                                 
2022-11-04 23:00:52 INFO     Generate 2FA cookie using password stored in keyring file                                                                                                                      
Traceback (most recent call last):                                                                                                                                                                          
  File "/usr/bin/icloudpd", line 33, in <module>                                                                                                                                                            
    sys.exit(load_entry_point('icloudpd==1.7.2', 'console_scripts', 'icloudpd')())                                                                                                                          
  File "/usr/lib/python3.10/site-packages/click/core.py", line 722, in __call__                                                                                                                             
    return self.main(*args, **kwargs)                                                                                                                                                                       
  File "/usr/lib/python3.10/site-packages/click/core.py", line 697, in main                                                                                                                                 
    rv = self.invoke(ctx)                                                                                                                                                                                   
  File "/usr/lib/python3.10/site-packages/click/core.py", line 895, in invoke                                                                                                                               
    return ctx.invoke(self.callback, **ctx.params)                                                                                                                                                          
  File "/usr/lib/python3.10/site-packages/click/core.py", line 535, in invoke                                                                                                                               
    return callback(*args, **kwargs)                                                                                                                                                                        
  File "/usr/lib/python3.10/site-packages/icloudpd-1.7.2-py3.10.egg/icloudpd/base.py", line 255, in main                                                                                                    
    icloud = authenticate(                                                                                                                                                                                  
  File "/usr/lib/python3.10/site-packages/icloudpd-1.7.2-py3.10.egg/icloudpd/authentication.py", line 47, in authenticate                                                                                   
    request_2sa(icloud, logger)                                                                                                                                                                             
  File "/usr/lib/python3.10/site-packages/icloudpd-1.7.2-py3.10.egg/icloudpd/authentication.py", line 53, in request_2sa                                                                                    
    devices = icloud.trusted_devices                                                                                                                                                                        
  File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 249, in trusted_devices                                                                                                               
    request = self.session.get(                                                                                                                                                                             
  File "/usr/lib/python3.10/site-packages/requests/sessions.py", line 600, in get                                                                                                                           
    return self.request("GET", url, **kwargs)                                                                                                                                                               
  File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 100, in request                                                                                                                       
    self._raise_error(code, reason)                                                                                                                                                                         
  File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 122, in _raise_error                                                                                                                  
    raise api_error                                                                                                                                                                                         
pyicloud_ipd.exceptions.PyiCloudAPIResponseError: statusCode = UnknownServerError, IOException sending request https://accountservice.p00.prod.me.com:443/api/get_challenge_devices, Failed to resolve 'acco
untservice.p00.prod.me.com' after 6 queries                                                                                                                                                                 
2022-11-04 23:00:59 ERROR    2FA information missing from cookie. Authentication has failed                                                                                                                 
2022-11-04 23:00:59 ERROR     - Was the correct password entered?                                                                                                                                           
2022-11-04 23:00:59 ERROR     - Was the 2FA code mistyped?                                                                                                                                                  
2022-11-04 23:00:59 ERROR     - Can you log into iCloud.com without receiving pop-up notifications?

It seems the domain accountservice.p00.prod.me.com is removed from apple.

ref to: https://github.com/boredazfcuk/docker-icloudpd/issues/227

Steps to Reproduce

  1. /usr/bin/icloudpd --username “${0}” --cookie-directory “${1}” --directory “${2}” --only-print-filenames --recent 0’ – “${apple_id}” “${config_dir}”
  2. type the password

Expected Behavior

Actual Behavior

Context

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:23

github_iconTop GitHub Comments

6reactions
jaysunneucommented, Nov 8, 2022

same error

1reaction
nicolzcommented, Dec 20, 2022

按你的步骤还是无法成功, 直接安装pyicloud和修改版就可以了, 不需要安装原版了: 0. 如果安装了原版则先卸载: pip uninstall icloudpd

  1. pip install pyicloud
  2. sed -i
    -e “s#icloud.com/#icloud.com.cn/#”
    -e “s#icloud.com"#icloud.com.cn"#”
    “$(pip show pyicloud | grep “Location” | awk ‘{print $2}’)/pyicloud/base.py”
  3. git clone https://github.com/mbax2zf2/icloud_photos_downloader.git
  4. cd icloud_photos_downloader && python setup.py build && python setup.py install
  5. 结束了,应该可以正常登录了
Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve issues between iCloud for Windows or iTunes and ...
You can't sign in with your Apple ID. You see "Verification Failed: An unknown error occurred" or "An error occurred during authentication.
Read more >
icloudpd 目前无法进行验证了,还有别的类似的工具吗 - V2EX
Traceback (most recent call last): File ... Failed to resolve 'accountservice.p00.prod.me.com' after 6 queries. envsghost7optanaconda3.
Read more >
Your account settings are out-of-date in Mail or Calendar for ...
This error often happens when you don't use SSL to secure your email account. To fix this error, use the following steps. Choose...
Read more >
Copy items from iCloud or Apple Photos to Google Photos
Important: The transfer doesn't remove your photos and videos from iCloud. After the transfer, new photos and videos stored in your Apple Photos...
Read more >
How to fix an iPhone that keeps asking for Apple ID password
You aren't alone. It's a known bug that pops up from time to time, sometimes following a iOS update, sometimes due issues with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found