REPL not waking up

Problem description:
I am coding for a discord bot, when i manually run the but it works fine, but when i tried to run through the web view it shows the following screen again and again:

Expected behavior:
Since code has 0 errors, REPL should load and work perfectly fine.

Actual behavior:
REPL is not waking up!

Bug appears at this link:

OS: Windows 11
Device (Android, iOS, n/a leave blank): HP pc
Plan (Free, Hacker, Pro Plan):

Hey, @DikshaSharma25 welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

1 Like

@DikshaSharma25 Can you try clicking the reload button, and press the CTRL key at the same time? Don’t let go of the CTRL key until the page has fully loaded.
Could you tell me if this works or not?

@DikshaSharma25 If none of the above ideas work, could you fork the repl and see if the forked version works?
It generally works for people.
Hope this helps!

here is the link

in the forked version i can’t even see the webview option

It tells me that the repl is not found…

Can you try running the forked version?

try this pls, i have kept repl on public now

there is no web view option in forked repl

So it doesn’t run?
The Webview will appear when you run it.

no it didnt appear on running

Hi @DikshaSharma25 , I don’t see a HTML file, I believe that is the problem.
You also don’t have a framework like Django or Flask, so I don’t know how the frontend will run.

i have added a file which uses flask to run the bot.
here’s the code:

from flask import Flask
from threading import Thread

app = Flask('app')
def run():'', port=8080)

def keep_alive():
  t = Thread(target=run)

what else should i do, kindly guide

You still need a HTML file so that the user can see something when in the website.

alright, can you kindly provide a sample code for reference, i just need to get a web link for this bot

To do that, I need to first understand what you want to be shown to the user.
The repl has many files and images, so could you tell me what should be shown to the users?
Note that this may take a long time.

Routes don’t work like that, try this:

def main():
  return "Alive"
def run():'', port=8080)

Also make sure you’re not running a pinger inside your Repl, as that has no real effect.


Why would you suggest they make a bounty? They just needed a bit of code help AFAICT.

Why? They don’t even need HTML files for the code to work.

1 Like