storyblok-cli
storyblok-cli copied to clipboard
storyblok quickstart is not generating proper errors when not logged in
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
:
Steps to reproduce:
- Be logged out from the cli.
- Try to run
storyblok quickstart
. - Be confused why it posted a huge error but still said "done".