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

GetQueue fails to unmarshal #279

Closed
mcwarman opened this issue Aug 18, 2023 · 1 comment · Fixed by #280
Closed

GetQueue fails to unmarshal #279

mcwarman opened this issue Aug 18, 2023 · 1 comment · Fixed by #280
Milestone

Comments

@mcwarman
Copy link
Contributor

GetQueue fails to unmarshall API response.

Error:

json: cannot unmarshal string into Go struct field ChannelDetails.consumer_details.channel_details.peer_port of type uint

Making a call to the API directly I can see the following response:

{
  "consumer_details": [
    {
      "arguments": {},
      "channel_details": {
        "connection_name": "<rabbit@rabbitmq-0.rabbitmq-headless.rabbit.svc.cluster.local.1689630008.13328.3393>",
        "name": "<rabbit@rabbitmq-0.rabbitmq-headless.rabbit.svc.cluster.local.1689630008.13328.3393> (1)",
        "node": "rabbit@rabbitmq-0.rabbitmq-headless.rabbit.svc.cluster.local",
        "number": 1,
        "peer_host": "undefined",
        "peer_port": "undefined",
        "user": "none"
      },
  //...
}
@mcwarman
Copy link
Contributor Author

Probably needs something similar to #207

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

Successfully merging a pull request may close this issue.

2 participants