Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to unserialize job #97

Open
agumaxwellforcode opened this issue Apr 1, 2024 · 3 comments
Open

Unable to unserialize job #97

agumaxwellforcode opened this issue Apr 1, 2024 · 3 comments

Comments

@agumaxwellforcode
Copy link

agumaxwellforcode commented Apr 1, 2024

Sassnowski\Venture\Serializer\UnserializeException: Unable to unserialize job

Anytime I start a workflow

`class ProcessIssuingTransactionWebhookReceivedWorkflow extends AbstractWorkflow
{
public function __construct(
private array $validated_data,
) {
}

/**
 * @throws InvalidJobException
 * @throws DuplicateJobException
 */
public function definition(): WorkflowDefinition
{
    $validated_data = $this->validated_data;

    return $this->define('Process new webhook transaction :'.$validated_data['event'].'/'.$validated_data['data']['reference'].'/'.$validated_data['mode'])
        ->addJob(new SaveWebhookJob('issuing', $validated_data))
        .
        .
        .
        ->catch(function (Workflow $workflow, WorkflowableJob $step, Throwable $exception) {
            logToSentry($exception);
            $workflow->cancel();
        });
}

}`

@agumaxwellforcode
Copy link
Author

What am I doing wrong?

@ksassnowski
Copy link
Owner

As a test, can you remove the logToSentry($exception) line from the catch callback and try again?

@agumaxwellforcode
Copy link
Author

Thank you @ksassnowski,
Apparently there is an issue with the Jobs when you implement - ShouldBeEncrypted - trait.

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

No branches or pull requests

2 participants