We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This happens if mediawiki crashes (PHP error) to nodemw:
Maybe this is something you should check and return as an err callback instead. Thanks for introducing this, btw!
TypeError: Cannot read property 'result' of undefined at [...]\node_modules\nodemw\lib\bot.js:299:22
The text was updated successfully, but these errors were encountered:
So instead of
if (!err && data.result && data.result === "Success")
Using this should fix it:
if (!err && data && data.result && data.result === "Success") {
Sorry, something went wrong.
ae45a63
Fixed the root cause in api.js.
api.js
Thanks for the report. Pushed nodemw@0.4.1 to npm.
nodemw@0.4.1
macbre
No branches or pull requests
This happens if mediawiki crashes (PHP error) to nodemw:
Maybe this is something you should check and return as an err callback instead.
Thanks for introducing this, btw!
The text was updated successfully, but these errors were encountered: