reddit-snooper
reddit-snooper copied to clipboard
API url issue
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}`;
}
This doesn't seem to work either, the endpoint returns now a 403 forbidden and html which malforms the json parser. Any fix?