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

CLI returns error for all commands across multiple spaces #144

Open
m-shum opened this issue Dec 20, 2024 · 3 comments
Open

CLI returns error for all commands across multiple spaces #144

m-shum opened this issue Dec 20, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@m-shum
Copy link

m-shum commented Dec 20, 2024

Current behavior:
Running any CLI command for any space returns Error: [object Object]

X An error occurred when executing the sync task: Error: [object Object], An error occurred when executing the pull-components task: Error: [object Object] etc. No other error given. Tried with multiple stories.

Expected behavior:
If an error occurs, the error message should be accessible.

Steps to reproduce:
Run any CLI command for any space.

Other information:

  • Operating System: MacOS 14.6.1
  • Node Version: v20.10.0
  • Storyblok CLI version: 3.35.2
@m-shum m-shum added the bug Something isn't working label Dec 20, 2024
@yannic-wtfoxtrot
Copy link

I had this issue with the pull-components command and was able to solve it by logging in a again. I found this out by manually adding a log line to the error handler of that command that revealed that it was an unauthorized error.

@flex-junhyuk
Copy link

I'm having the same issue, but I found out that the Storyblok space IDs are composed of numbers instead of alphabets.

I changed them to numeric IDs and then successfully saved the component as JSON.

Storyblok should improve documentations.

@maxdemaio
Copy link

I had this issue with the pull-components command and was able to solve it by logging in a again

Thank you for this! I logged in again and it solved my issue with the pull-components command as well. Hopefully going forward there could be a better error message than [object Object] 😅

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

4 participants