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

Application API Demo Error on Heroku #2

Closed
gaetan1903 opened this issue Jul 25, 2021 · 1 comment
Closed

Application API Demo Error on Heroku #2

gaetan1903 opened this issue Jul 25, 2021 · 1 comment

Comments

@gaetan1903
Copy link

gaetan1903 commented Jul 25, 2021

import requests
url = "https://plant-disease-detector-pytorch.herokuapp.com/"
#imgdata = base64 string of image
r = requests.post(url,json = {"image":imgdata})
print(r.text.strip())

'\n\t\n\t \n\t\t\n\t\t\n\t\t<title>Application Error</title>\n\t\t<style media="screen">\n\t\t html,body,iframe {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t }\n\t\t html,body {\n\t\t\theight: 100%;\n\t\t\toverflow: hidden;\n\t\t }\n\t\t iframe {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tborder: 0;\n\t\t }\n\t\t</style>\n\t \n\t \n\t\t<iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>\n\t \n\t'

With 503 Error

@nandakishormpai
Copy link
Owner

Thank you, Gaetan for raising the issue. There was some issue from the deployment side with Heroku and flask and it has been fixed. I hope you can get results if you try accessing the API with the base64 string of the image as imgdata. Let me know if there are any more issues. Thanks a lot for bringing this to my attention and sorry for the late reply.

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