title: TypeError: First argument must be a string or Buffer. Javascript
body: <pre><code>var formData = {
    name: 'TestDeck',
    description: 'This is a test deck for my api',
    private: false,
    shareable: false,
    ttsLanguages: [],
    blacklistedSideIndices: [],
    blacklistedQuestionTypes: [],
    gradingModes: [],
    imageAttribution: 'https://www.logogarden.com/wp-content/uploads/lg-index/Example-Logo-6.jpg',
    imageFile: fs.readFile('retext.png', 'utf8')
  }
  
  function createDeck(connection) {
    request.post({
        url: '&lt;url&gt;',
        formData: formData,
        headers: {
          'Content-Type': 'multipart/form-data'
        },
        json: true
      }),
      function(err, resp, body) {
  
      }
  }
  </code></pre>
  
  <p>I am getting the error: TypeError: First argument must be a string or Buffer.</p>
  
  <p>I honestly have no idea why, need help.</p>