Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Error in login: "Entry not found in cache" #215

Closed
nasirvi opened this issue Feb 15, 2019 · 10 comments
Closed

Error in login: "Entry not found in cache" #215

nasirvi opened this issue Feb 15, 2019 · 10 comments

Comments

@nasirvi
Copy link

nasirvi commented Feb 15, 2019

I am running into login error, any guidance on resolving or troubleshooting this issue will help.

To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code BDUNS3J7W to authenticate.
Error: Entry not found in cache.
at Logger.createError (C:\Source\Farm Beats\pcs-cli\node_modules\adal-node\lib\log.js:216:13)
at TokenRequest. (C:\Source\Farm Beats\pcs-cli\node_modules\adal-node\lib\token-request.js:526:40)
at C:\Source\Farm Beats\pcs-cli\node_modules\adal-node\lib\token-request.js:148:20
at C:\Source\Farm Beats\pcs-cli\node_modules\adal-node\lib\cache-driver.js:366:7
at C:\Source\Farm Beats\pcs-cli\node_modules\adal-node\lib\cache-driver.js:301:7
at Request._callback (C:\Source\Farm Beats\pcs-cli\node_modules\adal-node\lib\util.js:130:7)
at Request.self.callback (C:\Source\Farm Beats\pcs-cli\node_modules\request\request.js:185:22)
at Request.emit (events.js:189:13)
at Request. (C:\Source\Farm Beats\pcs-cli\node_modules\request\request.js:1157:10)
at Request.emit (events.js:189:13)
at IncomingMessage. (C:\Source\Farm Beats\pcs-cli\node_modules\request\request.js:1079:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1103:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

@nasirvi nasirvi changed the title Not able to login with PCS Login. Returns "Entry not found in cache" Error in login: "Entry not found in cache" Feb 20, 2019
@nasirvi
Copy link
Author

nasirvi commented Feb 20, 2019

Is there any workaround for this issue? Found one more similar issue but that does seem to solve it for us. https://github.com/Azure/azure-xplat-cli/issues/2203

@guybartal
Copy link

happens to me as well... is this going to get fixed?

@aaomidi
Copy link

aaomidi commented Nov 25, 2019

This is happening to me as well.

@aaomidi
Copy link

aaomidi commented Nov 27, 2019

So I've found a pretty fun workaround for this problem...

https://github.com/microsoft/azuredatastudio/blob/48b2cbb0bfe3de49a9dfc4561b62eb737b3cde2d/extensions/azurecore/src/account-provider/azureAccountProvider2.ts#L337-L355

You have to modify the token object and store it separately.

@royrliu
Copy link

royrliu commented Apr 6, 2020

@nasirvi
Hi, I also encountered the same problem.
Have you solved this problem?

Does anyone knows
Has this example not been running all the time?
If, using the previous version of node.js, will it work?

@nasirvi
Copy link
Author

nasirvi commented Apr 6, 2020

@nasirvi
Hi, I also encountered the same problem.
Have you solved this problem?

Does anyone knows
Has this example not been running all the time?
If, using the previous version of node.js, will it work?

@royrliu it was fixed for us by changing the azure portal password which was by coincidence.

@aaomidi
Copy link

aaomidi commented Apr 6, 2020

I just stopped using this.

@mstewio
Copy link

mstewio commented May 8, 2020

I received this error when I attempted to authenticate using my company's Enterprise account where I am not a global admin. I created a trial Azure subscription using my personal Outlook account and DID NOT receive this error.

@BernhardRode
Copy link

Same issue here

@sameerag
Copy link
Member

Did you get a chance to migrate to msal-node? We have a migration guide published here which can help you do that.

Since ADAL is reaching end of life, as mentioned in the guidance, we would like to address any applicable issues on msal-node. Please give it a spin and let us know. If you are still facing an issue, please feel free to open an issues against the new. repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants