I’m making an HTTP request in an action which obviously takes some time. I want to use the response of that request in another action, but every time I get an error since the request hasn’t completed yet so the response variable is empty.
Specifically, I will save the json response from the first action and then pass it to a feed.
I’m using Drupal 8.
I’ve tried searching every form of words I can imagine and I have found only a single drupal.org thread from Drupal 7 days that didn’t even have a solution.
Am I going about this the wrong way?