Server Error - 500 Internal Server ERROR

Hello,

I having an issue completely a project that require to use “plostman” and “Python”. I’m completely new to this things. The course is on “udemy.com”.

The course is about how to create a blockchain. After following every single step form Udemy, i have copied the entire “Blockchain.py” into my console then pressed start.

It gave me the following:

Then the course ask me to finally jumped on “Postman”. request the GET and the entering the request URL from “QUICKSTART”: http://127.0.0.1:5000/

and adding to the url: get_chain.

After sending the request, i get the following message.

500 Internal Server Error

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or

there is an error in the application.</p>

Can someone please help?

I believe you may need to add the following line to the code.

app = Flask(name) #This line will be already present in your code, just add the below line & check.
app.config[‘JSONIFY_PRETTYPRINT_REGULAR’] = False

It worked for me!
Thank you!
if you can find the time, why does this problem occur?