title: how to troubleshoot using the node.js GOT http request library?
body: <p>I have some code using GOT querying a graphQL endpoint:</p>
  
  <pre><code>// set up params for call to weather cache 
      const queryQL = `
        query weather {
          weather(where: {idLatLong: {_eq: "${latLong}"}}) {
            id
            idLatLong
            updated_at
            lat
            long
            requestedByUserId
            data
            created_at
          }
        }
      `
      const query = {query: queryQL};
      const options = {
        headers: {
          'X-Hasura-Admin-Secret': process.env.HASURA_KEY
        },
        responseType: 'json'
      }
  
      // see if there's an existing record for the lat long
      try {
        const response = await got.post(process.env.GQL_ENDPOINT, query, options);
        console.log('query weather hasura');
        console.log(response.body);
      } catch(error) {
        console.log(error);
      } 
  
  </code></pre>
  
  <p>I am getting a response from Hasura <code>{"errors":[{"extensions":{"path":"$","code":"invalid-headers"},"message":"Missing Authorization header in JWT authentication mode"}]}</code></p>
  
  <p>How do I see what GOT is sending out to the GQL endpoint? FYI, this call works fine in the GQL console and also in Postman. </p>