#✅ - getAmplifyDataClientConfig gives "The data environment variables are malformed"

4 messages · Page 1 of 1 (latest)

cerulean spruce
#

I'm getting error using the example from the docs: https://docs.amplify.aws/vue/build-a-backend/functions/configure-client-library/
"The data environment variables are malformed. env={..."
related bugfix: https://github.com/aws-amplify/amplify-backend/issues/2320

Using @aws-amplify/backend version ^1.16.1
Using aws-amplify version ^6.15.7

It does look like the getAmplifyDataClientConfig unable to find some env var like AMPLIFY_DATA_GRAPHQL_ENDPOINT?

GitHub

Environment information System: OS: Windows 11 10.0.26100 CPU: (12) x64 13th Gen Intel(R) Core(TM) i5-1335U Memory: 2.08 GB / 15.72 GB Binaries: Node: 22.2.0 - C:\Program Files\nodejs\node.EXE Yarn...

cerulean spruce
#

The problem was with missing data authorization
.authorization(allow => [ allow.resource(lambdaTestFunction) ]);

worn wraithBOT
#

✅ - getAmplifyDataClientConfig gives "The data environment variables are malformed"

#

Marked as solved.