GET request and text/event-stream content-type

#1

Hi, I am able to query a REST API, but the content type of the response is text/event-stream and when I connect the GET node to an interactive table the body column contains a red “?”, which I assume, means it was unable to parse the response.

Is there a way to handle this type of response?

0 Likes

#2

Hi,

Is it possible for you to provide the URL you are using?
And also the documentation for the API you are using.

:blush:

0 Likes

#3

Hi Armin - unfortunately this is an internal service that doesn’t have a public URL. The API is provided by the SmallWorld software package from NextMove software.

In the end I was able to handle it by using a Python snippet and handling the event stream using the sseclient-py package

1 Like