producthunt / producthunt-api

Product Hunt API
315 stars 29 forks source link

Comments end point responds with internal server error when newer parameter is > 132100 #68

Closed bahaagalal closed 9 years ago

bahaagalal commented 9 years ago

Request Parameter

{ 
url: 'https://api.producthunt.com/v1/comments',
method: 'GET',
headers: { 
     Authorization: 'Bearer BEARER_TOKEN',
     Accept: 'application/json',
     'Content-Type': 'application/json' 
},
strictSSL: true,
gzip: true,
qs: { 
     per_page: 50, 
     order: 'desc', 
     newer: 132100 
}
}
lfittl commented 9 years ago

Thanks, that sounds like a bug - we're looking into it!

bahaagalal commented 9 years ago

Now it is working :) but the request times out if there is no new comments. Should it be an empty response instead.

andreasklinger commented 9 years ago

Cant repo - Closing for now