Raku / whateverable

🤖 Different IRC bots that operate on a bunch of prebuilt Rakudo versions
https://gist.github.com/Whateverable
GNU Affero General Public License v3.0
18 stars 14 forks source link

Quotable and “foo” #215

Open AlexDaniel opened 7 years ago

AlexDaniel commented 7 years ago
<Skarsnik> quotable6, foo

And it fails:

Cannot convert string to number: base-16 number must begin with valid digits or '.' in '�[32m:16<⏏�[31msers>�[0m' (indicated by ⏏�[0m)
  in block  at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 182
  in sub parse-string at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 98
  in sub parse-thing at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 326
  in sub parse-obj at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 244
  in sub parse-thing at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 330
  in sub parse-obj at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 244
  in sub parse-thing at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 330
  in sub parse-obj at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 244
  in sub parse-thing at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 330
  in sub from-json at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/98F5242383605103C50EA9EC60D04C2892781A7B (JSON::Fast) line 366
  in method paste at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/765692A23C5BB5A499385D53980470B2D4930869 (Pastebin::Gist) line 31
  in method upload at /home/bisectable/git/whateverable/lib/Whateverable.pm6 (Whateverable) line 456 (⚠ uncommitted)
  in method filter at /home/bisectable/git/whateverable/lib/Whateverable.pm6 (Whateverable) line 430 (⚠ uncommitted)
  in sub  at /home/bisectable/git/whateverable/lib/Whateverable.pm6 (Whateverable) line 69 (⚠ uncommitted)
  in block  at /home/bisectable/git/whateverable/lib/Whateverable.pm6 (Whateverable) line 472 (⚠ uncommitted)
  in block  at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/DFC5BCCD6AED9D84DA8A1F88FF8F423073F81CA9 (IRC::Client) line 341
  in block  at /home/bisectable/.rakudobrew/moar-nom/install/share/perl6/site/sources/DFC5BCCD6AED9D84DA8A1F88FF8F423073F81CA9

It attempts to gist the results, that succeeds and github gives json response. Then, Pastebin::Gist asks JSON::Fast to decode it, and that fails. Either Github is producing invalid json (unlikely), or JSON::Fast is wrong.

Here is the gist that was produced: https://gist.github.com/Whateverable/405d169a6aca013618e4e01d4b431bde

No JSON::Fast bug report yet.

AlexDaniel commented 7 years ago

Removing 「blocked ☹」 label until there's a corresponding bug report filed.

AlexDaniel commented 6 years ago

\<AlexDaniel> quotable6: foo \<quotable6> AlexDaniel, OK, working on it! This may take up to three minutes (4534470 messages to process) \<quotable6> AlexDaniel, Cowardly refusing to gist more than 10000 lines

Looks like it “works” now? I haven't seen any issues with quotable lately.