How to receive a response back from a foreign API in an event handler

Hello @stanislaw.grin

If you look at the orginal post for this issue, (Andriy has me create a new topic) this is the very first thing that I tried. I had already tried using the HTTPs request block for doing the API Call to the Foreign API and I get this response back:

Here is the snippet:

So in summary, this was the first thing that I tried that didn’t work, which is why I created the support topic to begin with: :slight_smile:
Link to original post

It returned the “error” that I quoted above.

Putting this in an async blocked prevented the error, but also prevents me from getting the response back from the foreign API. Here it is with the async block removed:

I get that this won’t work in an async block (because you can’t capture the response), it also won’t work OUTSIDE of the async block!!! :slight_smile:

I’m going to resume working on the minimal example for you later today to look at because an AppID is worth a thousand words :smiley:

Mike