I am facing 2 issues. when i try to run the code sometimes its gives me below error:
There was an error connecting to the serve bla bla.
When diagnose and try again, it works for a second, like it shows the display for a second and then black screen comes
Where are you “running” it? Can you also please send your Repl link if your Repl is public?
To share your code with others, you can simply link to your repl or paste and format the code into your post!
Linking to a repl
The easiest way to share your code is by linking to your repl. You can find the link by clicking on your repl title, clicking on Cover page, and clicking the button to copy the URL.
NOTE: only share repl join links or use the invite button with people you trust!
Sharing short code samples
Share a snippet of your code by wrapping it in backti…
1 Like
Thanks for the reply. this is the link https://replit.com/@fahmad1/square#main.py
now it shows the fig on ouput for a second then goes dark screen.
I’d recommend putting t.mainloop()
instead of input()
at the end (but both should have the same effect).
And whenever you get the Output error, try clicking Try again a few times while the program is running.
2 Likes
Thanks it worked beautifully.
However how about the other error regarding diagnosis …
What other error?
Note that the link in the Diagnosis section is outdated so don’t worry about it.
The “There was an error connecting to the server” error in this case just happens randomly, usually when your repl disconnects or boots up.
1 Like
thanks mate. Do you think they are are going to resolve dark screen issue?
@NuclearPasta0 now continuously I’m seeing this error from last 15 mins.
If you are on a different network, you might see the error.
If you are on the same network, and clicking Try again while the program is running didn’t work, I am not sure what could cause this. You should also trying forking.
Perhaps the output was unblocked before but now it’s blocked.
today its working fine :). Thanks