You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works fine locally but when deployed to DigitalOcean App Platform ( smallest resource size) the following error occurs when undio is calling the internal function _base64Encode:
This is explanation the o1-preview model provided:
The error you're encountering—"RangeError: Maximum call stack size exceeded"—is due to the way you're using the spread operator (...) with String.fromCodePoint() on a potentially large array of data. When data is large, spreading it as arguments to String.fromCodePoint() can exceed the maximum number of arguments that a function can accept, leading to a stack overflow.
I can't really judge if this is a valid explanation but the provided fix did work for my environment. But it is of course a Node only solution:
Environment
Digital Ocean App Platform running Nuxt3 App
Reproduction
It runs fine locally, but crashes when deployed on more limited hardware
Describe the bug
Since I have not provided a reproduction, here is a detailed description of the issue:
I am using undio to transform uint8 Array to a Base64 encoded String ( first page of a pdf to pass it into an llm API).
This works fine locally but when deployed to DigitalOcean App Platform ( smallest resource size) the following error occurs when undio is calling the internal function _base64Encode:
This is explanation the o1-preview model provided:
I can't really judge if this is a valid explanation but the provided fix did work for my environment. But it is of course a Node only solution:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: