yahoo oauth2 fails NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
Categories
(Thunderbird :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: lukec2, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Steps to reproduce:
Original issue appeared on a Thunderbird 91.7.0 64bit on Windows 10 fully updated only Windows defender (thunderbird folder excluded) and windows firewall.
There are 3 accounts( 1 gmail imap oauth, 1 yahoo imap oauth, 1 yahoo pop oauth)
-Launch Thunderbird
gmail works as expected
but yahoo request oauth2 authentication (no password request)
- Perform oauth steps successfully (mail confirm thunderbird access and yahoo reports the even in the history)
Access to the mail account request again authentication
Tried again with a fresh installation (also with older 91.6) with a new blank profile
same behaviour and error authenticating thus cannot create account
SMTP oauth2 fails too
Actual results:
As soon as i access the oauth2 popup i see in the error console
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] 3 OAuth2.jsm:171
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
NS_ERROR_NOT_AVAILABLE: ActivityManager.jsm:129
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.js
and it repeats every time i perform the following authentication steps
Expected results:
Correctly oauth2 authenticated and mail downloaded in pop or imap
In the "saved password" list i can find after the successful oauth2 steps completed only the old gmail oauth: row no yahoo password is present
Comment 2•3 years ago
|
||
I haven't read your bug carefully nor this one, but perhaps it is related - Bug 1698316 - ATT and associated domains do not have access to oAuth in Thunderbird as they do not use Yahoo.com server names.
Thanks for the prompt reply
I guess is not that
Actually it worked perfectly up to yesterday at 21:00 since years without any change or password request. This morning all the yahoo accounts already oauth2 authenticated failed to login and is not possible to authenticate anymore.
I'm in Europe not under ATT and servers are pop.mail.yahoo.com imap.mail.yahoo.com smtp.mail.yahoo.com
To clarify i tried with a fresh installation to authenticate on GMAIL during first account creation .i got the same error:
Unexpected event profile-after-change URLQueryStrippingListService.jsm:224
Error: Can't find profile directory. XULStore.jsm:66:15
Unknown Collection "thunderbird/query-stripping" RemoteSettingsClient.jsm:160
[Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIXPCComponents_Utils.readUTF8URI]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: resource://gre/modules/L10nRegistry.jsm :: L10nRegistry.loadSync :: line 692" data: no] L10nRegistry.jsm:692:19
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIURI.host] LoginAutoComplete.jsm:536
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIURI.host] LoginAutoComplete.jsm:536
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIURI.host] LoginAutoComplete.jsm:536
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] 3 OAuth2.jsm:171
Unknown Collection "thunderbird/password-recipes" RemoteSettingsClient.jsm:160
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] 3 OAuth2.jsm:171
TypeError: PopupNotifications is undefined
LoginManagerPrompter.jsm:776:24
NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "PopupNotifications is undefined" {file: "resource://gre/modules/LoginManagerPrompter.jsm" line: 776}]'[JavaScript Error: "PopupNotifications is undefined" {file: "resource://gre/modules/LoginManagerPrompter.jsm" line: 776}]' when calling method: [nsILoginManagerPrompter::promptToSavePassword] LoginManagerParent.jsm:1018
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] 2 OAuth2.jsm:171
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] 3 OAuth2.jsm:171
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
Ps i've tried on another older PC i didn't turn on since months (after updating Thunderbird) and i got the exact same behaviour. Other clients e.g. Windows Mail works as expected on both PC
I tried on a third computer. The same errors are still present (OAuth2.jsm:171) but in this case the oauth2 credentials are saved successfully into Thunderbird instead of reporting wrong credentials as in the other 2 computers.
The issue after more tests is that the file logins.json does not populate and Thunderbird reports a failed access despite the successful oauth2 authentication. Starting from a new profile or removing the files logins.json, key3.db, key4.db, pkcs11.txt does not solve the issue. If a set of file with valid credentials is injected in the profile it starts to work as expected.
Comment 8•3 years ago
|
||
I confirm same behavior with Google Mail account and TB 91.8.0. IMAP with OAuth2.
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] 2 OAuth2.jsm:171
onStateChange resource:///modules/OAuth2.jsm:171
this error is prepended with another error message:
TypeError: PopupNotifications is undefined - LoginManagerPrompter.jsm:776:24
However, I am not sure if it is related.
Quick update ..error is still present on 91.9.0 (64 bit) even in problem resolution mode with a fresh new profile . At the first mail setup after oauth2 and while i receive a mail on my account reporting (Thunderbird has successufully got a new access to yahoo/gmail) Thunderbird reports on a yellow box "Impossible to authenticate on the server. Username or password can be wrong". If everything is scratch freshly installed how can this affect only my system ? Could it be related to some local setup ?(i've no specific firewall or antivirus except the windows default ones)
Comment 10•3 years ago
|
||
Same behavior here, going on a few months now (if I remember correctly also starting around v91.7).
Thunderbird installation is running since many years on Debian, working through multiple OS upgrades, without issues until now.
12 IMAP accounts from various online providers (Google, Mail.Com, Yahoo) and currently only for the Yahoo ones, the authentication started "failing" after passing successfully through the OAuth dialog.
If I login into the Webmail page of the Yahoo accounts in question, I can see on the Recent Activity page all the successfully signed-in sessions of the respectively reported "failed IMAP authentication attempts" of Thunderbird.
It looks like it successfully signs in but it's somehow unaware of it and reports and error then pops up the OAuth dialog all over again.
I've completely purged the Thunderbird installation and reinstalled again from repos, but the behavior is the same.
Strangely enough, for testing purposes I've installed Thunderbird into one of my Debian VMs (same Debian version and same Thunderbird version) and there it works flawlessly, with one of the same Yahoo accounts.
This is what I see in the Error Console during a full authentication attempt failure (from when the OAuth dialog pops up until I pass the logon window and get an established session when checking on webmail side):
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
onStateChange resource:///modules/OAuth2.jsm:171
Empty string passed to getElementById(). browser-custom-element.js:391:22
Empty string passed to getElementById(). browser-custom-element.js:391:22
TypeError: PopupNotifications is undefined
LoginManagerPrompter.jsm:776:24
NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "PopupNotifications is undefined" {file: "resource://gre/modules/LoginManagerPrompter.jsm" line: 776}]'[JavaScript Error: "PopupNotifications is undefined" {file: "resource://gre/modules/LoginManagerPrompter.jsm" line: 776}]' when calling method: [nsILoginManagerPrompter::promptToSavePassword] LoginManagerParent.jsm:1018
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
LoginRecipes: getRecipes: falling back to a synchronous message for: https://api.login.yahoo.com LoginRecipes.jsm:295:9
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified
Loading failed for the <script> with source “http://localhost/assets/webpack/main.6df81d8f.chunk.js”. sign_in:63:1
Loading failed for the <script> with source “http://localhost/assets/webpack/commons-pages.admin.sessions-pages.groups.omniauth_callbacks-pages.ldap.omniauth_callbacks-pages.omn-c3aaf8c4.19d5e0f7.chunk.js”. sign_in:64:1
Loading failed for the <script> with source “http://localhost/assets/webpack/pages.sessions.new.7035dd20.chunk.js”. sign_in:65:1
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] 3 OAuth2.jsm:171
Content Security Policy: Ignoring “'unsafe-inline'” within script-src or style-src: nonce-source or hash-source specified
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. login.yahoo.com
NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name] OAuth2.jsm:171
Suspecting some messed up permissions I've reapplied permissions for my user to the whole Thunderbird profile folder tree, without any luck.
Out of new ideas, so far.
Comment 11•3 years ago
|
||
Errors sound similar to this in Support Forum:
https://support.mozilla.org/en-US/questions/1377355
Users with errors....Please confirm :
Using VPN ?
Using eg: Apache local host server or similar
If yes to either or both of the above, please switch them off. REstart Thunderbird and try to get access.
Firewall - Thunderbird must be in the list as an allowed program.
If not in list then add it.
If already in list as allowed, see if Firewall is confused as it might think the updated Thunderbird is different from the allowed Thunderbird.
Exit Thunderbird
Access Firewall - block Thunderbird and ok it.
Access Firewall set to allow and ok it.
Start Thunderbird.
Reporter | ||
Comment 12•3 years ago
|
||
Thanks that's wonderful advice.
The following actions solved:
-checked Windows Firewall and there were multiple rules present (deleted all of them and created from scratch).
-stopped Apache localhost server
Now the oauth2 is successful as in the previous tentatives but the credentials are finally saved so thunderbird can use them.
I close the bug as duplicated
Comment 13•3 years ago
|
||
The support forum link https://support.mozilla.org/en-US/questions/1377355 is not related to the bug in the bug database with the same number (bug 1377355). Removing the dupe.
Description
•