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

Issues with the new lazy fetch functionality #29

Open
solkimicreb opened this issue Nov 24, 2024 · 2 comments
Open

Issues with the new lazy fetch functionality #29

solkimicreb opened this issue Nov 24, 2024 · 2 comments

Comments

@solkimicreb
Copy link

Hey! Since I updated to v0.2.0. I started getting these two errors:

  • Cannot destructure property 'meta' of 'ctx.requestPayload' as it is undefined. from the failureFunction.
  • Upstash Qstash: Failed while decoding base64 "undefined". Decoding with atob and returning it instead. InvalidCharacterError: The string to be decoded is not correctly encoded. from the main workflow.

I suspect these are related to the new lazy fetch functionality and the body being undefined.

@CahidArda
Copy link
Collaborator

CahidArda commented Nov 25, 2024

Hi there,

It looks like this can happen if the workflow is triggered with an empty payload. But since you check ctx.requestPayload.meta, I assume you don't call the workflow with empty payloads.

Did you observe these errors in workflows which were started before the version upgrade or do they still happen consistently after the version upgrade?

Either way these errors shouldn't have happened, we will look into addressing them.

@solkimicreb
Copy link
Author

solkimicreb commented Dec 2, 2024

I am pretty sure they were started after the version upgrade but that's a good point. I will try to repro with the upgraded version and a clean instance when I have some time.

Edit: yep, the workflows were called with large payloads.

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