net::ERR_CONNECTION_RESET, Uncaught (in promise) TypeError: Failed to fetch

Viewed 1073

I'm new to JavaScript and it's my first time ever using an API. so I was trying to fetch the MetaWeather API that's how I did it

fetch('https://crossorigin.me/https://www.metaweather.com/api/location/2487956/');
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Asynchronous JavaScript</title>
</head>
<body>
    <h1>Asynchronous JavaScript</h1>

</body>
</html>    

I get those two errors and I really don't understand why.

asynchronous.html:101 GET https://crossorigin.me/https://www.metaweather.com/api/location/2487956/ net::ERR_CONNECTION_RESET (anonymous) @ asynchronous.html:101 asynchronous.html:1 Uncaught (in promise) TypeError: Failed to fetch

1 Answers
Related