I ran across this error, and the problem was that I simply had not actually deployed the lambda function.