Skip to content

Difficult to understand error when missing mutation permissions in resource.ts #3046

@lets-getitnow

Description

@lets-getitnow

Environment information

Latest

Describe the feature

From: https://discord.com/channels/705853757799399426/1350993554939318292

We see this error,
{"errorType":"Error","errorMessage":"The data environment variables are malformed. env={\"QUERY_LIMIT\":\"3\",\"AWS_LAMBDA_FUNCTION_VERSION\":\"$LATEST\",\"AWS_SESSION_TOKEN\":\"abc123\",\"LD_LIBRA

it was caused by not having
allow.resource(<my-func>).to(['query','mutate'])

Error should be more clear. Took us days to track down.

Use case

Basic config

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions