Line feed %0A is being added to my redirect_uri

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="")

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

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

Invalid redirect url (4,700)

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

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!

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