Skip to content

When running "cargo lambda watch" in examples/http-axum, consistent "internal error watching your project..." #600

@waltojac

Description

@waltojac

I have cloned tried to run the http-axum example locally using cargo lambda watch -p 9001. It does successfully respond to requests, but while it is just sitting, it throws an error and re-compiles every second or so.

ERROR internal error watching your project error=IoError { about: "waiting on process group", err: Os { code: 10, kind: Uncategorized, message: "No child processes" } }
    Finished dev [unoptimized + debuginfo] target(s) in 0.06s
     Running `target/debug/http-basic-lambda`
ERROR internal error watching your project error=IoError { about: "waiting on process group", err: Os { code: 10, kind: Uncategorized, message: "No child processes" } }
    Finished dev [unoptimized + debuginfo] target(s) in 0.06s
     Running `target/debug/http-basic-lambda`

I initially tried running the example from within this parent project, and then pulled it out into its own directory, updating the lambda-runtime and lambda-http dependencies to "0.7.3" and the same error occurs.

I am running this on an M1 Mac. Originally, I had rustc 1.65.0 (897e37553 2022-11-02), but ran rustup update to the latest (rustc 1.67.1 (d5a82bbd2 2023-02-07)) with the same results.

Again, it does still respond successfully to requests over http://localhost:9001/lambda-url/http-basic-lambda, it just keeps recompiling every second or so.

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