Redfish-Event-Listener icon indicating copy to clipboard operation
Redfish-Event-Listener copied to clipboard

Redfish Event Listener is throwing Error while receiving events using sockets

Open manipk01 opened this issue 1 year ago • 2 comments

Latest DMTF Redfish event listener is being ran on local machine. Below mentioned Issue Observed.

Issue:

When Redfish server sent events to the Redfish Event Listener below error is coming in the listener.

image

Below are my Observations:

When Redfish server sent the events to Listener few content of events are getting received and because of that json.loads(response_array[-1]) is getting failed in listener. Below are the contents received in the listener.

image

Note: When earlier version**(version<= 1.1.3)** of Redfish Event Listener is used, it is working fine and getting events in the listener. And in that versions http_parser module is used for receiving the events.

So please let me know whether this is Redfish Event Listener Tool issue or redfish server needs to do any changes.

Thanks, Mani P K

manipk01 avatar Sep 04 '24 18:09 manipk01

Do you have a sample HTTP payload for what the Redfish service sent to the event listener? That would help us to debug the issue further.

mraineri avatar Sep 04 '24 19:09 mraineri

At least based on snippet of data you provided, it seems like the Redfish service is only sending POST / HTTP/1.1 with no request body, which is not what I would expect from any Redfish service. I can certainly see us hardening the listener to not throw an exception when this happens, but I'd also like to ensure this is really the issue at hand.

mraineri avatar Sep 04 '24 19:09 mraineri