content-aggregator-example
content-aggregator-example copied to clipboard
WriteToGithub lambda throws new / different error than #2
Oddly, this issue has popped up for me and googling doesn't surface any solutions.
{
"errorType": "SyntaxError",
"errorMessage": "Unexpected end of JSON input",
"trace": [
"SyntaxError: Unexpected end of JSON input",
" at JSON.parse (
Using this as a reference-->
https://github.com/aws-samples/content-aggregator-example/issues/2
Have tried to use with/without backslashes on both the github repo reference and the content.json reference in the SAM template.
github-repo/foo
github-repo/foo/
and
/frontend/content.json
frontend/content.json
Moreover, there is a space in the WriteToGitHub.js github key reference that I removed for my own repo. But no difference in error.
const singleParam = { Name: '/GitHubAPIKey ',WithDecryption: true }; --> const singleParam = { Name: '/GitHubAPIKey',WithDecryption: true };
The collection process works and there are numerous entries in the input before this lambda triggers.
Appreciate any trailheads.
TIA.