Skip to content
New issue

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

morebits: don't handle notoken error #883

Merged
merged 1 commit into from Mar 12, 2020

Conversation

siddharthvp
Copy link
Member

notoken error code has been removed from MediaWiki. Write queries without token now return the standard missingparams error.

It is anyway not necessary to handle this error since we do specify the token, so this just wouldn't ever occur.

In case of expired tokens, the badtoken error continues to be returned, which we do handle.

notoken error code has been removed from MediaWiki. Write queries
without token now return the standard missingparams error.

It is anyway not necessary to handle this error since we do specify
the token, so this just wouldn't ever occur.

In case of expired tokens, the `badtoken` error continues to be
returned, which we do handle.
@siddharthvp
Copy link
Member Author

I couldn't find a phab ticket for this, but this was announced on the Mediawiki-api-announce mailing list on 4 Feb 2020.

@Amorymeltzer
Copy link
Collaborator

I'll look when I get a chance, but a link to the email in the archives would be fine.

@Amorymeltzer Amorymeltzer added the Module: morebits The morebits.js library label Mar 10, 2020
@Amorymeltzer Amorymeltzer added this to the April 2020 update milestone Mar 10, 2020
@siddharthvp
Copy link
Member Author

Copy link
Collaborator

@Amorymeltzer Amorymeltzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for being on the ball

@Amorymeltzer Amorymeltzer merged commit f95cc67 into wikimedia-gadgets:master Mar 12, 2020
wiki-ST47 pushed a commit to wiki-ST47/twinkle that referenced this pull request Sep 2, 2020
notoken error code has been removed from MediaWiki. Write queries
without token now return the standard missingparams error. See https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2020-February/000151.html

It is anyway not necessary to handle this error since we do specify
the token, so this just wouldn't ever occur.

In case of expired tokens, the `badtoken` error continues to be
returned, which we do handle.
@siddharthvp siddharthvp deleted the nonotoken branch October 22, 2020 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: morebits The morebits.js library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants