GithubHelp home page GithubHelp logo

Unable to login via CLI about serverless HOT 4 OPEN

nappernick avatar nappernick commented on July 2, 2024 1
Unable to login via CLI

from serverless.

Comments (4)

nappernick avatar nappernick commented on July 2, 2024

Now using node v18.19.0 (npm v10.2.3)
Installed from root using npm i -g serverless
Using yarn classic in the project, where I've installed:

"aws-serverless-express": "^3.4.0",
"serverless-offline": "^13.2.0",
"serverless-plugin-optimize": "^4.2.1-rc.1",
"serverless-plugin-typescript": "^2.1.5",
"@types/aws-lambda-fastify": "^1.4.3",
"@types/aws-serverless-express": "^3.3.7",

from serverless.

nappernick avatar nappernick commented on July 2, 2024

Bit more context (tried on node 18, 19, and 20):

Logging into the Serverless Framework via the browser
If your browser does not open automatically, please open this URL:
https://app.serverless.com?client=cli&transactionId=pfvUPq3m96Ol958EDjbRy

[hangs....]

sls doctor
2 deprecations triggered in the last command:

Support for "package.include" and "package.exclude" will be removed in the next major release. Please use "package.patterns" instead
More info: https://serverless.com/framework/docs/deprecations/#PACKAGE_PATTERNS
Starting with version 4.0.0, following property will be replaced:
  "provider.iamRoleStatements" -> "provider.iam.role.statements"
More info: https://serverless.com/framework/docs/deprecations/#PROVIDER_IAM_SETTINGS_V3
serverless info --verbose
Environment: darwin, node 20.10.0, framework 3.38.0, plugin 7.2.0, SDK 4.5.1
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
You are not currently logged in. To log in, use: $ serverless login

2 deprecations found: run 'serverless doctor' for more details

from serverless.

nappernick avatar nappernick commented on July 2, 2024

The console on the browser says:

js.stripe.com/v3/controller-8324c09573d1c228d18b64f31ad6df01.html#apiKey=pk_live_fUrnuMKodQM6UMXPZnFcNQ3N002icn5R5D&stripeJsId=d531ea73-6576-43e4-8865-ee1885d2a813&stripeJsLoadTime=1703015814586&manualBrowserDeprecationRollout=false&referrer=https%3A%2F%2Fapp.serverless.com%2F%3Fclient%3Dcli%26transactionId%3DcK4pLrdZ_2dgRCNoncBG4&controllerId=__privateStripeController0571:1 The source list for the Content Security Policy directive 'style-src' contains an invalid source: '://:'. It will be ignored.
js.stripe.com/v3/controller-8324c09573d1c228d18b64f31ad6df01.html#apiKey=pk_live_fUrnuMKodQM6UMXPZnFcNQ3N002icn5R5D&stripeJsId=d531ea73-6576-43e4-8865-ee1885d2a813&stripeJsLoadTime=1703015814586&manualBrowserDeprecationRollout=false&referrer=https%3A%2F%2Fapp.serverless.com%2F%3Fclient%3Dcli%26transactionId%3DcK4pLrdZ_2dgRCNoncBG4&controllerId=__privateStripeController0571:1 The source list for the Content Security Policy directive 'style-src' contains an invalid source: '://:'. It will be ignored.
api.serverless.com/login/complete:1 
        
        
       Failed to load resource: the server responded with a status of 500 (Internal Server Error)
m.stripe.network/inner.html#url=https%3A%2F%2Fapp.serverless.com%2F%3Fclient%3Dcli%26transactionId%3DcK4pLrdZ_2dgRCNoncBG4&title=Serverless&referrer=&muid=ea220a2d-247b-42f3-8f09-c0c182b4edc121f5c4&sid=b549f080-d18d-40a2-8168-87b0baf69458c79206&version=6&preview=false:1 The source list for the Content Security Policy directive 'style-src' contains an invalid source: '://:'. It will be ignored.

app.serverless.com-1703016048959.log

from serverless.

nappernick avatar nappernick commented on July 2, 2024

I've been able to troubleshoot logging in, but I'm still getting this error:

Typescript compiled.

✖ Stack api-gateway-dev failed to deploy (86s)
Environment: darwin, node 16.16.0, framework 3.38.0 (local) 3.38.0v (global), plugin 7.2.0, SDK 4.5.1
Credentials: Local, "default" profile
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: Tenant not found. - Please contact support and provide this identifier to reference this issue - YZQPZBX5PNCZ
    at Object.request (/Users/nappernick/node_modules/@serverless/platform-client/src/utils.js:64:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async module.exports (/Users/nappernick/node_modules/@serverless/dashboard-plugin/lib/app-uids.js:7:15)
    at async ServerlessEnterprisePlugin.<anonymous> (/Users/nappernick/node_modules/@serverless/dashboard-plugin/lib/plugin.js:251:13)
    at async PluginManager.runHooks (/Users/nappernick/node_modules/serverless/lib/classes/plugin-manager.js:530:9)
    at async PluginManager.invoke (/Users/nappernick/node_modules/serverless/lib/classes/plugin-manager.js:563:9)
    at async PluginManager.spawn (/Users/nappernick/node_modules/serverless/lib/classes/plugin-manager.js:585:5)
    at async before:deploy:deploy (/Users/nappernick/node_modules/serverless/lib/plugins/deploy.js:48:11)
    at async PluginManager.runHooks (/Users/nappernick/node_modules/serverless/lib/classes/plugin-manager.js:530:9)
    at async PluginManager.invoke (/Users/nappernick/node_modules/serverless/lib/classes/plugin-manager.js:563:9)
    at async PluginManager.run (/Users/nappernick/node_modules/serverless/lib/classes/plugin-manager.js:604:7)
    at async Serverless.run (/Users/nappernick/node_modules/serverless/lib/serverless.js:179:5)
    at async /Users/nappernick/node_modules/serverless/scripts/serverless.js:819:9

from serverless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.