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

FormData issoe #337

Open
miawue opened this issue Apr 10, 2024 · 2 comments
Open

FormData issoe #337

miawue opened this issue Apr 10, 2024 · 2 comments
Assignees
Labels
triage This ticket will be looked at shortly

Comments

@miawue
Copy link

miawue commented Apr 10, 2024

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 miawue added the triage This ticket will be looked at shortly label Apr 10, 2024
@miawue
Copy link
Author

miawue commented Apr 10, 2024

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

@3lang3
Copy link

3lang3 commented Aug 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage This ticket will be looked at shortly
Projects
None yet
Development

No branches or pull requests

3 participants