After the upgrade to V4, I am able to successfully login using the sls login in CLI. But issue comes when I run the command serverless
and opt for a template. It downloads the template but unable to authenticate. I have two AWS account one for personal and other is for office. And make sure to activate the personal account in both CLI and IDE before running serverless
command. But it is still failing to authenticate. Can anyone help in this matter?
I have a similar problem it only lets me enter my credentials into the dashboard and it keeps loading the page but the console tells me I don’t have an account but I do have an account.
Did you find a solution?
In my case the loading issue wasn’t there, but it was simply throwing error that you are unauthorised as shared in the ss attached.
I found the solution on the slack channel of serverless. It says that you should delete the file .serverlesssrc
and after delete run sls login
and it will work.
Luckily, this actually worked for me . You try it and let me know if it works for you, and if not we will look into the issue.
serverlesssrc
where is this file?
you have a mac or windows?
If windows it should be in C:/Users/user name/ directory.
If mac, please check this command on terminal → find . -name “.serverlessrc”
I already found it and deleted it but it still doesn’t work it lets me enter my credentials and I send it and it stays loading
When you say loading what exactly is loading? Can you share a screenshot of it?
Also, do you have an account on serverless-framework portal?
Ok, if you have an account. Do following steps once, because you are unable to login and CLI error says that you dont have any org created for the project.
- reset the password for your account
- Change the browser/ try in incognito mode
- Change the network connection and try
try these steps once, because account exists.
Thank you very much, I tried something else but first I deleted all the browser data:
- I registered with a new email and
- after deleting the “.serverlesssrc” file,
- Sign in with new email and then log out
- I hit change password on the email that gave me an error.
- In the Serverless console, login and start with the problem email.
I hope it helps someone else.
That’s really awesome that you were able to solve the issue. Best of luck with your project.
Keep going with the project.
Also, I want to ask you if you have created a new account or if the earlier account worked for you. That way, whoever wants to debug the issue can easily follow the steps.
Create a new one but only to solve the problem and with the steps since I was able to use the previous account