I'm currently working on a project where I have two agents set up using the SPADE library: a CoreAgent and an ImageProcessingAgent. The CoreAgent is supposed to send an image (encoded as a base64 string) to the ImageProcessingAgent, which then processes the image and sends back the results.
However, I'm running into an issue where the ImageProcessingAgent does not appear to be receiving any messages from the CoreAgent, even though the CoreAgent seems to successfully send the message. No exceptions or error messages are thrown, the ImageProcessingAgent just keeps waiting for a message indefinitely.
Here is the console output when running the agents:
ImageProcessingAgent started
CoreAgent started
message sent
No further output is produced after the "message sent" line, indicating that the ImageProcessingAgent is not receiving the message. The "receiving message" print statement in the ReceiveBehaviour run method is never executed.
I have double-checked the agent names, ensured both agents are running at the time the message is sent, and there should not be any network issues as this is running on localhost.
I would really appreciate any help on this. Thank you!
Description
Hello,
I'm currently working on a project where I have two agents set up using the SPADE library: a CoreAgent and an ImageProcessingAgent. The CoreAgent is supposed to send an image (encoded as a base64 string) to the ImageProcessingAgent, which then processes the image and sends back the results.
However, I'm running into an issue where the ImageProcessingAgent does not appear to be receiving any messages from the CoreAgent, even though the CoreAgent seems to successfully send the message. No exceptions or error messages are thrown, the ImageProcessingAgent just keeps waiting for a message indefinitely.
Here is the basic code for both agents:
CoreAgent:
ImageProcessingAgent:
Both agents are started with:
What I Did
Here is the console output when running the agents:
No further output is produced after the "message sent" line, indicating that the ImageProcessingAgent is not receiving the message. The "receiving message" print statement in the ReceiveBehaviour run method is never executed.
I have double-checked the agent names, ensured both agents are running at the time the message is sent, and there should not be any network issues as this is running on localhost.
I would really appreciate any help on this. Thank you!