# Line feed %0A is being added to my redirect\_uri

**URL:** <https://devforum.zoom.us/t/line-feed-0a-is-being-added-to-my-redirect-uri/53395>\
**Category:** API and Webhooks\
**Created:** [June 30, 2021, 12:50pm UTC](https://devforum.zoom.us/t/line-feed-0a-is-being-added-to-my-redirect-uri/53395 "2021-06-30T12:50:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danivanzoom](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@danivanzoom](https://devforum.zoom.us/u/danivanzoom)\
**Post date:** [June 30, 2021, 12:50pm UTC](https://devforum.zoom.us/t/line-feed-0a-is-being-added-to-my-redirect-uri/53395/1 "2021-06-30T12:50:06Z")

</div>

**Description**  
Created oauth app.  
Added uri `http://localhost:4000/oauth-callback` to both Redirect URL for OAuth and Whitelist URLs.

When I click on install everything works and I’m able to get the token (`href="https://zoom.us/oauth/authorize?response_type=code&client_id=yhqWp3x0RKqxPZscTvv34w&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Foauth-callback"`)

However, if in the browser I go to localhost:4000, I get this uri:

`https://zoom.us/oauth/signin?_rnd=1625052669538&client_id=yhqWp3x0RKqxPZscTvv34w&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Foauth-callback%0A&response_type=code`

With this message: **Invalid redirect url (4,700)**

Notice that at the end of the `redirect_uri` parameter, after `oauth-callback` **a line feed ‘%0A’ has been added somehow** , and that’s the reason it doesn’t work. If I manually delete that line feed and press enter it will take me to the installation/authorization page.

Here’s my code: [zoom.js · GitHub](https://gist.github.com/ifsd/60d65218c1b5eab6b9f1ecc99360d30d)

**Error**  
**Invalid redirect url (4,700)**

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [July 1, 2021, 8:13pm UTC](https://devforum.zoom.us/t/line-feed-0a-is-being-added-to-my-redirect-uri/53395/2 "2021-07-01T20:13:27Z")

</div>

Hi @danivanzoom,

Thanks for reaching out about this.

It seems like perhaps a space is being added to your redirect URL. Can double check that your localhost environment isn’t somehow adding a space to the URL that is then getting encoded?

Let me know—thanks!  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 1, 2021, 6:14am UTC](https://devforum.zoom.us/t/line-feed-0a-is-being-added-to-my-redirect-uri/53395/3 "2021-08-01T06:14:07Z")

</div>

Closed on August 1, 2021, 6:14am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
