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

React Native, unordered_map::at: key not found when passing a Buffer instead of a Uint8Array #368

Open
xgiovio opened this issue Jan 23, 2025 · 0 comments

Comments

@xgiovio
Copy link

xgiovio commented Jan 23, 2025

Hello,
In react native, for example using expo fs to write a file or sqllite to write to db, i receive this error [Error: Exception in HostFunction: unordered_map::at: key not found] when i try to pass a Buffer to these functions.

These functions expect a Uint8Array and not a Buffer but a Buffer should be also an Uint8Array.

Fact is that if I do Uint8Array.from(bufferVariableHere), the error goes away.

Any hint?

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

1 participant