News-API-gh / News-API-node

Our officially supported Node client library for accessing News API.
MIT License
42 stars 3 forks source link

Error 426 #15

Open atul1503 opened 3 years ago

atul1503 commented 3 years ago

I am trying to access newsapi using js only. But the server returns 426 error response which if I m not wrong is about upgrading your current protocol.I m not sure how to do that.I am using fetch API.Can you suggest me some way to upgrade the protocol used by the fetch API(or any other way to get out of this error)?

a-r-qais commented 2 years ago

iam too facing this isssue! me like wtf! 🙄😑

sairaghukiran14 commented 1 year ago

Same Here .....facing problem after deployment .....works fines in local Computer (Localhost)

Deltan2002 commented 1 year ago

Newsapi changed their pricing model. You can't make requests from the browser anymore, you'll have to use a backend. I had the same problem and the easiest way around it was implementing a Node (Express) server. Otherwise use an alternative

margo-ai commented 1 year ago

@Deltan2002 I also worked on this project so hard and realized it just today :( Can you help me please? How did you made this News API project with Node.js? Don't know backend at all, still learning frontend :(