gentle-book-7890
05/22/2024, 8:01 PMbrief-family-77282
12/20/2024, 3:41 AM{
"apiSlackRequest": {
"response": {
"request": {
"__sentry_xhr__": {
"method": "GET",
"url": "https://example.com/api",
"body": null,
"status_code": 200
}
}
}
}
}
I believe the circular reference arises in request -> res -> req -> request.
To fix the issue, we deleted the problematic property response.request in a code execution card before proceeding. Here’s how:
try {
if (workflow.apiSlackRequest && workflow.apiSlackRequest.response) {
delete workflow.apiSlackRequest.response.request; // Fix circular reference
bp.logger.info('Deleted: response.request');
}
} catch (error) {
bp.logger.error('Error clearing response.request:', error.message);
}
clever-exabyte-40857
01/20/2025, 3:41 PMwhite-nest-40686
02/08/2025, 3:41 PMconst response = await axios.request(config);
return response.data;