bzarras / newsapi

A promise-based node interface for NewsAPI
MIT License
144 stars 39 forks source link

Unhandled promise rejections #19

Closed rohanshukla94 closed 4 years ago

rohanshukla94 commented 5 years ago

So I've made around 10 requests to this api using a developer account and I already got this error and asking me to upgrade my plan to make more requests lol

UnhandledPromiseRejectionWarning: NewsAPIError: parameterInvalid: You are trying to request results too far in the past. Your plan permits you to request articles as far back as 2019-07-07, but you have requested 2019-07-01. To extend this please upgrade to a paid plan.

monooso commented 4 years ago

@rohanshukla9 The issue isn't the number of requests, it's the specified date range. The developer plan is limited to articles up to a month old.