CycleTLS
CycleTLS copied to clipboard
FormData issoe
Description
FormData is not working when trying to do POST request
Issue Type
Bug
Operating System
Windows 10
Node Version
Node 16.x
Golang Version
Other
Relevant Log Output
Error Processing Request (please open an issue https://github.com/Danny-Dasilva/CycleTLS/issues/new/choose) -> 2024/04/11 00:57:30 Unmarshal Errorjson: cannot unmarshal object into Go struct field Options.options.body of type string
Im trying to pass the FormData like this:
const formData = new FormData
formData.append('email', this.account.email)
formData.append('consent', 'on')
And the request is:
await this.cycleTls.post(mailData.url, {
//@ts-ignore
body: formBody,
headers: headers,
ja3: this.ja3,
userAgent: this.userAgent,
proxy: this.proxy,
disableRedirect: true
})
same issue
I use the form-data lib then the error gone, and another came on
The request will always pending without any response or reject