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

500 response: cannot access data #23

Open
romainsacchi opened this issue Sep 27, 2016 · 0 comments
Open

500 response: cannot access data #23

romainsacchi opened this issue Sep 27, 2016 · 0 comments

Comments

@romainsacchi
Copy link

Hello,
after many attempts, my POST request to retrieve data keeps failing and returns a 500 error.

Example: a data request from the trade matrix (TM), for import in value of Apricots from France to Belgium in 2013, using Python's Requests.

inputs = {'datasource':'production', 'lang':'en', 'output_type':'objects', 'domain_code':'TM','List1Codes':'255', 'List2Codes':'68','List3Codes':'2620','List4Codes':'526', 'List5Codes':'2013', 'thousand_separator':',', 'decimal_separator':'.','decimal_places':'2','limit':'10'}

r = requests.post('http://fenixapps2.fao.org/api/v1.0/en/data', params=inputs)

This returns an error 500. It is to note that all the other GET requests are sucessful.

Thank you for your help.
Best regards, Romain

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