dijs / wiki

Wikipedia Interface for Node.js
MIT License
315 stars 61 forks source link

Gamepedia MediaWiki action doesn't exist #93

Closed divanvb closed 5 years ago

divanvb commented 5 years ago

Hi

I'm trying to query a gamepedia wiki but I get the following error due to the action query doesn't exist.

wiki({ apiUrl: 'https://cod-esports.gamepedia.com', origin: null }).page('OpTic_Gaming').then(page => console.log(page));

UnhandledPromiseRejectionWarning: FetchError: invalid json response body at https://cod-esports.gamepedia.com?format=json&action=query&redirects=&prop=info%7Cpageprops&inprop=url&ppprop=disambiguation&titles=OpTic_Gaming reason: Unexpected token < in JSON at position 1

If you follow the link you'll see there is no such action. Any idea what could be the issue?

divanvb commented 5 years ago

Figured out why I couldn't get some data, had to add api.php to the end of the apiUrl