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 occurs if queue name contains white space #84

Closed
nguyendangminh opened this issue Apr 13, 2015 · 6 comments
Closed

Error occurs if queue name contains white space #84

nguyendangminh opened this issue Apr 13, 2015 · 6 comments

Comments

@nguyendangminh
Copy link

Hi,
If the queue name contains white space, e.g. "job worker", the gnatsd will return an error "processSub Parse Error". There's nowhere in the document mentions queue name.

...
nc.QueueSubscribe("foo", "job worker", func(msg *nats.Msg) {
        log.Printf("Received on [%s]: '%s'\n", msg.Subject, string(msg.Data))
    })
...
@derekcollison
Copy link
Member

Yes we can be better at that for sure, queue names cannot contain spaces.

@stevenvegt
Copy link

Hi, I just spend a few hours of debugging this problem. I had a subject with a space in it.
The subscribe did not error, but the events did not arrive either.

It's obviously a newby mistake 👋 but some kind of hint for me it would have been a huge timesaver. Maybe you can add a check when the debug option flag is set?

@derekcollison
Copy link
Member

The server can be put into pedantic mode where it does more checking on the subjects. However we do have a few newcomers run into this issue.

@derekcollison
Copy link
Member

Which client were you using?

@stevenvegt
Copy link

Thanks for the quick response! I'm using the streaming stan.go client.

@derekcollison
Copy link
Member

Will look to add some processing to those clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants