-
Notifications
You must be signed in to change notification settings - Fork 125
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
Cannot login or deploy application: findCredentials is not a function error #885
Comments
I am having the same issue after updating to version 2.0.1 and am unable to deploy. |
Hi, acknowledging this issue. We will test this locally and get it resolved. In the meantime, are you able to login or deploy using a prior version? |
+1 facing the same issue. |
Solution: #879 (comment) Login first with |
Going to give it a try and update back
From: Rodrigo Rodriguez ***@***.***>
Date: Wednesday, 4 September 2024 at 21:54
To: Azure/static-web-apps-cli ***@***.***>
Cc: Kirtimaan Lodha ***@***.***>, Comment ***@***.***>
Subject: Re: [Azure/static-web-apps-cli] Cannot login or deploy application: findCredentials is not a function error (Issue #885)
Solution: #879 (comment)<#879 (comment)>
Login first with az login, then swa login.
—
Reply to this email directly, view it on GitHub<#885 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5VOFDDZHOO2CNH5X2B3SZDZU4X4DAVCNFSM6AAAAABM3TB3OCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZGUYDEMJSHA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I can confirm that installing Azure CLI on my MacBook and then using Definitely this can be marked and documented as a setup step or a dependency though |
+1 for issue. Affects the Visual Studio publish as it seems to shell to swa.cmd. |
@malthuswaswrong you can try using |
Before filing this issue, please ensure you're using the latest CLI by running
swa --version
and comparing to the latest version on npm.Are you accessing the CLI from the default port
:4280
?--port
) and accessing the CLI from that port:4280
ℹ️ NOTE: Make sure to enable debug logs when running any
swa
commands using--verbose=silly
Describe the bug
I cannot deploy an application. It was working fine, but I have updated to the newest version. During running
swa deploy
i got:Checking
Azure session...Executing authenticateWithAzureIdentity
Keychain is enabled
Executing swaCliPersistencePlugin
Executing before cache access plugin
Machine ID:
Invoking crypto service
Getting credentials
Getting credentials from native keychain
Getting keychain reference
isKeychainEnabled: true
KeychainCache: undefined
Attempting to load native keychain
Executing after cache access plugin
Machine ID:
Invoking crypto service
Did TokenCacheContext cache changed: true
Setting credentials in keychain
Encrypting credentials
Encrypted credentials:
Setting credentials in native keychain
Getting keychain reference
isKeychainEnabled: true
KeychainCache: undefined
Attempting to load native keychain
✖ Failed to setup project: this.keychainCache.findCredentials is not a function
✖ If you believe this behavior is unexpected, please raise a GitHub issue at:
https://github.com/Azure/static-web-apps-cli/issues/new/choose
It also happens when i try to
swa login`Configuration used:
{ "$schema": "https://aka.ms/azure/static-web-apps-cli/schema", "configurations": { "app-frontend": { "appLocation": ".", "outputLocation": "dist", "appBuildCommand": "npm run build", "run": "npm run dev", "appDevserverUrl": "http://localhost:5173", "tenant": "XXXX", "appName": "app-stage", "resourceGroup": "app-sgr-stage", "env": "prod" } } }
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: