"Failed to Fetch" error upon solidity contract deployment

Question:
How do I solve the issue of a “failed to fetch” error being thrown whenever I try to deploy a solidity contract?

I tried deploying one of the provided sample contracts just to check and it still throws the error. Also tried clearing cookies etc. (all the suggestions from ghostwriter i tried essentially).

Repl link/Link to where the bug appears:
Its occurring even on the example templates for me

Screenshots, links, or other helpful context:

Screenshot 2023-08-10 at 14.44.11

code snippet