Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

bug: CLI hangs indefinitely during network failures due to missing `http.Client` timeouts

Open Beginner friendly
#545 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
cli, networking

Research direction

Trace the CLI's internal HTTP client initialization and reproduce the hang with the start or simulate command against an unresponsive Microcks or Keycloak server. Set a 30-second client timeout and verify that the command returns a helpful timeout error instead of waiting indefinitely.

Written by the indexing model from the issue text.

Description

Describe the bug

The CLI currently initializes its internal HTTP clients without explicitly setting a Timeout field. In Go, an http.Client without a configured timeout (or when using http.DefaultClient) will default to waiting infinitely. If a network connection silently drops, or if the Microcks/Keycloak server is locked up and unresponsive, the CLI freezes forever in the terminal and must be manually killed by the user.

Expected behavior

The CLI should fail fast with a helpful connection timeout error (e.g., context deadline exceeded or timeout) if the server takes longer than 30 seconds to respond, returning control to the user.

Actual behavior

The CLI hangs infinitely in the terminal with no output.

How to Reproduce?

Try with start or simulate it.

Microcks version or git rev

No response

Install method (docker-compose, helm chart, operator, docker-desktop extension,...)

No response

Additional information

No response

Dominant language
Go
Stars
57
Forks
72
Avg merge
1d 35m
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microcks/microcks-cli

All issues in microcks/microcks-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.