# During oauth - RangeError: Invalid key length / Request failed with status code 400

**URL:** <https://devforum.zoom.us/t/during-oauth-rangeerror-invalid-key-length-request-failed-with-status-code-400/95107>\
**Category:** Meetings\
**Created:** [September 14, 2023, 11:35am UTC](https://devforum.zoom.us/t/during-oauth-rangeerror-invalid-key-length-request-failed-with-status-code-400/95107 "2023-09-14T11:35:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![g665](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@g665](https://devforum.zoom.us/u/g665)\
**Post date:** [September 14, 2023, 11:35am UTC](https://devforum.zoom.us/t/during-oauth-rangeerror-invalid-key-length-request-failed-with-status-code-400/95107/1 "2023-09-14T11:35:10Z")

</div>

When trying to authenticate on first run of the user-level-oauth-starter (from github)  
after configuring the zoom app and the local environment by the instructions, I’m getting the following errors:  
When using the authorization url (or “add to zoom” button):  
[https://2715-147-235-206-15.ngrok.io/?code=R14J8shbegzTAfzG0DiQIGMsRCcBYHyxw](https://2715-147-235-206-15.ngrok.io/?code=R14J8shbegzTAfzG0DiQIGMsRCcBYHyxw)  
{“message”:“Request failed with status code 400”}

When going to localhost:8000 I get redirected to the zoom oauth consent page, and after approval:  
[https://2715-147-235-206-15.ngrok.io/?code=rdkdKc77f3hxlwBWV-TR2WiQQDnjam9qw](https://2715-147-235-206-15.ngrok.io/?code=rdkdKc77f3hxlwBWV-TR2WiQQDnjam9qw)  
{“message”:“RangeError: Invalid key length”}

Any ideas?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 19, 2023, 7:03pm UTC](https://devforum.zoom.us/t/during-oauth-rangeerror-invalid-key-length-request-failed-with-status-code-400/95107/2 "2023-09-19T19:03:21Z")

</div>

Hi @g665  
Have you been able to troubleshoot this on your end?  
Are you still looking for assistance here?

---

<div class="post-metadata">

**Author:** ![aqilaakmalia98](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aqilaakmalia98/32/53566_2.png) [@aqilaakmalia98](https://devforum.zoom.us/u/aqilaakmalia98)\
**Post date:** [November 3, 2023, 4:49am UTC](https://devforum.zoom.us/t/during-oauth-rangeerror-invalid-key-length-request-failed-with-status-code-400/95107/3 "2023-11-03T04:49:57Z")

</div>

I have the same error, can anyone provide a solution? is it related to MYSQL\_CIPHER\_KEY?
