A weird error is causing my AWS lambda functions to malfunction. I’ve never had this error before but I’m pretty sure it has nothing to do with my code. Here’s what it looks like in CloudWatch :
Ingestion server error
{
"request": {
"url": "https://core.serverless.com/ingestion/kinesis/v1/request-response",
"headers": {
"accept-encoding": "gzip",
"content-type": "application/json",
"serverless_token": "[redacted]"
}
},
"response": {
"status": 500,
"text": "{\"message\":\"Something went wrong forwarding RequestResponseEvent data.\"}"
}
}
All my Google searches have yielded no solutions.
I also found a bunch of environment variables set in my lambda functions. What are theses? The link in the error appears in this table :
Key | Value |
---|---|
AWS_LAMBDA_EXEC_WRAPPER | /opt/otel-extension/internal/exec-wrapper.sh |
OTEL_RESOURCE_ATTRIBUTES | sls_service_name=ODAC-API,sls_stage=dev,sls_org_id=V2X12K6Qcrb4ssp2cM |
SLS_OTEL_REPORT_LOGS_URL | https:// core.serverless .com/ ingestion/kinesis/v1/logs |
SLS_OTEL_REPORT_METRICS_URL | https:// core.serverless .com/ ingestion/kinesis/v1/metrics |
SLS_OTEL_REPORT_REQUEST_HEADERS | serverless_token=[redacted] |
SLS_OTEL_REPORT_REQUEST_RESPONSE_URL | https://core.serverless.com/ingestion/kinesis/v1/request-response |
SLS_OTEL_REPORT_TRACES_URL | https://core.serverless.com/ingestion/kinesis/v1/traces |
SLS_OTEL_USER_SETTINGS | {} |
(Had to add some spaces to the first two links since my post was apparently limited to 2).
Any thoughts on why this is occurring? I’m desperate for some insight.
Also, this error only happens occasionally but during say an hour or so. I need my system to be predictable… Could it have something to do with the “sls --console” command that I ran a few days ago ?