Skip to content

🐛 [Bug]: CLI doesn't stop spinning when trying to pull non-existing component #368

@krystoryblok

Description

@krystoryblok

Package

storyblok (CLI)

Bug Description

When the CLI can't find component with matching name (either deleted component or spelling mistake) in the space - 'Fetching' keeps on spinning, there seems to be a warning icon flash for a split second, but then spinning resumes, there's no message that component was not found, it doesn't timeout, it just keeps going. I tried the same thing in different repos with different spaces - the same result.

Image

Steps to Reproduce

  1. run storyblok components pull --space <id> --separate-files non_exisiting_component
  2. the component cannot be found and storyblok cli keeps spinning

Expected Behavior

If no component is found with that name there should be an appropriate message.

Actual Behavior

The Fetching... keeps on spinning

Code Sample

Environment

System:
    OS: macOS 26.0.1
    CPU: (12) arm64 Apple M4 Pro
    Memory: 1.63 GB / 24.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.10.0 - /opt/homebrew/bin/node
    npm: 11.6.0 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 142.0.7444.60
    Safari: 26.0.1
  npmPackages:
    @storyblok/astro: ^6.2.0 => 6.2.0 
    astro: ^5.14.6 => 5.15.1 
    storyblok: ^4.6.10 => 4.6.12

Error Logs

Additional Context

No response

Metadata

Metadata

Assignees

Labels

cliCLI related features and issuespending-author[Status] Awaiting further information or action from the issue author

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions