Webview Says "Not Found" When Code is Run

Question: Why does my website not show when I run my code? I forked and ran my code from another replit account, but when I tried in my account I got the screen that can be seen in the screenshot below.

Repl link/Link to where the bug appears:
https://44ef96c1-81cd-461d-8eb6-248e22f0cc12-00-nn281a8nfwmp.picard.replit.dev/srcdoc

Screenshots, links, or other helpful context:

code snippet

This is a bug. I’ve noticed it a lot too. Just press Run again and maybe refresh the webview. If that doesn’t work then change “srcdoc” to “/” (without the quotes).

3 Likes

@BaileyWilliams6 May I ask for the Repl where you forked this from? I’d like to try and reproduce, and perhaps fix this in the future if we can.

Here’s the replit link: https://replit.com/@BaileyWilliams6/Bailey-Williams-Light-and-Sound-Game-1#README.md

Thanks in Advance,
Bailey Williams

It is not Repl-based. When you do some actions in a specific order it causes a glitch where it leaks srcdoc into the value of the URL.

1 Like

Make a topic in Bug Reports, then?

Yeah but it was too rare and nobody else is making a topic despite acknowledging it.

Delete srcdoc and press enter, or you can try going to the output tab rather than webview. Remember to run the repl and make sure there are no errors

hey i have that glitch too, in one of my websites

@boston2029 Yeah, I can’t reproduce it even with forking this Repl. I think I’ve seen it some time ago but I am not sure what I did. I’d sure like to figure out what triggers it.

1 Like