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

Unable to invoke dotnet app - Windows 11 #231

Open
gidduk opened this issue Nov 27, 2024 · 0 comments
Open

Unable to invoke dotnet app - Windows 11 #231

gidduk opened this issue Nov 27, 2024 · 0 comments

Comments

@gidduk
Copy link

gidduk commented Nov 27, 2024

I followed the instructions at this article however when I try to invoke the sample application it throws an error "Error invoking function. status: 500 message: internal server error"
Log mentions error="API error (400): You should always set the Memory limit when using Memoryswap limit, see usage"
I am not sure what I am missing here, any help much appreciated.

C:\00.Source\dotnetfn>docker stats --no-stream
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
5534277d720d fnserver 0.27% 4.766MiB / 1.927GiB 0.24% 1.57kB / 0B 0B / 0B 10

.wslconfig entry
[wsl2]
memory=2GB
swap=3GB
swapfile=C:\temp\wsl-swap.vhdx
processors=2

func.yaml
schema_version: 20180708
name: dotnetfn
version: 0.0.9
runtime: dotnet
build_image: fnproject/dotnet:8.0-1.0.39-dev
run_image: fnproject/dotnet:8.0-1.0.39
cmd: Function:Greeter:greet
entrypoint: dotnet Function.dll
memory: 128
idle_timeout: 600

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

1 participant