#API Flask POST 'GET / HTTP/1.1 404'

1 messages · Page 1 of 1 (latest)

olive bridge
#

First, welcome! We don't see a lot of totally offpic requests for help, but I'm happy to (try) and help...

Where are your / and /favicon.ico routes?

old sphinx
#

i don't know if i understand your question, english is not my first langage but i think you mean the IP ?? it's 192.168.14.185. i connect my esp32 and my computer on my phone (hotspot)

olive bridge
#

Well, i'm not sure exactly what app5 is. I do however recognize that you've attached a Flask application. The error you mention is because the flask app itself doesn't have the root index route or a favicon route. You've got somethign that's pinging your flask app for those 2 URLs and it's responding with that error since it doesn't have it.

See the flask docs here:
https://flask.palletsprojects.com/en/stable/patterns/favicon/

and the index route might be something like:

@app.route('/')
def index():
    return "Hello, World!"
old sphinx
#

oooh okay thank you i'll search !! mini update i don't have a 404 for '/' but for falcon i still have it but it's not complicated i will found a way in the link you send to me thank you for helping me

olive bridge
#

Can i ask a question? I'm happy to help on anything we can, but how'd you land in the Litestar discord?

#

this looks like small/embedded device programming (which looks cool!)

old sphinx
#

Oooh i was deseperate for an answer soo i tap APi flask in the discovery Android i found your discord