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

unrecognized arguments: --request --url #48

Open
yogidevendra opened this issue Jul 26, 2021 · 2 comments
Open

unrecognized arguments: --request --url #48

yogidevendra opened this issue Jul 26, 2021 · 2 comments

Comments

@yogidevendra
Copy link

/.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

@yogidevendra
Copy link
Author

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.

Tried on version 0.0.11

@yogidevendra
Copy link
Author

Also tried with python code instead of CLI.
It had similar behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant