-
Notifications
You must be signed in to change notification settings - Fork 21
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
Logging reports crash of debug message #38
Comments
This error seems unrelated to the AMQPClient library. I tested AMQPClient in debug mode and it does log the message properly:
The errors report a |
@tanmaykm I do not agree with your findings because the Julia log is especially referring to specific line in the e.g. types.jl. Maybe that my call is introducing a wrong interpretation of the variables → could be that they are resulting to But I am wondering how the string data can introduce such errors. Here is a snippet of my publishing code. data = json(Dict(some JSON data));
data = Vector{UInt8}(data);
msg = Message(data, content_type = "application/json", delivery_mode = PERSISTENT);
basic_publish(channel, msg; exchange = exchange, routing_key = route); where channel, exchange and route are set to my specific setup. |
Yes, just sending string/byte data like you mentioned should be fine, that's what all messages are after all. The occurrence of this: |
Let's say, I am not overriding it by purpose. I am using AMQPClient in parallel with Genie.jl. After digging a bit in the code, the web framework is overriding the default logger → https://github.com/GenieFramework/Genie.jl/blob/master/files/new_app/config/initializers/logging.jl. But it seems to me not that critical because it is adapting just the message content. But strange enough, some AMQPClient debug message are printed correctly, some are throwing these errors. |
Yes, strange indeed. The log statement at line 242 of types.jl, for example, is just a simple string. Line 242 in 9fed71e
There does not seem to be else here that can cause this error. I do not understand Genie.jl internals. Maybe best to raise an issue at Genie.jl and see if something turns up? |
Yes, that sounds reasonable. Because I am also not into deep the Genie.jl internals. I would come back to this thread if something is still related to AMQP. Thanks anyway for your support! |
Running the AMQP client in a Docker environment throws the following error continuously for multiple times in AMQPClient. The client itself is operational but dumps a lot of error messages to the log which are making debugging of the own code for "
Service
" quite hard.The following lines are affected for instance
...
The text was updated successfully, but these errors were encountered: