Python Forum
[split] flask 500 internal server error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] flask 500 internal server error
#1
I copy pasted the code to create a minimal application from the FLASK docs .
from flask import Flask

app =Flask(__name__)

@app.route('/')
def home():
	return "hello"

if __name__ == '__main__':
		app.run()	
I get the 500 internal server error for this . Pls help me !
Yoriz write Nov-09-2021, 06:31 PM:
Please don't add your question to old threads, create one of your own threads in future posts.
I have moved your question into its own thread.
Reply
#2
Im extremely sorry i didnt know this ...Im new to this forum ..extremely sorry for the convenience
Reply
#3
Can you show (or explain) how you're getting the 500? I copied the code as is, ran it, navigated to localhost:5000 in my browser and I got the expected response (a 200 with "hello" in the body).
Reply
#4
(Nov-10-2021, 08:48 AM)ndc85430 Wrote: Can you show (or explain) how you're getting the 500? I copied the code as-is, ran it, navigated to localhost:5000 in my browser and I got the expected response (a 200 with "hello" in the body).
I guess there was some problem with the server itself.I tried back in the morning and the same piece of code worked perfectly as expected :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Flask OSError: [Errno 98] Address already in use venkateshbalagiri 9 910 Dec-09-2021, 05:05 PM
Last Post: venkateshbalagiri
  Error updating one to many relationship in Flask/ SQLAlchemy atindra 0 1,532 Apr-15-2021, 10:29 PM
Last Post: atindra
Question Flask, Self-hosted deployment, which server ? SpongeB0B 1 915 Apr-11-2021, 11:29 AM
Last Post: snippsat
  TemplateNotFound error with flask Veztar 4 4,289 Aug-28-2020, 07:02 AM
Last Post: Veztar
  Flask Ubuntu Server Not Running Wheel 0 894 Jul-14-2020, 08:12 PM
Last Post: Wheel
  Running flask run produces error. Charles1 1 2,611 Oct-04-2019, 10:38 PM
Last Post: snippsat
  [Flask] html error 405 SheeppOSU 0 1,305 Jun-08-2019, 04:42 PM
Last Post: SheeppOSU
  [flask] mail.send giving error SheeppOSU 2 1,448 May-31-2019, 09:31 PM
Last Post: SheeppOSU
  About Error (Flask) bescf 1 1,624 Mar-20-2019, 08:18 PM
Last Post: nilamo
  Flask Error-Could not build url for endpoint 'index'. Did you forget to specify value Prince_Bhatia 0 7,933 Feb-25-2019, 05:52 AM
Last Post: Prince_Bhatia

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020