How to: solve 429 fetch errors on NextJS and Vercel
Learn to solve an unexpected application error on client-side
--
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.
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:
Final Output: