acceptable-australia-33626
09/02/2023, 4:05 PMacceptable-australia-33626
09/02/2023, 6:28 PMbrief-family-77282
12/20/2024, 3:40 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);
}
brief-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);
}