Services Plugins FAQs

Error trying to use Air Twitter API Lite

Hello, mi name is John.

I’m using the Air Twitter API Lite to let my users login using twitter/X. I tried to setup the plugin following all the instructions in docs.zeroqode(dot)com/plugins/air-twitter-api-lite, but when testing I get an error in the first step “Twitter: Get tokens” and I can’t do anything else… and I don’t know how to read the error to know what’s wrong :frowning: this is the error:

Plugin action Twitter: Get tokens error:
Error: 403 - Forbidden
at eval (eval at build_function (/var/task/util/util_harness.js:37:12), :84:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /var/task/plugin_api_v4_alpha.js:198:29
at async harness (/var/task/harness.js:115:15)
at async /var/task/harness.js:154:64
at async withGlobalHandlers (/var/task/harness.js:66:10)
at async Runtime.myHandler [as handler] (/var/task/harness.js:154:10)

Any help on how to fix this would be greatly appreciated. Thank you!

1 Like

Hello @autotip.autos,

Thank you for reaching out to us.

The “Error: 403 - Forbidden” you encountered during the OAuth authentication process suggests that the server is rejecting your request. Here are a few potential causes and steps to troubleshoot this issue:

  • Invalid Consumer Key/Secret: Please ensure that the consumerPublic and consumerSecret you provided are correct. These credentials must be valid and authorized by Twitter to access its API.
  • Callback URL Issues: Your Step 1: callback_url from the Get tokens action must be permitted in the Twitter app settings. Ensure that the URL you provided matches one of the callback URLs registered in your Twitter application settings on the developer portal.
  • Data Mismatch in Authorization: The oauth_token and oauth_verifier used in the second and third stepa must exactly match the tokens received from the first step (request token). Any modification or mismatch can lead to a 403 error.

For additional troubleshooting, please visit our demo page editor: Zeroqode-demo-20 | Bubble Editor to see how the workflow is constructed, and feel free to preview and test it using your X account.

We hope this information proves useful. Please take your time to verify everything and double-check all credentials and tokens for typos or errors.

Should you have any further questions, please let us know.

Wishing you a great day ahead.

Best regards,
Stefan

Hi @Stephan,

Thanks for your answer! I was able to fix everything by following the steps in zeroqode-demo-20.

The documentation I was reading first (docs.zeroqode(dot)com/plugins/air-twitter-api-lite), in the “Get Tokens” step, had the URL needed as “thisurl:formatted as URL”, but the demo page used only “thisurl”. That’s the only thing I needed to change. The documentation might be out of date?.

Thanks again!

1 Like

Hello @autotip.autos,

Thank you for your message and update.

It’s great to hear that you’ve identified the cause of the error and everything is functioning smoothly now. Regarding the documentation, I have reviewed it and you’re correct—only “ThisURL” should be listed in the Step 1, not “ThisURL: formatted as url”. We’ll update the documentation accordingly to avoid any confusion in the future. Thank you for bringing this to our attention. :pray:

If you have any more questions or need further assistance, please don’t hesitate to reach out.

Thanks again, and have a wonderful day ahead!

Best regards,
Stefan