sid88in / serverless-appsync-plugin

serverless plugin for appsync
MIT License
951 stars 189 forks source link

Failed to parse secret... malformed Json #462

Closed oakstreetrec closed 2 years ago

oakstreetrec commented 2 years ago

Is anyone else all of a sudden having an issue with connections to a type: RELATIONAL_DATABASE within dataSources? In this case it's my MySQL Aurora DB.

This has been working for me for years and all of a sudden today I'm getting back errors to the AppSync queries in my app. The error message is:

"message": "RDSHttp:{\"message\":\"Failed to fetch secret Failed to parse secret [ARN to DB Secret]: malformed Json\"}"

oakstreetrec commented 2 years ago

Nevermind - I edited my secret into proper json (it had single quotes around property values instead of double quotes) and it's working now. If anyone runs into this issue, it looks like somewhere along the chain, json in your secret that is malformed in this way won't make it through anymore so you have to make sure you update it.