-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local function execution is unable to load handler #1695
Comments
Hello @Rediate15, thank you for creating such a detailed ticket. Definitely, it's a bug. For now, I can't find any hotfix for this problem. I moved it to our team and we will try to find some time and look at it. |
The issue does not occur on macOS systems (on my Macbook it's working really fine), probably the problem is reproducible only on Windows systems only |
This issue or PR has been automatically marked as stale due to the lack of recent activity. This bot triages issues and PRs according to the following rules:
You can:
If you think that I work incorrectly, kindly raise an issue with the problem. /lifecycle stale |
This issue or PR has been automatically marked as stale due to the lack of recent activity. This bot triages issues and PRs according to the following rules:
You can:
If you think that I work incorrectly, kindly raise an issue with the problem. /lifecycle stale |
This issue or PR has been automatically marked as stale due to the lack of recent activity. This bot triages issues and PRs according to the following rules:
You can:
If you think that I work incorrectly, kindly raise an issue with the problem. /lifecycle stale |
@pPrecel @kwiatekus are there any plans to move this forward? Or should we close it with the |
Stopping the development according to: kyma-project/community#872 |
Description
When I try to run a function locally with the command
kyma run function
the newly created container throws the following error:user code load error: Error: Cannot find module './function/handler'
. It appears the container isn't able to load the handler.Kyma-CLI: 2.15.0
Docker: 24.0.2
Windows 10
Expected result
The function is run in a local container and accessible through a given port.
Actual result
A new container is started, however, while trying to load the handler, the container throws an error:
The container itself continues running
Steps to reproduce
kyma init function
kyma run function
http://localhost:8080
in your browserNote: These are the steps I need to reproduce. A colleague wasn't able to reproduce following the same steps
Troubleshooting
I've tried adding a reference to the config by adding
sourceHandlerName: handler.js
, but to no avail.Switching to the node16 runtime results in the same error, however the deprecated node14 runtime only throws an error after accessing
http://localhost:8080
.The following error is thrown by the node14 runtime:
The text was updated successfully, but these errors were encountered: