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

Error when watching task output on HTTP server #138

Closed
rezib opened this issue Aug 28, 2023 · 0 comments
Closed

Error when watching task output on HTTP server #138

rezib opened this issue Aug 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rezib
Copy link
Contributor

rezib commented Aug 28, 2023

fatbuildrctl crashes with this error:

$ fatbuildrctl --uri https://build.rackslab.io/devs build -a rfl -d bookworm --sources 0.0.1@. -w
Generating artifact rfl source tarball version 0.0.1 using directory .
Submitted rfl build task f3bdf76c-0ad6-4bba-b97e-8d2a4ec04bb3
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/fatbuildr/console/client.py", line 275, in _console_generator
    msg = ConsoleMessage.read(**kwargs)
  File "/usr/lib/python3/dist-packages/fatbuildr/console/__init__.py", line 107, in read
    data = reader(size)
  File "/usr/lib/python3/dist-packages/fatbuildr/console/client.py", line 264, in reader
    return next(response.iter_content(chunk_size=size))
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/fatbuildrctl", line 33, in <module>
    sys.exit(load_entry_point('Fatbuildr==2.1.0.dev14', 'console_scripts', 'fatbuildrctl')())
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/__init__.py", line 34, in run
    cls()
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrctl.py", line 437, in __init__
    args.func(args)
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrctl.py", line 1000, in _run_build
    self._submit_watch(
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrctl.py", line 1071, in _submit_watch
    self._watch_task(task_id, interactive)
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrctl.py", line 1092, in _watch_task
    tty_console_renderer(self.connection.watch(task))
  File "/usr/lib/python3/dist-packages/fatbuildr/console/client.py", line 290, in tty_console_renderer
    for msg in console_generator:
  File "/usr/lib/python3/dist-packages/fatbuildr/console/client.py", line 266, in console_http_client
    yield from _console_generator(False, reader=reader)
RuntimeError: generator raised StopIteration
@rezib rezib added the bug Something isn't working label Aug 28, 2023
@rezib rezib added this to the v2.1.0 milestone Aug 28, 2023
@rezib rezib self-assigned this Aug 28, 2023
@rezib rezib closed this as completed in 62a3ff8 Aug 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