neomatrix369 / RESTAPIUnifier

RESTAPIUnifier - brings together all the APIs of various formats under one roof!
GNU General Public License v2.0
8 stars 7 forks source link

Failing Get Request To api.discogs.com #90

Open mbateman opened 9 years ago

mbateman commented 9 years ago

artist_endpoint_returns_some_json() failing with the following error: java.net.SocketException: Unexpected end of file from server

Solution is in the api documentation:

Your application must provide a User-Agent string that identifies itself – preferably something that follows RFC 1945.

So added "User-Agent", "RestAPIUnifier/1.0 +https://github.com/mbateman" to request properties.

neomatrix369 commented 9 years ago

Good fix, I did comment on this in the other pull request, looks good except if we can somehow generify it, it would by great.

mbateman commented 8 years ago

How could it be generified?

neomatrix369 commented 8 years ago

You have hard-coded https://github.com/mbateman, when I meant generify I meant to find a way to not hard-code it so it works for everyone else as well/.