You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-06-06 15:21:33,716 NewRelic WARN: [pid: 16, tid: 9] Unexpected exception in AddEventTypeAttributes(). Event type APIGatewayProxyRequest had an inputObject of type Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest. Exception: System.ArgumentNullException: Value cannot be null. (Parameter 'parameters')
at NewRelic.Agent.Core.Transactions.Transaction.SetRequestParameters(IEnumerable`1 parameters)
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1)
at NewRelic.Agent.Extensions.Lambda.LambdaEventHelpers.SetWebRequestProperties(IAgent agent, ITransaction transaction, Object webReqEvent)
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid4[T0,T1,T2,T3](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at NewRelic.Agent.Extensions.Lambda.LambdaEventHelpers.AddEventTypeAttributes(IAgent agent, ITransaction transaction, AwsLambdaEventType eventType, Object inputObject)
2024-06-06 15:21:33,734 NewRelic ERROR: [pid: 16, tid: 9] Tracer invocation error
System.ArgumentNullException: Value cannot be null. (Parameter 'parameters')
at NewRelic.Agent.Core.Transactions.Transaction.SetRequestParameters(IEnumerable`1 parameters)
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1)
at NewRelic.Agent.Extensions.Lambda.LambdaEventHelpers.SetWebRequestProperties(IAgent agent, ITransaction transaction, Object webReqEvent)
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid4[T0,T1,T2,T3](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at NewRelic.Agent.Extensions.Lambda.LambdaEventHelpers.AddEventTypeAttributes(IAgent agent, ITransaction transaction, AwsLambdaEventType eventType, Object inputObject)
at NewRelic.Providers.Wrapper.AwsLambda.HandlerMethodWrapper.BeforeWrappedMethod(InstrumentedMethodCall instrumentedMethodCall, IAgent agent, ITransaction transaction)
at NewRelic.Agent.Core.Wrapper.WrapperService.BeforeWrappedMethod(Type type, String methodName, String argumentSignature, Object invocationTarget, Object[] methodArguments, String tracerFactoryName, String metricName, UInt32 tracerArguments, UInt64 functionId)
at NewRelic.Agent.Core.AgentManager.GetTracerImpl(String tracerFactoryName, UInt32 tracerArguments, String metricName, String assemblyName, Type type, String typeName, String methodName, String argumentSignature, Object invocationTarget, Object[] arguments, UInt64 functionId)
The problem appears to be in this method on line 295.
Expected Behavior
It just works, or at least an null exceptions are handled.
Steps to Reproduce
Here is the meat of the lambda function:
public APIGatewayProxyResponse FunctionHandler(APIGatewayProxyRequest request, ILambdaContext context) => new APIGatewayProxyResponse()
{
StatusCode = 200,
Body = Environment.GetEnvironmentVariable(new Guid().ToString())
};
Publish this, add the layer, and send the initial JSON and the error occurs.
For Maintainers Only or Hero Triaging this bug
P2
S
The text was updated successfully, but these errors were encountered:
Description
Lambda function: APIGatewayProxyRequest
When sending the following json to an APIGatewayProxyRequest lambda function, it fails with System.ArgumentNullException errors.
Exceptions:
The problem appears to be in this method on line 295.
Expected Behavior
It just works, or at least an null exceptions are handled.
Steps to Reproduce
Here is the meat of the lambda function:
Publish this, add the layer, and send the initial JSON and the error occurs.
For Maintainers Only or Hero Triaging this bug
P2
S
The text was updated successfully, but these errors were encountered: