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

require form-data not working #1346

Closed
marcosh opened this issue Jan 8, 2024 · 1 comment
Closed

require form-data not working #1346

marcosh opened this issue Jan 8, 2024 · 1 comment

Comments

@marcosh
Copy link

marcosh commented Jan 8, 2024

I'm trying to write a request to upload a file and I'm trying to replicate this script #385 (comment)

But when I import form-data with

const FormData = require("form-data");

the request fails with the following error

Error invoking remote method 'send-http-request': VMError: Operation not allowed on contextified object.
@marcosh
Copy link
Author

marcosh commented Jan 8, 2024

actually, I just figured it out, I was forgetting to allowlist the form-data library

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