Open vvasuki opened 6 years ago
Can you post full request dumps for the failing requests, both through cURL and Chrome?
On chrome:
Curl request:
curl -X GET --header 'Accept: application/json' 'https://api.vedavaapi.org/py/ullekhanam/v1/schemas'
Reproducible with cURL:
curl -v --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' 'https://api.vedavaapi.org/py/ullekhanam/v1/schemas' -o /dev/null
Probably something in the Accept
header is being parsed badly?
I am not doing any header parsing at all...
Oh I didn't mean to imply that you were parsing it badly, just that something is, sorry! 😅
I bet it's somewhere in Flask/RestPlus.
We're faced with a very weird issue, reproducible with our code - https://github.com/vedavaapi/vedavaapi_py_api/issues/3 (README and setup script in the same repo).
Observations:
I was unable to figure this out. Appreciate investigation and pointers.
I have checked against the latest flask restplus version as of this moment, having run:
sudo pip3 install -U flask-restplus
before testing on my local machine. EDIT: I also tried after the below: