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
I use insomnia/postman for http request. I copied one of my POST request and exported it as curl command from insomnia.
The structure of the generated curl command is given above.
Input for this curl command breaks the uncurl tool.
Specifically --request, --url are causing some trouble.
/.venv/bin/uncurl "curl --request POST
--url http://localhost:8080/customer
--header 'Content-Type: application/json'
--data '{
"customer": {
"customer_id": "1",
"customer_type": "regular"
}
}'"
usage: uncurl [-h] [-d DATA] [-b DATA_BINARY] [-X X] [-H HEADER] [--compressed] [-k] [--user USER] [-i] [-s] command url
uncurl: error: unrecognized arguments: --request --url http://localhost:8080/customer
The text was updated successfully, but these errors were encountered: