Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Page is ut, but a call to the API gives error code 500 #19

Open
ErlendFax opened this issue Sep 24, 2018 · 1 comment
Open

Page is ut, but a call to the API gives error code 500 #19

ErlendFax opened this issue Sep 24, 2018 · 1 comment

Comments

@ErlendFax
Copy link

ErlendFax commented Sep 24, 2018

Everything seems fine when I access my python app on this link:
http://funcmandag.azurewebsites.net/

However, when I curl this in terminal:
curl http://funcmandag.azurewebsites.net/api/HttpTriggerJS1?name=erlend
it returns nothing. When I paste it in the browser it gives me http error code 500.

Has anyone else experienced this?

The exact same thing happens locally:
http://localhost:8080/api/HttpTriggerJS1?name=erlend

@ErlendFax
Copy link
Author

Wrong microsoft/azure-function runtime image from Docker Hub caused the error of the creation of the functions, it should (for now) be: FROM microsoft/azure-functions-python3.6:v2.0.11961-alpha

Also, when calling the http api one should use: curl http://myFunc.azurewebsites.net/api/HttpTrigger?name=erlend and NOT: curl http://myFunc.azurewebsites.net/api/HttpTriggerJS1?name=erlend

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

No branches or pull requests

1 participant