Skip to content

Instantly share code, notes, and snippets.

@lizmat

lizmat/foo.raku Secret

Created September 24, 2021 13:44
Show Gist options
  • Save lizmat/5c0b34159fa0385f506ac9175900d460 to your computer and use it in GitHub Desktop.
Save lizmat/5c0b34159fa0385f506ac9175900d460 to your computer and use it in GitHub Desktop.
problem with Cro
use Cro::HTTP::Client;
my $client := Cro::HTTP::Client.new:
user-agent => 'Ecosystem::Archive 0.0.1';
my $resp := await $client.get:
'https://raw.githubusercontent.com/Raku/ecosystem/master/META.list';
my $text := await $resp.body;
for $text.lines -> $URL {
say $URL;
my $resp := await $client.get($URL);
my $text := await $resp.body;
say $text;
last if $++ == 5;
}
$ raku --ll-exception foo.raku
https://raw.githubusercontent.com/khalidelboray/Pastebin-Pasteee/main/META6.json
Header table index 82 out of range
at SETTING::src/core.c/Exception.pm6:62 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:throw)
from SETTING::src/core.c/control.pm6:221 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:die)
from SETTING::src/core.c/control.pm6:209 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:die)
from site#sources/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9 (HTTP::HPACK):258 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/4C/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9:)
from site#sources/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9 (HTTP::HPACK):252 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/4C/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9:resolve-decoded-index)
from site#sources/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9 (HTTP::HPACK):286 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/4C/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9:)
from site#sources/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9 (HTTP::HPACK):285 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/4C/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9:)
from site#sources/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9 (HTTP::HPACK):282 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/4C/4CC285A8AB160824E5A42DC6EF776B610FCEB2F9:decode-headers)
from site#sources/43241E93E97E663878983BC698B481BA0B8A589E (Cro::HTTP2::GeneralParser):187 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/43/43241E93E97E663878983BC698B481BA0B8A589E:set-headers)
from site#sources/43241E93E97E663878983BC698B481BA0B8A589E (Cro::HTTP2::GeneralParser):101 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/43/43241E93E97E663878983BC698B481BA0B8A589E:)
from site#sources/43241E93E97E663878983BC698B481BA0B8A589E (Cro::HTTP2::GeneralParser):72 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/43/43241E93E97E663878983BC698B481BA0B8A589E:)
from SETTING::src/core.c/Rakudo/Supply.pm6:250 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Lock/Async.pm6:176 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-with-updated-recursion-list)
from SETTING::src/core.c/Lock/Async.pm6:142 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:protect-or-queue-on-recursion)
from SETTING::src/core.c/Rakudo/Supply.pm6:256 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-supply-code)
from SETTING::src/core.c/Rakudo/Supply.pm6:184 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Rakudo/Supply.pm6:325 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-emit)
from <unknown>:1 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/control.pm6:198 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:emit)
from site#sources/974DA281FE5E567A236C783A12F334663018B5A6 (Cro::HTTP2::FrameParser):93 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/97/974DA281FE5E567A236C783A12F334663018B5A6:)
from site#sources/974DA281FE5E567A236C783A12F334663018B5A6 (Cro::HTTP2::FrameParser):62 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/97/974DA281FE5E567A236C783A12F334663018B5A6:)
from site#sources/974DA281FE5E567A236C783A12F334663018B5A6 (Cro::HTTP2::FrameParser):61 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/97/974DA281FE5E567A236C783A12F334663018B5A6:)
from site#sources/974DA281FE5E567A236C783A12F334663018B5A6 (Cro::HTTP2::FrameParser):41 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/97/974DA281FE5E567A236C783A12F334663018B5A6:)
from SETTING::src/core.c/Rakudo/Supply.pm6:446 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Rakudo/Supply.pm6:445 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-supply-code)
from SETTING::src/core.c/Rakudo/Supply.pm6:408 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Rakudo/Supply.pm6:126 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-emit)
from <unknown>:1 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/control.pm6:198 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:emit)
from site#sources/8F9CE57B4C9E54F00938F862E837CA40DCD18536 (Cro::TLS):92 (/Users/liz/.raku/precomp/0C92196409C455833E38D43F062D9B0809D2F3F9/8F/8F9CE57B4C9E54F00938F862E837CA40DCD18536:)
from SETTING::src/core.c/Rakudo/Supply.pm6:250 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Lock/Async.pm6:176 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-with-updated-recursion-list)
from SETTING::src/core.c/Lock/Async.pm6:142 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:protect-or-queue-on-recursion)
from SETTING::src/core.c/Rakudo/Supply.pm6:256 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-supply-code)
from SETTING::src/core.c/Rakudo/Supply.pm6:184 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Rakudo/Supply.pm6:126 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-emit)
from <unknown>:1 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/control.pm6:198 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:emit)
from SETTING::src/core.c/Channel.pm6:136 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Rakudo/Supply.pm6:250 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Lock/Async.pm6:176 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-with-updated-recursion-list)
from SETTING::src/core.c/Lock/Async.pm6:142 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:protect-or-queue-on-recursion)
from SETTING::src/core.c/Rakudo/Supply.pm6:256 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-supply-code)
from SETTING::src/core.c/Rakudo/Supply.pm6:184 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Supply-factories.pm6:303 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:245 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:244 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:239 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:run-one)
from SETTING::src/core.c/ThreadPoolScheduler.pm6:281 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Thread.pm6:54 (/Users/liz/Github/rakudo.moar/install/share/perl6/runtime/CORE.c.setting.moarvm:THREAD-ENTRY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment