title: Why do 'callback' and 'tweet' fail in my Twitter GPT-3 OpenAI bot?
body: <p>I am trying to develop a Twitter bot using OpenAI gpt-3 library, following <a href="https://www.youtube.com/watch?v=V7LEihbOv3Y&amp;t=1s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=V7LEihbOv3Y&amp;t=1s</a> this tutorial.</p>
  <p>I am getting this same error again and again.
  <a href="https://i.stack.imgur.com/cT9lZ.png" rel="nofollow noreferrer">I clicked on AUTH link and authorized the bot. When I clicked on the other two links, I got this error.</a>
  I have recently got Elevated access for my Twitter bot and hence, tried using this bot again.</p>
  <p>What should I do?
  Please help, thank you.</p>
  <p>Code :-</p>
  <pre><code>=== Serving from '/Users/tanmayjuneja/Documents/demos/twitterbot'...
  
  ⚠  Your requested &quot;node&quot; version &quot;16&quot; doesn't match your global version &quot;12&quot;. Using node@12 from host.
  i  functions: Watching &quot;/Users/tanmayjuneja/Documents/demos/twitterbot/functions&quot; for Cloud Functions...
  ✔  functions[us-central1-auth]: http function initialized (http://localhost:5000/twitterbot-e8123/us-central1/auth).
  ✔  functions[us-central1-callback]: http function initialized (http://localhost:5000/twitterbot-e8123/us-central1/callback).
  ✔  functions[us-central1-tweet]: http function initialized (http://localhost:5000/twitterbot-e8123/us-central1/tweet).
  ⚠  functions: The Cloud Firestore emulator is not running, so calls to Firestore will affect production.
  i  functions: Beginning execution of &quot;auth&quot;
  ⚠  Google API requested!
     - URL: &quot;https://oauth2.googleapis.com/token&quot;
     - Be careful, this may be a production service.
  i  functions: Finished &quot;auth&quot; in ~1s
  i  functions: Beginning execution of &quot;callback&quot;
  ⚠  Google API requested!
     - URL: &quot;https://oauth2.googleapis.com/token&quot;
     - Be careful, this may be a production service.
  i  functions: Finished &quot;callback&quot; in ~3s
  i  functions: Beginning execution of &quot;callback&quot;
  ⚠  functions: Error: Request failed with code 400
      at RequestHandlerHelper.createResponseError (/Users/tanmayjuneja/Documents/demos/twitterbot/functions/node_modules/twitter-api-v2/dist/client-mixins/request-handler.helper.js:103:16)
      at RequestHandlerHelper.onResponseEndHandler (/Users/tanmayjuneja/Documents/demos/twitterbot/functions/node_modules/twitter-api-v2/dist/client-mixins/request-handler.helper.js:252:25)
      at Gunzip.emit (events.js:327:22)
      at endReadableNT (_stream_readable.js:1221:12)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)
  ⚠  Your function was killed because it raised an unhandled error.
  i  functions: Beginning execution of &quot;tweet&quot;
  ⚠  Google API requested!
     - URL: &quot;https://oauth2.googleapis.com/token&quot;
     - Be careful, this may be a production service.
  ⚠  functions: Error: Request failed with status code 400
      at createError (/Users/tanmayjuneja/Documents/demos/twitterbot/functions/node_modules/axios/lib/core/createError.js:16:15)
      at settle (/Users/tanmayjuneja/Documents/demos/twitterbot/functions/node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (/Users/tanmayjuneja/Documents/demos/twitterbot/functions/node_modules/axios/lib/adapters/http.js:322:11)
      at IncomingMessage.emit (events.js:327:22)
      at endReadableNT (_stream_readable.js:1221:12)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)
  ⚠  Your function was killed because it raised an unhandled error.
  </code></pre>