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
serverless login throws SyntaxError: The URL's protocol must be... #11346
Comments
Hi, I can't reproduce the problem. Could you provide the complete command output instead of just the error? |
It might have happened to me for copying a initializing a new project using I already deleted that pre-existing project Ty |
Hello! 👋 $ serverless login
Running "serverless" from node_modules
Logging into the Serverless Dashboard via the browser
Environment: darwin, node 18.12.1, framework 3.26.0 (local) 3.10.2v (global), plugin 6.2.2, SDK 4.3.2
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error:
Error:
SyntaxError: The URL's protocol must be one of "ws:", "wss:", or "ws+unix:"
at initAsClient (<<path-to-project>>/node_modules/ws/lib/websocket.js:693:17)
at new WebSocket (<<path-to-project>>/node_modules/ws/lib/websocket.js:85:7)
at ServerlessSDK.loginIdentity (<<path-to-project>>/node_modules/@serverless/platform-client/src/index.js:1066:16)
at ServerlessSDK.login (<<path-to-project>>/node_modules/@serverless/platform-client/src/index.js:1139:70)
at module.exports (<<path-to-project>>/node_modules/serverless/lib/commands/login/dashboard.js:13:64)
at module.exports (<<path-to-project>>/node_modules/serverless/commands/login.js:36:55)
at async <<path-to-project>>/node_modules/serverless/scripts/serverless.js:556:9 |
Hi, I had a similar issue. Try removing |
@RobbyKetchell this didn't work for me, that is weird because it was working before, and on my other projects when i run the command it works. |
I get this error too. Environment: darwin
Even deleting the No idea how to proceed deploying. |
Exact same error here, the @RobbyKetchell solution worked for me thx! |
Had the same problem. Deleting my entire personal git project on my computer and cloning from git worked for me. I was on the careful side and ran serverless login directly after cloning. |
ran into this as well. it looks like the using package.json overrides "overrides": {
"ws": "7.4.4"
} |
Could someone please assist me with this? I'm encountering the same issue. |
Are you certain it's a bug?
Is the issue caused by a plugin?
Are you using the latest v3 release?
Is there an existing issue for this?
Issue description
serverless login
throws and exception:SyntaxError: The URL's protocol must be one of "ws:", "wss:", or "ws+unix:"
Service configuration (serverless.yml) content
N/A
Command name and used flags
serverless login
Command output
Environment information
The text was updated successfully, but these errors were encountered: