CycleTLS icon indicating copy to clipboard operation
CycleTLS copied to clipboard

FormData issoe

Open miawue opened this issue 1 year ago • 2 comments

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

miawue avatar Apr 10 '24 21:04 miawue

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
      })

miawue avatar Apr 10 '24 22:04 miawue

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

3lang3 avatar Aug 16 '24 07:08 3lang3