Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected token < in JSON at position 0 #150

Open
leonardo-beabr opened this issue May 13, 2020 · 1 comment
Open

SyntaxError: Unexpected token < in JSON at position 0 #150

leonardo-beabr opened this issue May 13, 2020 · 1 comment

Comments

@leonardo-beabr
Copy link

I have an AWS Lambda function with slackbots and in some cases, I receive this error:
{
"errorType": "Error",
"errorMessage": "SyntaxError: Unexpected token < in JSON at position 0",
"stack": [
"Error: SyntaxError: Unexpected token < in JSON at position 0",
" at /var/task/node_modules/slackbots/index.js:46:33",
" at Array. (/var/task/node_modules/vow/lib/vow.js:773:56)",
" at callFns (/var/task/node_modules/vow/lib/vow.js:24:35)",
" at processTicksAndRejections (internal/process/task_queues.js:79:11)"
]
}

@leonardo-beabr
Copy link
Author

In this AWS Lambda function, I changed the number of retries of 0 to 1 and this message didn't appear anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant