User talk:DannyS712/PropertyCreator.js

Latest comment: 1 month ago by Jean-Frédéric in topic Error

Errors edit

I got errors with Wikidata:Property proposal/Sundance Institute Archive ID:

I did manage to create one, ‎Sundance Institute Archive film ID (P12423), after removing the examples ; but got again errors. Here is the message from the console, in case this helps:

Arguments { 0: "modification-failed", 1: {…}, 2: {…}, 3: {…}, … }
​
0: "modification-failed"
​
1: Object { error: {…}, servedby: "mw-api-ext.codfw.main-646bd69567-zl86s" }
​​
error: Object { code: "modification-failed", info: "Bad value type string, expected wikibase-entityid", "*": "See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes.", … }
​​
servedby: "mw-api-ext.codfw.main-646bd69567-zl86s"
​​
<prototype>: Object { … }
​
2: Object { error: {…}, servedby: "mw-api-ext.codfw.main-646bd69567-zl86s" }
​
3: Object { readyState: 4, getResponseHeader: getResponseHeader(key), getAllResponseHeaders: getAllResponseHeaders(), … }
​
callee: function onErrHandler()
​
length: 4
​
Symbol(Symbol.iterator): function values()
​
<prototype>: Object { … }
index.php:180:10

Jean-Fred (talk) 08:46, 6 February 2024 (UTC)Reply

@Jean-Frédéric unfortunately without knowing what the specific modification was I'm not sure how to debug this - in the future if you have such an error can you please try to expand the various objects, so I can see *which* of the api requests failed? Thanks, --DannyS712 (talk) 21:16, 6 February 2024 (UTC)Reply
Thanks for the reply − I thought I had copied everything from the console, but evidently not :) will be more careful next time.
Would it help to have the Wikibase API error caught and then display whichever one failed? Jean-Fred (talk) 21:41, 6 February 2024 (UTC)Reply
@Jean-Frédéric I'm not sure what you are suggesting by "have the Wikibase API error caught and then display whichever one failed" - I don't know if that is even possible, since it is a generic error handler for all of the api calls --DannyS712 (talk) 19:30, 7 February 2024 (UTC)Reply
Sorry, I’m not much of user-script programmer (nor front-end person really), I just assumed that all these API calls have an expected answer (200 or so) and that if it’s something else, additional logging could be displayed in the console to tell me what was wrong or where. But perhaps there are enough hints in there that I just failed to see nor copy/paste :) Jean-Fred (talk) 10:59, 8 February 2024 (UTC)Reply

Error edit

I just had a “Something went wrong” error trying to create Wikidata:Property proposal/museum-digital tag ID − I dumped what I could at phab:P58933. Hope that helps! Jean-Fred (talk) 23:26, 26 March 2024 (UTC)Reply

Return to the user page of "DannyS712/PropertyCreator.js".