aws-samples / aws-samples/aws-lambda-extensions

Error in python-example-logs-api-extension: Unexpected JSON Parsing Issue

Open
#95 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
487
Forks
144
PR merge metrics
No merged PRs in 30d

Description

Hi team, I am encountering below output during subsequent calls to my lambda function. The output from the console is:
```
Test Event Name
TestEvent

Response
Calling the invoke API action failed with this message: Unexpected non-whitespace character after JSON at position 7 (line 1 column 8)

Function Logs

Request ID

```
I have followed the instructions in that directory and using the layer published following them.
Tried on runtimes: Python 3.10, Python 3.9
The invocation does not fail for the first time i.e invocation after shutdown event but fails for the subsequent invoke calls.

Thanks

Contributor guide

Open the contributing guide

Research direction

Begin in the python-example-logs-api-extension directory and reproduce the failure on a supported Python runtime, comparing the first invocation with subsequent calls after shutdown. Done means repeated Lambda invocations complete without the reported JSON parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.