Fork me on GitHub
#babashka
<
2023-10-24
>
Flo08:10:03

Anyone has experience connecting to non-AWS S3 providers using any of the available bb pods? When I try connecting to Cloudflare R2 using awyeah i get the "No known endpoint." Anomaly for my custom :endpoint-override

👀 1
Flo09:10:01

So I managed to quickly hack it together to make it work (listing buckets and putting an object successfully): I added a custom, static EndpointProvider implementation and cloned/hacked the definition of awyeah.client.api/client to use this new provider. Could look into providing a PR to: • support argument to client for letting the user override the endpoint-provider • add a “static endpoint provider” implementation to awyeah.endpoint that can be used in the same fashion thoughts @U0EHU1800? I’m not really an expert w/r/t the AWS apis, so I might be missing something in my approach here

lispyclouds06:10:32

yeah @U0EHU1800 would be a better person here than me

grzm00:11:31

Hi @UHJQAD8BW My goal is to make awyeah-api have feature parity with aws-api. The aws-api (and awyeah-api) does provide :endpoint-override as you point out. As this is Cloudflare (and not AWS) it's possible that assumptions built into aws-api and its endpoint provider isn't compatible with Cloudflare. Can you provide a complete example of what you tried with the stock awyeah-api? Does it work with aws-api?

Daniel Gerson11:10:31

Hello, is there any way I can intercept the error handling to try and get coloured syntax & prettified output to the map in ex-info ? Ideally configured at some point in the bb.edn file, to apply to all tasks. (Obviously this is a nice to have question*).*

borkdude11:10:00

There isn't at the moment

borkdude11:10:32

It is possible to catch the existing exception and do it yourself though

Daniel Gerson11:10:49

Is there a way to do this across all tasks?

Daniel Gerson11:10:18

Without creating my own shell and exec...

Daniel Gerson11:10:39

(but yes I can do that)

borkdude11:10:50

I don't understand what shell and exec have to do with syntax coloring of code in the ex-info

Daniel Gerson11:10:12

I.e. in a file with 20 tasks rather than having 20 try/catch blocks...

borkdude11:10:31

again, what does this have to do with shell/exec?

Daniel Gerson11:10:58

I was thinking to create my own shell/exec with an internal try catch block... that would be clean. Sorry if that was confusing.

borkdude11:10:06

but not all tasks are just shell/exec?

Daniel Gerson11:10:41

You're right, the shell wouldn't work anyway... it would only be exec.

borkdude11:10:06

maybe a hook to do some processing after the uncaught exception has been handled would be nice, but so far there is nothing around it, feel free to write a proposal or something on Github Discussions