title: TypeError: Cannot read property 'hasOwnProperty' of undefined
body: <p>I am making a node app that uses the npm library <a href="https://www.npmjs.com/package/mojangjs" rel="nofollow noreferrer">MojangJS</a> to get the uuid of a Minecraft account from the account username. However, whenever this code segment is run, I get this error: <code>MojangJS Error: TypeError: Cannot read property 'hasOwnProperty' of undefined</code>.</p>
  <pre><code>let id;
  await mojangjs.getUUID(usernameParts[1]).then(uuid =&gt; {
      id = uuid;
  }).catch(err =&gt; console.error(err));
  </code></pre>