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

doesn't create deferred struct until we parse arguments #49

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

dyro
Copy link
Collaborator

@dyro dyro commented Feb 15, 2024

The logs in provided to us by the reporter of the ticket included this error:

neon::types::Deferred` was dropped without being settled

This occurs when a Deferred struct is created but not settled. Our code was creating the deferred values, then parsing arguments of the JS invocation of our APIs. If this parsing failed, the deffered value would never be settled, which causes the panic. The added test will fail if the deferred value is not settled.

Copy link

changeset-bot bot commented Feb 15, 2024

🦋 Changeset detected

Latest commit: 4c77546

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
c2pa-node Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dyro dyro requested a review from dkozma February 15, 2024 01:39
Copy link

@dkozma dkozma left a comment

Choose a reason for hiding this comment

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

Awesome job finding the issue so quickly - just one minor change before you merge, as well as one question to make sure I understand things properly.

Edit: Also I forgot to mention - please create a changeset before merging as mentioned above, since that process will automatically handle versioning.

src/lib.rs Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
@dyro dyro force-pushed the dyross/CAI-4527 branch 3 times, most recently from 106ac45 to a276e49 Compare February 15, 2024 18:23
@dyro dyro merged commit 869f2d3 into main Feb 15, 2024
4 checks passed
@dyro dyro deleted the dyross/CAI-4527 branch February 15, 2024 18:30
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.

2 participants