Problem description:
I am using flask to make a community chat app, so when click run it and go to the web page, it says that ** Run this Repl to see the results here.**, also says to go back to replit to run it and when I run it in replit, it kicks me back to the same place where enter a value, I actually use authentication which i need it.
Expected behavior:
It Should show the output
Actual behavior:
It isn’t showing the output
Steps to reproduce:
Bug appears at this link:
https://day86100days.sreehanadigopul.repl.co/
Browser/OS/Device:
Browser
Hey @SreehanAdigopul, welcome to the community!
I cannot reproduce this issue. The only error I’m getting is:
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Yes as @QwertyQwerty88 said
It is showing this
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Add the server to remove the error or add the url in the flask like this
@app.route('/naughty')
#your code here
seems like you’re not adding replit auth. You basically check if request.headers['X-Replit-User-Name']
is equal to ""
and if so, then you return the login page. Just BTW, this is the HTML code
<div>
<script
authed="location.reload()"
src="https://auth.util.repl.co/script.js"
></script>
</div>
2 Likes