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

Reqparse cannot parse_args() while flask run in venv #938

Open
tanjeetsarkar opened this issue Apr 1, 2022 · 1 comment
Open

Reqparse cannot parse_args() while flask run in venv #938

tanjeetsarkar opened this issue Apr 1, 2022 · 1 comment

Comments

@tanjeetsarkar
Copy link

  1. Using Api
  2. in extended Resourse class.
  3. In any kind of request (post,get,...)
  4. add_argument("name", type=str, required=true, help=' ') runs properly creating object.

once these steps are done parse_args() doesn't work and we get no error but with a response

{'message': 'request header type not application/json'}

This only happens while flask run in venv. when venv deactivated it runs properly.

@davidism
Copy link

davidism commented Apr 7, 2022

Duplicate of #936

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

2 participants