Closed divanvb closed 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?
Figured out why I couldn't get some data, had to add api.php to the end of the apiUrl
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));
If you follow the link you'll see there is no such action. Any idea what could be the issue?