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
{{ message }}
This repository has been archived by the owner on May 3, 2022. It is now read-only.
I am creating a custom GitHub Action, into which I am trying to implement an API call to PUT a file using multipart/form-data and I wonder if this is supported, or if we need to use a particular library to do so.
Upon execution, I am getting this error: Error: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object
And if I output the object type using core.info(\myForm type: ${typeof myForm}`)then I getmyForm type: objectwhere I would expect to get the typeFormData`.
Could it be that FormData conflicts at runtime with some other type?
Maybe any other library one would know that can work for this user-case?
N.B.: I'm pretty new to GitHub actions and JS/TS, so I may just completely miss something obvious
Thanks
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I am creating a custom GitHub Action, into which I am trying to implement an API call to
PUT
a file usingmultipart/form-data
and I wonder if this is supported, or if we need to use a particular library to do so.Basically, I'm doing this:
Upon execution, I am getting this error:
Error: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object
And if I output the object type using
core.info(\
myForm type: ${typeof myForm}`)then I get
myForm type: objectwhere I would expect to get the type
FormData`.Could it be that
FormData
conflicts at runtime with some other type?Maybe any other library one would know that can work for this user-case?
N.B.: I'm pretty new to GitHub actions and JS/TS, so I may just completely miss something obvious
Thanks
The text was updated successfully, but these errors were encountered: