Ladsgroup added a comment.

I can reproduce the error. Just go to special unconnected pages in any article in kawiki and try to connect it to Wikidata using the widget.
For example in case https://ka.wikipedia.org/wiki/%E1%83%AF%E1%83%94%E1%83%9B%E1%83%98
The response I got was:

{"error":{"code":"no-external-page","info":"The external client site \"kawiki\" did not provide page information for page \"\u1caf\u10d4\u10db\u10d8\".","messages":[{"name":"wikibase-api-no-external-page","parameters":["kawiki","\u1caf\u10d4\u10db\u10d8"],"html":{"*":"The external client site \"kawiki\" did not provide page information for page \"\u1caf\u10d4\u10db\u10d8\"."}}],"*":"See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."},"servedby":"mw1316"}

The page title is parsed as \u1caf\u10d4\u10db\u10d8\ while encoding the title to utf-8 gives out \u10ef\u10d4\u10db\u10d8. I think it's pretty obvious what's wrong. But the params that is being sent is also malformed: {"labels":{"ka":{"language":"ka","value":"Ჯემი"},"en":{"language":"en","value":"Kenneth+Jackson+(sportsman)"}},"sitelinks":{"kawiki":{"site":"kawiki","title":"Ჯემი"},"enwiki":{"site":"enwiki","title":"Kenneth+Jackson+(sportsman)"}}}. I dig deeper soon.


TASK DETAIL
https://phabricator.wikimedia.org/T208139

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup
Cc: Ladsgroup, Addshore, Liuxinyu970226, Alan.H, Mbch331, Framawiki, Urbanecm, Dereckson, MIKHEIL, David1010, Aklapper, Mehman97, Nandana, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, _jensen, Srdjan_m, Jonas, MuhammadShuaib, LNDDYL, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Lydia_Pintscher, Arrbee, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to