Skip to content

fix(TaskProcessing): Catch JSON encode errors in Manager#setTaskResult#46780

Merged
marcelklehr merged 1 commit intomasterfrom
fix/taskprocessing-better-errors
Jan 24, 2025
Merged

fix(TaskProcessing): Catch JSON encode errors in Manager#setTaskResult#46780
marcelklehr merged 1 commit intomasterfrom
fix/taskprocessing-better-errors

Conversation

@marcelklehr
Copy link
Copy Markdown
Member

Checklist

Copy link
Copy Markdown
Member

@bigcat88 bigcat88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@marcelklehr marcelklehr force-pushed the fix/taskprocessing-better-errors branch 2 times, most recently from 714e495 to da34d4c Compare July 26, 2024 12:00
$error = 'The task was processed successfully but the provider\'s output doesn\'t pass validation against the task type\'s outputShape spec and/or the provider\'s own optionalOutputShape spec';
$task->setErrorMessage($error);
$this->logger->error($error, ['exception' => $e]);
$this->logger->error($error . ' Output was: ' . var_export($result, true), ['exception' => $e]);

Check failure

Code scanning / Psalm

TaintedHtml

Detected tainted HTML
@skjnldsv skjnldsv marked this pull request as draft November 15, 2024 13:07
@marcelklehr marcelklehr force-pushed the fix/taskprocessing-better-errors branch from da34d4c to 975a0e7 Compare January 23, 2025 08:27
@marcelklehr marcelklehr marked this pull request as ready for review January 23, 2025 08:27
@marcelklehr marcelklehr force-pushed the fix/taskprocessing-better-errors branch from 975a0e7 to 4fc0369 Compare January 23, 2025 10:41
@marcelklehr
Copy link
Copy Markdown
Member Author

/backport to stable31

@marcelklehr
Copy link
Copy Markdown
Member Author

/backport to stable30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants