Webview is not working

Bug description:
Webview is not working for any of the students but the link is working in a browser tab. The project were copied from a class from last year.

Expected vs Current Behavior:
webview should work - webview isn’t working

Steps to reproduce:
open any student project in project 005 in the @CP1-Period-1-Fall-2023 class and try to run webview.

Bug appears at this link: https://replit.com/@CP1-Period-1-Fall-2023/004-Hello-World-2-Inline-CSS-StephenKeller1#index.html

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/116.0.1938.69

Replit Profile: https://replit.com/@MichaelOlenick

Hi @MichaelOlenick , welcome to the forums!
As your repls are in a team, we can’t access it.
Could you show us a screenshot or a screen recording of the issue?


Hi @MichaelOlenick !
I believe the problem is because the name of the repl is too long.
Could you try shortening it and tell me if it works?

1 Like

Yes, this is the issue. DNS subdomains can each only be 63 characters long, and 004-hello-world-2-inline-css-stephenkeller1--cp1-period-1-fall-2023 is 67. The webview by default uses the repl-name--username format because it works for more accounts. Instead, try opening https://004-hello-world-2-inline-css-stephenkeller1.cp1-period-1-fall-2023.repl.co/ (which uses the repl-name.username format) in a new browser tab

1 Like