reddit-snooper icon indicating copy to clipboard operation
reddit-snooper copied to clipboard

API url issue

Open kajensen opened this issue 7 years ago • 1 comments

There appears to be an issue with using the "url" npm library, specifically line 84 of api.js. First of all, in the url module that was installed, url.URL is not a function. Then url.Url().toString() returned an object.

My fix:

construct_url(path) {
     let oauth_endpoint = "https://oauth.reddit.com"
     return `${oauth_endpoint}${path}`;
 }

kajensen avatar Aug 26 '17 18:08 kajensen

This doesn't seem to work either, the endpoint returns now a 403 forbidden and html which malforms the json parser. Any fix?

ghost avatar Nov 04 '17 05:11 ghost