Skip to content

Unable to invoke dotnet app - Windows 11 #231

@gidduk

Description

@gidduk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions