[00:25] jnthn: I am trying to process form data and I am geting an error message like this: Died with the exception: [00:25] Cannot unbox a type object (Nil) to int. [00:25] in sub decode-payload-to-pairs at /home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/site/sources/93800D0139DFB402128E680453A9BE46DB678C9E (Cro::HTTP::BodyParsers) line 62 [00:26] When trying to print ou t the raw request body with "(await request.body).decode", I am getting a null string. This is odd, because the form has data. Is this a bug? [08:33] Sounds like a bug [08:33] Please report it with a reproduction [08:47] *** sena_kun joined [08:58] *** Xliff left [10:16] *** sena_kun left [10:31] *** sena_kun joined [10:47] Hi all. Did anyone get a chance to glance at my question about websocket disconnection? In theory if I disconnect with code 1000 the bot should go offline immediately, but the bot always has to time out instead. Am I doing it wrong? https://github.com/shuppet/raku-api-discord/blob/disconnect-on-destroy/lib/API/Discord/WebSocket.rakumod#L167 [10:47] called from https://github.com/shuppet/raku-api-discord/blob/disconnect-on-destroy/lib/API/Discord.rakumod#L187 [12:15] *** Xliff joined [12:15] . [12:16] jnthn: It was because the tags didn't have a name attribute. [13:02] *** rypervenche left [13:09] *** rypervenche joined [13:09] Xliff: Wasn't sure if you knew you could write (await request.body).decode as request.body.result.decode - I find it cleaner [13:09] (I do wish I could just put await in the middle there) [13:09] await promise <-> promise.await [13:09] but alas no [13:20] Not aware of anything that'd block implementing such in Rakudo :) [13:26] * Altreus lays down the gauntlet [13:26] but not I :D [13:26] jnthn: since you're alive, do you have a mo to peer at my conundrum ^? [13:34] is this expected? I'm on m1 Mac: https://usercontent.irccloud-cdn.com/file/EJpC6NMR/CleanShot%202022-08-30%20at%2014.32.39%402x.png [13:36] I've learned to expect everything about Mac to be a shitshow :P [13:36] I recently released a new IO::Socket::Async::SSL that had a Mac fix somebody sent a PR for, and they reenabled the Mac CI and it passed [13:37] But that wasn't the error the fixed [13:41] so "is this expected" is tautologically yes, and can be replaced at compile time [13:44] Altreus: Looks like it picks 1000 as the default code here: https://github.com/croservices/cro-websocket/blob/96c7a31446032aa80e502651b68beec9be1817ed/lib/Cro/WebSocket/Client/Connection.pm6#L133 [13:45] Oh, but I don't think you `await` the `Promise` that `close` returns, maybe that is the issue? [13:46] er hold on, I think I do somewhere ... [13:47] jnthn: I added this script-mode option and I'm using it in the echo server example https://github.com/shuppet/raku-api-discord/blob/disconnect-on-destroy/lib/API/Discord.rakumod#L187 [13:48] It definitely takes a tad longer to exit than it used to [13:48] I should say "bye" eh [13:55] oh, looks like it handles the close event and reconnects! [13:57] Haha...when your code fights itself :) [13:57] And looks like the close code in «whenever $!conn.closer -> $close» is BigEndian [13:58] Is that part of the websocket standard? As in is there scope for the closer promise to return something a bit smarter? [14:00] I'd assume endianness is part of the standard. Can't remember the details without looking at the standard (and have a meeting to disappear to now...) [14:01] no probs, "enjoy"! [19:07] *** melezhik joined [19:17] *** melezhik left [19:55] *** rba left [19:55] *** sena_kun left [19:55] *** ecocode___ left [19:55] *** patrickb left [19:55] *** jjatria left [19:55] *** jnthn left [19:55] *** leont left [19:55] *** zostay left [19:55] *** Altreus left [19:55] *** CIAvash left [19:55] *** AlexDaniel left [19:55] *** kawaii_ left [19:55] *** sena_kun joined [19:55] *** jnthn joined [19:55] *** ecocode___ joined [19:55] *** rba joined [19:55] *** kawaii_ joined [19:55] *** AlexDaniel joined [19:55] *** CIAvash joined [19:55] *** jjatria joined [19:55] *** patrickb joined [19:55] *** Altreus joined [19:55] *** zostay joined [19:55] *** leont joined [19:56] *** Xliff left [19:56] *** Xliff joined [19:59] *** CIAvash left [19:59] *** AlexDaniel left [20:55] *** n1to joined [21:27] *** sena_kun left [21:28] *** sena_kun joined [21:41] *** n1to left [22:19] *** AlexDaniel joined [22:21] *** CIAvash joined [22:56] *** sena_kun left [23:04] *** Geth left [23:04] *** Geth joined