title: How to fix "Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0" ERROR
body: <p>When i try to fetch data from api(<a href="https://openweathermap.org/" rel="nofollow noreferrer">https://openweathermap.org/</a>) i get this error.
  Uncaught (in promise) SyntaxError: Unexpected token &lt; in JSON at position 0</p>
  
  <p>this is my code.</p>
  
  <pre><code>import React from 'react';
  
  import './App.css';
  
  import Weather from "./components/Weather"
  import 'bootstrap/dist/css/bootstrap.min.css'
  import 'weather-icons/css/weather-icons.css'
  
  const Api_Key="079b76b390ad70c628a14a9a141e5992";
  
  class App extends React.Component {
  
      constructor(){
          super();
          this.state={};
          this.getWeather();
      }
  
      getWeather= async ()=&gt;{
          const api_call = await fetch(
              `api.openweathermap.org/data/2.5/weather?q=London,uk&amp;appid=${Api_Key}`,
          );
  
          const data = await api_call.json();
  
          console.log(data);
      }
  
      render()
      {
          return (
              &lt;div className="App"&gt;
                  &lt;Weather/&gt;
              &lt;/div&gt;
          )
      }
  
  }
  export default App;
  
  </code></pre>
  
  <p>thanks!</p>