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

The HTTP request nod, importing the curl code is incomplete #12390

Open
xhzkp opened this issue Dec 28, 2024 · 1 comment
Open

The HTTP request nod, importing the curl code is incomplete #12390

xhzkp opened this issue Dec 28, 2024 · 1 comment
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@xhzkp
Copy link

xhzkp commented Dec 28, 2024

Bug Description

When I import the curl code into the HTTP request node, the generated result is incomplete.

bug.mp4
curl --location --request POST 'https://aip.baidubce.com/rest/2.0/ocr/v1/idcard?access_token=g8twCmCbr6d0e0kqOBL2t' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--data-urlencode 'id_card_side=front' \
--data-urlencode 'image=/9j/4AAQSkZJRgABAQEBLAEsAAD/tN+dMR//9k=' \
--data-urlencode 'detect_ps=false' \
--data-urlencode 'detect_risk=false' \
--data-urlencode 'detect_quality=false' \
--data-urlencode 'detect_photo=false' \
--data-urlencode 'detect_card=false' \
--data-urlencode 'detect_direction=false'

To Reproduce

  1. copy code
  2. import

Expected behavior

The POST data fields should be complete; otherwise, they need to be created manually, which can be somewhat cumbersome.

Operating System

n8n cloud

n8n Version

1.73.1

Node.js Version

20.18.0

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Dec 28, 2024

Hey @xhzkp,

We have created an internal ticket to look into this which we will be tracking as "N8N-8015"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants