Hello all,
I am Manimaran. I am Free Software Activist and also android developer. I try to make app for contributing Wiktionary. Which help to record audio then upload to commons.
I share my efforts to my blog. I face some problem on development. Any one can help me.
*Blog* : https://manimaran96.wordpress.com/2019/01/06/spell4wiki-mobile-app-to-record... *Source code* : https://github.com/manimaran96/Spell4Wiki *APK file* : https://github.com/manimaran96/Spell4Wiki/blob/master/apk_file/spell4wiki_1....
*Issue*
- When Uploading audio I got an error message* -> *{“error”:{“code”:”permissiondenied”,”info”:”The action you have requested is limited to users in one of the groups: [[Wikipedia:Autoconfirmed users|Autoconfirmed users]], [[Wikipedia:Administrators|Administrators]], [[Wikipedia:User access levels#Confirmed|Confirmed users]].”,”*”:”See https://en.wikipedia.org/w/api.phpfor API usage. Subscribe to the mediawiki-api-announce mailing list at < https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce%3E; for notice of API deprecations and breaking changes.”},”servedby”:”mw1226″} - But My User name is confirmed via mail. Also Have permission to upload. Then I don’t know why comes this type of issue. - Also trying with other wikipedians username same error comes all of them.
On Wed, Jan 9, 2019 at 10:41 AM Manimaran_K manimaraninam1027@gmail.com wrote:
- When Uploading audio I got an error message* ->
*{“error”:{“code”:”permissiondenied”,”info”:”The action you have requested is limited to users in one of the groups: [[Wikipedia:Autoconfirmed users|Autoconfirmed users]], [[Wikipedia:Administrators|Administrators]], [[Wikipedia:User access levels#Confirmed|Confirmed users]].”,”*”:”See https://en.wikipedia.org/w/api.phpfor API usage. Subscribe to the mediawiki-api-announce mailing list at < https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce%3E; for notice of API deprecations and breaking changes.”},”servedby”:”mw1226″}
The error message should be self-explanatory. See the linked https://en.wikipedia.org/wiki/Wikipedia:User_access_levels#Autoconfirmed_use... page for more details. (You can send an errorformat=html parameter to the API to HTML error messages, in case you are not familiar with wikitext.)
Given that you were talking about uploading to Commons, seems like you are sending your requests to the wrong wiki. (Commons does not require users to be autoconfirmed.)
Hi Gergo Tisza,
Thanks for your response. I realized my mistake. Sorry for the late response from my side. Now, both csrf token and upload API are changed to commons API. Then the above issue resolved.
*Below I shared some needs and clarification * 1. It is possible to support .wav or .mp3 format files to in Wiktionary words pronunciation audio format. currently, support .ogg only. Because I think native Android does not support .ogg for record audio. If need to .ogg we need to use NDK. 2. Successfully uploaded audio files to commons. But some times not linked to Wiktionary word.
case 1: No issues - Worked word - https://ta.wiktionary.org/wiki/%E0%AE%85%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AF%81... audio - https://commons.wikimedia.org/wiki/File:Ta-%E0%AE%85%E0%AE%95%E0%AF%8D%E0%AE...
case 2: Audio have .ogg format. But not linked in particular word. word - https://ta.wiktionary.org/wiki/%E0%AE%A4%E0%AE%9F%E0%AE%BF%E0%AE%95%E0%AF%8D... audio - https://commons.wikimedia.org/wiki/Ta-%E0%AE%A4%E0%AE%9F%E0%AE%BF%E0%AE%95%E...
Why this issue comes then what I do?
3. When I uploading format as .wav to commons then auto-generated .ogg and .mp3 formats. This .ogg file is possible to link that work. Then .ogg audio file name contains existing file format name too.
Like : Uploaded - Ta-மதிமுக.wav Auto-generated by commons - Ta-மதிமுக.wav.ogg and Ta-மதிமுக.wav.mp3 Note: Above .ogg and .mp3 file name contains existing(uploaded) file format .wav too.
Ex : uploaded - https://commons.wikimedia.org/wiki/File:Ta-%E0%AE%AE%E0%AE%A4%E0%AE%BF%E0%AE... ogg - https://upload.wikimedia.org/wikipedia/commons/transcoded/4/4b/Ta- மதிமுக.wav/Ta-மதிமுக.wav.ogg mp3 - https://upload.wikimedia.org/wikipedia/commons/transcoded/4/4b/Ta- மதிமுக.wav/Ta-மதிமுக.wav.mp3
4. Some times I got a message "Invalid CSRF". I think this comes may be session time out or wrong csrf token. But I am saving first csrf token after login. Then after every edit request use same csrf token no issues on within 3 to 5mins. after that comes that "Invalid CSRF". How can solve this?
5. When I uploading audio files to commons comes this message "Warning" - "exists-normalized". It may come file name already exists I think. In commons, check contains an upload file name.
I try to upload word like "en-abcd.ogg" Commons through error mentioned above. But "en-abcd.ogg" don't have in commons But have "en-ab.ogg" or "en-abcdef.ogg". How to resolve those issues?
Thanks Manimaran.K
On Thu, Jan 10, 2019, 12:26 AM Gergo Tisza gtisza@wikimedia.org wrote:
On Wed, Jan 9, 2019 at 10:41 AM Manimaran_K manimaraninam1027@gmail.com wrote:
- When Uploading audio I got an error message* ->
*{“error”:{“code”:”permissiondenied”,”info”:”The action you have requested is limited to users in one of the groups: [[Wikipedia:Autoconfirmed users|Autoconfirmed users]], [[Wikipedia:Administrators|Administrators]], [[Wikipedia:User access levels#Confirmed|Confirmed users]].”,”*”:”See https://en.wikipedia.org/w/api.phpfor API usage. Subscribe to the mediawiki-api-announce mailing list at <
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce%3E;
for notice of API deprecations and breaking changes.”},”servedby”:”mw1226″}
The error message should be self-explanatory. See the linked
https://en.wikipedia.org/wiki/Wikipedia:User_access_levels#Autoconfirmed_use... page for more details. (You can send an errorformat=html parameter to the API to HTML error messages, in case you are not familiar with wikitext.)
Given that you were talking about uploading to Commons, seems like you are sending your requests to the wrong wiki. (Commons does not require users to be autoconfirmed.) _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org