-
Notifications
You must be signed in to change notification settings - Fork 256
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
generation works only once: [Error] TypeError: Cannot read properties of undefined (reading '0') #650
Comments
I managed to fix by setting base64 encoded image data in href of |
Here's a reproduction in the playground. Making an update in the code (e.g. adding a space somewhere) will trigger this error:
The browser console traces back to here: The relevant lines are here: satori/src/handler/preprocess.ts Lines 119 to 130 in 1481902
|
This mainly has to do with how
I think the most straightforward solution would be to clear the map of inflight requests along with the cache clear. |
Bug report
Description / Observed Behavior
I'm using satori in nodejs environment and the svg generation only works once then it gives an error
Expected Behavior
It should generate svg
Here's the code snippet to regenerate the issue
Additional Context
"satori": "^0.12.0"
The text was updated successfully, but these errors were encountered: