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
  Server Error with parse_args() using Flask NoNameoN 0 1,063 Jul-30-2022, 09:42 AM
Last Post: NoNameoN
  [split] Flask OSError: [Errno 98] Address already in use venkateshbalagiri 9 4,610 Dec-09-2021, 05:05 PM
Last Post: venkateshbalagiri
  Error updating one to many relationship in Flask/ SQLAlchemy atindra 0 3,300 Apr-15-2021, 10:29 PM
Last Post: atindra
Question Flask, Self-hosted deployment, which server ? SpongeB0B 1 2,959 Apr-11-2021, 11:29 AM
Last Post: snippsat
  TemplateNotFound error with flask Veztar 4 18,561 Aug-28-2020, 07:02 AM
Last Post: Veztar
  Flask Ubuntu Server Not Running Wheel 0 1,978 Jul-14-2020, 08:12 PM
Last Post: Wheel
  Running flask run produces error. Charles1 1 4,028 Oct-04-2019, 10:38 PM
Last Post: snippsat
  [Flask] html error 405 SheeppOSU 0 2,319 Jun-08-2019, 04:42 PM
Last Post: SheeppOSU
  [flask] mail.send giving error SheeppOSU 2 2,829 May-31-2019, 09:31 PM
Last Post: SheeppOSU
  About Error (Flask) bescf 1 2,624 Mar-20-2019, 08:18 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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