I ran this demo on a remote server, so the host name I used was different from localhost. Therefore I got an Error 102: Connection Refused because no server was running on localhost. The demo failed on this error, and the Submit button would remain disabled until refreshing the page.
Error Screenshot:
Solution:
If the error has no response property, fill it with response.status and response.statusText. I chose Status 102 because that is the error I was getting, however Status 102 is not explicitly linked to Failure to fetch.
Problem:
I ran this demo on a remote server, so the host name I used was different from
localhost
. Therefore I got anError 102: Connection Refused
because no server was running onlocalhost
. The demo failed on this error, and the Submit button would remaindisabled
until refreshing the page.Error Screenshot:
Solution:
If the error has no
response
property, fill it withresponse.status
andresponse.statusText
. I choseStatus 102
because that is the error I was getting, howeverStatus 102
is not explicitly linked toFailure to fetch
.