Page MenuHomePhabricator

Thanks API is not working if user not registered
Closed, InvalidPublic

Description

OUT https://en.wikipedia.org/w/api.php?action=thank&format=xml&assert=user
POSTDATA rev=649846682&source=huggle&token=4dd988ec8013e79f18ad0ce17602a8b754f71ec4%2B%5C

IN <?xml version="1.0"?><api servedby="mw1205"><error code="invalidrecipient" info="No valid recipient found" xml:space="preserve">See https://en.wikipedia.org/w/api.php for API usage</error></api>

Makes no sense to me, according to documentation at https://www.mediawiki.org/wiki/Extension:Thanks#API_Documentation I should not use POST which is nonsense, as module request token to be POSTed + it doesn't seem to accept the revid for some reason?

Event Timeline

Petrb created this task.Mar 4 2015, 3:06 PM
Petrb raised the priority of this task from to Needs Triage.
Petrb updated the task description. (Show Details)
Petrb added a project: Thanks.
Petrb added a subscriber: Petrb.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 4 2015, 3:06 PM
Petrb closed this task as Resolved.Mar 4 2015, 3:10 PM
Petrb claimed this task.

hm... so user needs to be registered

Aklapper renamed this task from Thanks API is not working to Thanks API is not working if user not registered.Mar 4 2015, 4:01 PM
Aklapper changed the task status from Resolved to Invalid.
Aklapper set Security to None.

Makes no sense to me, according to documentation at https://www.mediawiki.org/wiki/Extension:Thanks#API_Documentation I should not use POST which is nonsense, as module request token to be POSTed + it doesn't seem to accept the revid for some reason?

Sorry about that. I've fixed the template to show that it requires POST.