How to: solve 429 fetch errors on NextJS and Vercel

Learn to solve an unexpected application error on client-side

MING
Tech Blog Today
Published in
Mar 15, 2022

--

Recently, I added Medium Feed integration into my personal website. I chose api.rss2json.com to help fetch the feed and convert it to JSON format. Everything was doing well on local testing. However, it returned 429 errors when deployed to Vercel.

Application error: a client-side exception has occurred (see the browser console for more information).

1-Step Solution

I added https://api.allorigins.win/raw?url= before the rss2json API in the fetch, and it works again.

Sample of fetch is provided below:

Before vs. After

Final Output:

My personal website: https://1998.media

Hope help :)

Thanks for reading 🎉

Get $25 USD on Crypto today! https://crypto.com/app/m3yneqg78f

--

--

MING
Tech Blog Today

 WWDC Award Winner | Senior Software Engineer, UI Design, Github Developer | Contact: hi@1998.media | Website: 1998.media

Recommended from Medium

Lists

See more recommendations