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

MessageConsumer has no field state #55

Closed
DatName opened this issue May 21, 2022 · 2 comments · Fixed by #56
Closed

MessageConsumer has no field state #55

DatName opened this issue May 21, 2022 · 2 comments · Fixed by #56

Comments

@DatName
Copy link

DatName commented May 21, 2022

Hello.
I am getting the following error when closing connection:

type MessageConsumer has no field state
    Stacktrace:
     [1] getproperty
       @ ./Base.jl:42 [inlined]
     [2] connection_processor(c::AMQPClient.MessageConsumer, name::String, fn::typeof(AMQPClient.channel_message_consumer))
       @ AMQPClient ~/.julia/packages/AMQPClient/XjtQ2/src/protocol.jl:357
     [3] (::AMQPClient.var"#24#26"{String, AMQPClient.MessageConsumer})()
       @ AMQPClient ./task.jl:423

The problem is not this code in particular, but the fact that close(c) is not being called in this case (https://github.com/JuliaComputing/AMQPClient.jl/blob/master/src/protocol.jl#L361).

@nsslh
Copy link
Contributor

nsslh commented Aug 15, 2022

This issue is obscuring an underlying error. Whatever the cause of the original error, we can't see it because this code isn't right. MessageConsumer really does not have a state field: check here.

@nsslh
Copy link
Contributor

nsslh commented Aug 15, 2022

Bug introduced in d057d0b. It's not clear to me what the intent was. MessageConsumer did not have a state field at that time either.

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