Fork me on GitHub
Sal Tosti15:09:19

Hey All 👋, I’m working on setting up a babashka-based Lambda. When I execute the sam local invoke LambdaGenerateTemplate command locally I get a runtime error like:

:type java.lang.Exception, :message "[holy-lambda]: Handler example.core.LambdaGenerateTemplate not found!
I checked each of the following items and confirmed they appear correctly configured: * The Lambda resource in my template has a Handler: example.core.LambdaGenerateTemplate value * There is a file located at src/example/core.cljc with a namespace declaration of (ns example.core …) * Within the core.cljc file there is a function named LambdaGenerateTemplate * Within the core.cljc file there is an invocation of (h/entrypoint [#'LambdaGenerateTemplate]) I read over the, but I did not see any missing steps in my config / setup. Can anyone shed some light on what I’m missing? 🙏

Karol Wójcik20:09:39

Could you please provide minimal reproducible steps?

👍 1
Sal Tosti21:09:52

Thanks for the quick response Karol! :) I created a minimal example repo here: I was able to trigger the Handler example.core.LambdaGenerateTemplate not found! exception by running the following: 1. Run bb hl:babashka:sync 2. Run sam local invoke LambdaGenerateTemplate

Karol Wójcik01:09:56

Ok, I see where the problem is. Basically the bb tasks are including the example.core in the classpath, because I'm using this namespace for testing. Please change the name of your namespace and you are good to go! Sorry for the inconvenience. I will patch it soon!

🙏 1
Karol Wójcik01:09:00

All the best! 🙂

Sal Tosti11:09:17

That worked like a charm! Thanks for taking a look at this Karol, much appreciated. :thumbsup:

Karol Wójcik13:09:30

No worries. Sorry for a trouble!

🙌 1