W
W
Wolf_Yout2022-03-14 14:48:31
Flask
Wolf_Yout, 2022-03-14 14:48:31

BAD_REQUEST what to do?

The code:

from threading import Thread
from flask import Flask, render_template

@app.route("/")
def _hello():
    return render_template("hello.html", bot_name = bot.user.name)

    
def run():
    app.run(host='0.0.0.0', port=8080)

server = Thread(target=run)
server.start()
bot.run(BOT["token"])

Code in hello.html:
<html>
    <head>
        <title>wBot - Бот с высокими технологиями!</title>
        <link rel="stylesheet" href="stylehel.css">
    </head>
    <body>
        <h1>{{ bot_name }}</h1>
        <br>
        <b>Приветствует вас!</b>
        <br>
        <b>Что умеет этот бот?</b>
        <br>
        <b>Пока что, этот бот только умеет музыку воспроизводить, но за то он хоть с какой то DASHBOARD панелью!</b>
        <button><a href="">Добавить</a></button>
        <button><a href="">Перейти в DASHBOARD</a></button>
    </body>
</html>

Everything starts, but when you try to enter the site, such a miracle occurs (2 screenshots)
622f2b56d1861955103458.png
622f2b7b75137440152770.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2022-03-14
@Wolf_Yout

It looks like you are trying to access the site using http s instead of http.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question