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

Examples: Access the default VHost not possible

Open
#48 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp, rabbitmq
Domain
api

Research direction

Start with ConnectionString::parseParts and the SimpleEndpoint::vhost getter, as identified in the issue. Run rmqhelloworld_producer with amqp://guest:guest@localhost:5672/ and trace how the empty vhost is handled. Done means the command connects using RabbitMQ's default / vhost instead of requesting an empty vhost.

Written by the indexing model from the issue text.

Description

Describe the bug
Its not possible to access the default vhost with e.g. rmqhelloworld_producer

To Reproduce
Steps to reproduce the behavior:

  1. Call rmqhelloworld_producer amqp://guest:guest@localhost:5672/
  2. See Error: Error: Connection error NOT_ALLOWED - vhost not found, rc: 530

Expected behavior
It would not use "" as vhost but rather the default "/" vhost

Additional context
Could be fixed in ConnectionString::parseParts function or Within the getter SimpleEndpoint::vhost by using / as vhost if it is empty.

Dominant language
C++
Stars
106
Forks
32
Avg merge
9h 6m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

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 bloomberg/rmqcpp

All issues in bloomberg/rmqcpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.