title: TypeError: Cannot read property 'url' of undefined at got.then.res
body: <p>I played around with a package called instagram-profile-picture.</p>
  
  <p>This is the code i used, straight from the npm website examples:</p>
  
  <pre><code>const ipp = require('instagram-profile-picture');
  
  ipp('9gag').then(user =&gt; {
    console.log(user);
    // =&gt; https://scontent-sit4-1.cdninstagram.com/7...jpg
  });
  </code></pre>
  
  <p>This used to work a couple days ago that i tested it.</p>
  
  <p>Now, suddenly i get this error:</p>
  
  <pre><code>(node:1820) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'u
  rl' of undefined
      at got.then.res (C:\Users\User1\Desktop\testing npm\node_modules\insta
  gram-profile-picture\index.js:15:49)
      at &lt;anonymous&gt;
      at process._tickCallback (internal/process/next_tick.js:188:7)
  (node:1820) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
  error originated either by throwing inside of an async function without a catch
  block, or by rejecting a promise which was not handled with .catch(). (rejection
   id: 1)
  (node:1820) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
  cated. In the future, promise rejections that are not handled will terminate the
   Node.js process with a non-zero exit code.
  </code></pre>
  
  <p>It is very weird because i changed nothing in the code.</p>
  
  <p>So i tried a new installation</p>
  
  <pre><code>npm init -&gt; npm install instagram-profile-picture
  </code></pre>
  
  <p>then the same code i posted previously and i still get the same error straight from the npm example.</p>