Lucas_Werkmeister_WMDE added a comment.

  Upon closer inspection, this doesn’t look like two concurrent requests – 
L136328-F2 was removed 
<https://www.wikidata.org/w/index.php?title=Lexeme:L136328&diff=1809628486&oldid=1809628395>
 23:51, while the logstash error is from 23:59:46.647, about eight minutes 
later.
  
  So I tried making a second non-concurrent `wblremoveform` request instead, 
with the same `baserevid`, but that still only gives me a proper error (always 
“editconflict” this time), not a crash:
  
    (async function() {
      const api = new mw.Api();
      const { id: lexemeId, lastrevid: revisionId } = ( await 
api.postWithEditToken( {
        action: 'wbeditentity',
        new: 'lexeme',
        data: JSON.stringify( {
          lexicalCategory: 'Q11',
          language: 'Q11',
          lemmas: {
            en: { language: 'en', value: `T326768 ${new Date().toISOString()}` 
},
          },
          forms: [ {
            add: '',
            representations: {
              en: { language: 'en', value: `T326768 ${new 
Date().toISOString()}` },
            },
            grammaticalFeatures: [],
          } ],
        } ),
        summary: 'T326768',
      } ) ).entity;
      const deleteForm = () => api.postWithEditToken( {
        action: 'wblremoveform',
        id: `${lexemeId}-F1`,
        baserevid: revisionId,
      } );
      await deleteForm();
      await deleteForm();
    })();

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, ItamarWMDE, Michael, Aklapper, jeena, 
Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, Akuckartz, darthmon_wmde, 
Rosalie_WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, 
LawExplorer, _jensen, rosalieper, Scott_WUaS, Verdy_p, Wikidata-bugs, aude, 
Jdforrester-WMF, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to