|
01:51
[Coke]_ joined
02:00
[Coke] left
02:39
[Coke]_ is now known as [Coke]
11:41
librasteve_ left
14:02
librasteve_ joined
17:18
laggyluke joined
|
|||
| laggyluke | Hi, I'm looking for help on Cro::HTTP::Client | 17:52 | |
| [Coke] | Sure, what's up? | ||
| Need some examples, have a bug... ? | 17:53 | ||
| laggyluke | shall i paste the important lines here? | ||
| my \client = Cro::HTTP::Client.new: base-uri => 'localhost:8200/v1', content-type => "application/json", ca => { :insecure }, :$headers ; | 17:56 | ||
| [Coke] | Sure, one liners ok, anything big, please use something like gist.github.com | 17:57 | |
| laggyluke | when i run the script with CRO_TRACE=1 ./script I catch the error message "connection refused", I'm not sure where this is coming from | 17:59 | |
| [Coke] | ... can you open that site in a browser? | 18:00 | |
| that is, are you sure this is a cro client issue at all? | |||
| laggyluke | yes its a local hashicorp vault for development and a selfsigned certificate | ||
| I was able to build a perl script with REST::Client, that is working | 18:01 | ||
| with this service on localhost | 18:02 | ||
| when i use httpbin.org the raku script is working alright | 18:03 | ||
| [Coke] | can you gist the full script? | ||
| also what OS are you running on? | 18:04 | ||
| laggyluke | yes i can put the whole script on gist, | ||
| I'm running linux | |||
| [Coke] | (I added some headers and an await.get around that one liner, and yah, it works fine here on the site I tried against) | ||
| this shouldn't matter, but any luck with 127.0.0.1 instead of localhost? | 18:05 | ||
| laggyluke | let me prepare the script and put it on gist, that might take a while... | 18:06 | |
| [Coke] | or if you have it checked in somewhere. | 18:08 | |
| I am guessing it's something about the TLS negotiation. Maybe a dump of the cro trace too? | 18:09 | ||
| laggyluke | gist.github.com/wolowizard/05798fa...87f0db506f | 18:25 | |
| with localhost there is no trace output, that's a bit odd | |||
| I have the feeling the issue is with ssl handshake perhaps | 18:28 | ||
| with httpbin.org i there is trace output but not connecting to localhost | 18:29 | ||
| i added the CATCH block to gist | 18:33 | ||
| [Coke] | you have a password in there. | 18:47 | |
| in case you want to remove that before I read it. | |||
| laggyluke | this is no real password it's just a test | 19:05 | |
| [Coke] | OK. I don't see anything obviously wrong, guessing it's related to your specific local connection. :( | 19:06 | |
| To get more eyes on it, can you open a Cro issue? | 19:07 | ||
| laggyluke | sure | ||
| [Coke] | sorry it wasn't something obvious! | 19:10 | |
| laggyluke | could you give me a hint where i should open an issue? | 19:11 | |
| croservices/cro ? | 19:13 | ||
| or in croservices/cro-tls ? | 19:15 | ||
| [Coke] | any raku folks here? Is there a raku* repo these days?? | 19:18 | |
| I'd start with github.com/croservices/cro/issues | |||
| We can always move a ticket. | 19:19 | ||
| laggyluke | ok, on it... | 19:20 | |
| [Coke] | Huh, forgot about my "can't install cro on windows" from Jan-21 2023. | 19:34 | |
|
19:49
laggyluke left,
laggyluke joined
|
|||
| laggyluke | ticket created | 19:57 | |
|
20:14
Geth__ joined
20:18
Geth left
20:21
Geth__ left,
Geth joined
|
|||
| disbot6 | <librasteve> laggyluke: [Coke] has asked for some help ... its late here (UK) but I will try and help ... maybe tomorrow | 21:01 | |
| <librasteve> laggyluke: please can you change to ca => Cro::TLS::Insecure, ? | 21:05 | ||
| <librasteve> and try that | |||
| <librasteve> hmmm - not that | 21:09 | ||
| <librasteve> laggyluke: I am posting some ideas on the GH issue ... suggest we interact over there for now... | 21:31 | ||
| laggyluke | ok... | 21:57 | |