-
Notifications
You must be signed in to change notification settings - Fork 89
C#: Namespaced support for functions #85
Comments
I have seen similar error message when trying .net core 3.1 runtime (with a little modification) for running vb.net function: #68, unfortunately I still can't get it working so far. |
After some more digging around - this appears to be working: kubeless function deploy helloget2 --runtime dotnetcore2.2 --from-file Functions/namespaced-helloget.cs --handler module.handler The switch to 3.1 appears to be causing the issue |
Sorry - clicked the wrong button |
Can you post the content of |
The content is the same as: I used the Makefile command: kubeless function deploy get-dotnetcore-namespaced22 --runtime dotnetcore2.2 --handler module.handler --from-file examples-2x/namespaced-helloget.cs and this worked. Updating that command to: kubeless function deploy get-dotnetcore-namespaced31 --runtime dotnetcore3.1 --handler module.handler --from-file examples-2x/namespaced-helloget.cs cause the break to manifest |
The 3.1 runtime supposed to have different function signature due to migration of synchronous code to async. I posted example function that worked in the other thread #67 (comment), or you can try this: using System;
using System.Threading.Tasks;
using Kubeless.Functions;
public class module
{
public async Task<object> handler(Event k8Event, Context k8Context)
{
return "hello world";
}
} |
This issue has been reported before and apparently resolved, however, I'm curious if I'm perhaps I'm implementing this incorrectly or running an old version.
For my test I'm using the example file
namespaced-helloget
and using the deployment commandI wait for the function to be loaded:
Then attempt to call the function:
This results in the error:
The logs show:
If this is an error on my part, please could you point to the correct usage pattern?
--- edit
I should mention that this works fine without the namespaced version.
The text was updated successfully, but these errors were encountered: