Skip to content

json: cannot unmarshal string into Go struct field APIGatewayProxyRequestContext.authorizer #154

Closed
@Yenchu

Description

@Yenchu

When integrating with api gateway WebSocket API, got error in CloudWatch log:
json: cannot unmarshal string into Go struct field APIGatewayProxyRequestContext.authorizer of type map[string]interface {}: UnmarshalTypeError null

To log requestContext info, the field authorizer is empty:
requestContext:map[stage:... authorizer: messageId:<nil>...

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