koinos / koinos-io-website

Repo for koinos.io website
MIT License
2 stars 6 forks source link

Add a proxy api for medium rss to json #73

Closed jredbeard closed 3 months ago

jredbeard commented 3 months ago

Resolves #70

It turns out the RSS to JSON proxy we were using (api.rss2json.com) added a cloudflare javascript challenge which was preventing us from fetching, and, also now preventing access due to CORS (so even if you work around CORS, it still didn't work due to the javascript challenge). I guess they screwed their API.

Anyway, this just works around them altogether by fetching the raw XML/RSS feed and then converts it to JSON. It cuts out the middle man and goes directly to the source.

I also switched to node v18 docker images because that is required for NextJS v14 that we recently upgraded to.

netlify[bot] commented 3 months ago

Deploy Preview for koinos-io ready!

Name Link
Latest commit abc8fbbffacc612d85280cd65f15ec22fc4c149d
Latest deploy log https://app.netlify.com/sites/koinos-io/deploys/6669bef2984475000856a3ac
Deploy Preview https://deploy-preview-73--koinos-io.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

sgerbino commented 3 months ago

RSS works, any idea what these are from? I'm pretty sure JS console log used to be clean, maybe NextJS 14 shook it up?

image

jredbeard commented 3 months ago

RSS works, any idea what these are from? I'm pretty sure JS console log used to be clean, maybe NextJS 14 shook it up?

@sgerbino mine is clean... maybe it's a chrome extension you have that's trying to reach out to bugsnag?

image
sgerbino commented 3 months ago

RSS works, any idea what these are from? I'm pretty sure JS console log used to be clean, maybe NextJS 14 shook it up?

@sgerbino mine is clean... maybe it's a chrome extension you have that's trying to reach out to bugsnag?

image

After I merged and looked at koinos.io everything is clean for me again, so I guess case closed :dancers: