Cannot access data if "Include errors in response" is enabled

I am having trouble with the “include errors in response” option.

I am creating a new plugin and I would like to check for errors when making a call to an API. I have enabled/checked the “Include errors in response and allow workflow actions to continue” option and reinitialized the API call.

The raw data from the API call response is being returned as a (now nested) object that contains a “body” section and an “error” section, e.g.:
“body”: {
“body”: “hello world”,
“num_segments”: “1”,
“error_message”: null,
“account_id”: “12345678”,
“date_created”: “Sat, 01 Oct 2022 12:43:34 +0000”,
“status”: “smbtd”,
“error”: {
“status_code”: 201,
“status_message”: “Sent”,

“returned_an_error”: false

On my test workflow I can access the “raw body text” but I seem unable to properly access the specific fields (like “num_segments” and “date_created” and “status” in the example above). I am also unable to access the error fields added by bubble (like the “returned_an_error” field).

This problem disappears if I disable the “Include errors in response” option. Does anyone have ideas on what the problem might be?

Hi @bubble88 I am having the same issue. Did you figure this out?