-
Notifications
You must be signed in to change notification settings - Fork 343
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
Extension registration fails with Error("EOF while parsing a value", line: 1, column: 0)
#922
Comments
Capturing the request response flow...
Looks like the client is trying to parse JSON from an empty body, though I can't make it work even if I hack the response to 204 or replace the response body with valid JSON. |
This is a bug in Cargo Lambda. cargo-lambda/cargo-lambda#690 fixes the problem. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Perfect - Thx |
I have the simplest possible generic extension designed to be run from a script so the script doesn't need to mess with the whole registration protocol via curl etc.
My original script (which does mess with curl) works well with the
cargo lambda watch --only-lambda-apis -a 127.0.0.1 -p 2807
test runtime server.Running this program, however, appears to get just about all the way through registration but then terminates with
Error("EOF while parsing a value", line: 1, column: 0)
- looks very JSON issue-y to me :).The source is:
Note that I am building this with
cargo build
notcargo lambda build --extension
because I'm building the Extension.The intended use is something like this as the actual extensions script (that's simplistic, of course, but you get the idea I hope);
This works in the real Lambda service.
Trace logs:
The text was updated successfully, but these errors were encountered: