Skip to content
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

storyblok quickstart is not generating proper errors when not logged in #31

Open
SebbeJohansson opened this issue Jan 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SebbeJohansson
Copy link
Contributor

Current behavior:

Right now if you are not logged in storyblok quickstart results in unclear errors.

$ C:\Users\sebas\JavascriptProjects\nuxt-ultimate-template\node_modules\.bin\storyblok quickstart
  ____  _                   _     _       _
 / ___|| |_ ___  _ __ _   _| |__ | | ___ | | __
 \___ \| __/ _ \| '__| | | | '_ \| |/ _ \| |/ /
  ___) | || (_) | |  | |_| | |_) | | (_) |   <
 |____/ \__\___/|_|   \__, |_.__/|_|\___/|_|\_\
                      |___/


Hi, welcome to the Storyblok CLI

? How should your Project be named? nuxt-ultimate-template
- Your project will be created now...
X An error occurred when create space and execute some tasks
Error: Request failed with status code 401
    at createError (C:\Users\sebas\JavascriptProjects\nuxt-ultimate-template\node_modules\axios\lib\core\createError.js:16:15)
    at settle (C:\Users\sebas\JavascriptProjects\nuxt-ultimate-template\node_modules\axios\lib\core\settle.js:17:12)
    at IncomingMessage.handleStreamEnd (C:\Users\sebas\JavascriptProjects\nuxt-ultimate-template\node_modules\axios\lib\adapters\http.js:269:11)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
{{TRUNCATED}}
Done in 13.71s.

Expected behavior:

I expect a clear error message. Other commands are better, but not perfect. Like storyblok spaces:
image

Steps to reproduce:

  1. Be logged out from the cli.
  2. Try to run storyblok quickstart.
  3. Be confused why it posted a huge error but still said "done".
@SebbeJohansson SebbeJohansson added the bug Something isn't working label Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant