quick_statements.php throws "You haven't authorized" and "Bad API response" randomly

Issue #8 new
Former user created an issue

quick_statements sometimes pauses then says "You haven't authorized this application yet! Go here to do that, then reload this page." for a line, in the middle of batch runs, without a discernible pattern from the user's perspective. Occasionally it throws a "Bad API response" instead. This happens even though I just authorized it, and some other statements go through afterwards during the same batch. It might have something to do with the flooding control: But if that's the case, shouldn't it say something about flooding instead of authorization?

Here's an example run, showing a mix of success, "You haven't authorized", and "Bad API response":

You are logged into WiDaR as Closeapple.

Processing Q7824509 (Q7824509 Len "Top Gear series 1")
Processing Q7824509 (Q7824509 Den "season of the 2002 British TV show")
Processing Q7824509 (Q7824509 P361 Q33162)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824509 (Q7824509 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824511 (Q7824511 Len "Top Gear series 10")
Processing Q7824511 (Q7824511 Den "season of the 2002 British TV show")
Processing Q7824511 (Q7824511 P361 Q33162)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824511 (Q7824511 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824510 (Q7824510 Len "Top Gear series 11")
Processing Q7824510 (Q7824510 Den "season of the 2002 British TV show")
Processing Q7824510 (Q7824510 P361 Q33162)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824510 (Q7824510 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824512 (Q7824512 Len "Top Gear series 12")
ERROR (set_label) : Bad API response [setLabel]:

stdClass::__set_state(array(
   'servedby' => 'mw1229',
   'error' => 
  stdClass::__set_state(array(
     'code' => 'mwoauth-invalid-authorization',
     'info' => 'The authorization headers in your request are not valid: Nonce already used: c5b26ba6baea0352e370fb28eb6cbbfa',
     '*' => 'See https://www.wikidata.org/w/api.php for API usage',
  )),
))

Processing Q7824512 (Q7824512 Den "season of the 2002 British TV show")
ERROR (set_desc) : Item [[Q7824513|Q7824513]] already has label "Top Gear" associated with language code en, using the same description text.
Processing Q7824512 (Q7824512 P361 Q33162)
Processing Q7824512 (Q7824512 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824513 (Q7824513 Len "Top Gear series 13")
Processing Q7824513 (Q7824513 Den "season of the 2002 British TV show")
Processing Q7824513 (Q7824513 P361 Q33162)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824513 (Q7824513 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824514 (Q7824514 Len "Top Gear series 14")
Processing Q7824514 (Q7824514 Den "season of the 2002 British TV show")
Processing Q7824514 (Q7824514 P361 Q33162)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824514 (Q7824514 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824515 (Q7824515 Len "Top Gear series 15")
Processing Q7824515 (Q7824515 Den "season of the 2002 British TV show")
Processing Q7824515 (Q7824515 P361 Q33162)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824515 (Q7824515 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824516 (Q7824516 Len "Top Gear series 16")
Processing Q7824516 (Q7824516 Den "season of the 2002 British TV show")
Processing Q7824516 (Q7824516 P361 Q33162)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824516 (Q7824516 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824517 (Q7824517 Len "Top Gear series 17")
Processing Q7824517 (Q7824517 Den "season of the 2002 British TV show")
Processing Q7824517 (Q7824517 P361 Q33162)
Processing Q7824517 (Q7824517 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824518 (Q7824518 Len "Top Gear series 18")
Processing Q7824518 (Q7824518 Den "season of the 2002 British TV show")
Processing Q7824518 (Q7824518 P361 Q33162)
Processing Q7824518 (Q7824518 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824519 (Q7824519 Len "Top Gear series 19")
Processing Q7824519 (Q7824519 Den "season of the 2002 British TV show")
Processing Q7824519 (Q7824519 P361 Q33162)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.
Processing Q7824519 (Q7824519 P31 Q3464665)
ERROR (set_claims) : You haven't authorized this application yet! Go here to do that, then reload this page.

All done!.

Comments (0)

  1. Log in to comment