M
M
mordin2020-01-04 22:09:50
Flask
mordin, 2020-01-04 22:09:50

How to remove Internal Server Error when running page in Flask?

Hello. A 500 Internal Server Error occurs when navigating to the /search4 page. It seems that the module was created and imported according to the instructions from the book, but the error still exists.

from flask import Flask
from vsearch import search4letters

app = Flask(__name__)

@app.route('/')
def hello() -> str:
    return 'Hello world from Flask!'
@app.route('/search4')
def do_search() -> str:
    return str(search4letters('life, the universe, and everything', 'eiru,!'))

app.run()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-01-04
@mordin

logs

str(search4letters('life, the universe, and everything', 'eiru,!'))
check what is returned

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question