Skip to content
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

Calling function created with csharp template results in error #90

Closed
ericstoekl opened this issue Sep 11, 2017 · 2 comments
Closed

Calling function created with csharp template results in error #90

ericstoekl opened this issue Sep 11, 2017 · 2 comments

Comments

@ericstoekl
Copy link
Contributor

When I try to call a function created with the C# template, I get the following result:

$ curl http://localhost:8080/function/csharp-hello-app -d "stuff"
exit status 145
Did you mean to run dotnet SDK commands? Please install dotnet SDK from: 
  http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

This error code apparently indicates that the image that is built does not have the SDK installed. (https://stackoverflow.com/questions/42346498/dotnet-aspnetcore-docker-build-fails-with-a-145-error-code)

Are others seeing this issue? I'm deploying by adding the following to ./samples.yml:

  functions:
    csharp-hello-app:
      lang: csharp
      handler: ./sample/csharp-hello
      image: yourname/csharp-hello-app

Expected Behaviour

Csharp app echos input.

Current Behaviour

Returns exit status 145

Possible Solution

Steps to Reproduce (for bugs)

  1. Copy the following into the functions: block of your yaml file:
    csharp-hello-app:
      lang: csharp
      handler: ./sample/csharp-hello
      image: yourname/csharp-hello-app
  1. run faas-cli build -f <yourfile.yaml>
  2. run faas-cli deploy -f <yourfile.yaml>
  3. curl http://localhost:8080/function/csharp-hello-app -d "stuff"

Context

Your Environment

  • Docker version docker version (e.g. Docker 17.0.05 ):
    17.06.1-ce
  • Are you using Docker Swarm or Kubernetes (FaaS-netes)?
    swarm
  • Operating System and version (e.g. Linux, Windows, MacOS):
    ubuntu 16.04
  • Link to your project or a code example to reproduce issue:
@alexellis
Copy link
Member

It's to do with fprocess. Can you upgrade the cli?

@ericstoekl
Copy link
Contributor Author

Correct, my apologies. Must have forgot to rebuild the cli since using some other changes... 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants