mozilla / page-metadata-service

DEPRECATED - A RESTful service that returns the metadata about a given URL.
Mozilla Public License 2.0
19 stars 8 forks source link

Limit number of URLs per request #54

Closed pdehaan closed 8 years ago

pdehaan commented 8 years ago

Currently we have maxUrls error which says:

'A maximum of 20 urls can be sent for processing in one call.'

— via /app/service.js:12

But that's the only instance of maxUrls that I can find in the code, so we're seemingly not checking incoming urls array length or enforcing that anywhere.

For example, my lame pdehaan/fetch-subreddit tool can easily grab the latest 25 articles from reddit.com/r/worldnews and run them through the metadata proxy and get all 25 processed URLs back.