lambda-error-hound icon indicating copy to clipboard operation
lambda-error-hound copied to clipboard

Error: Cannot promisify an API that has normal methods with 'Async'-suffix

Open lyndenzhang opened this issue 7 years ago • 6 comments

$ lambda-error-hound error -f MyLambdaFunction /usr/lib/node_modules/lambda-error-hound/node_modules/bluebird/js/release/promisify.js:54 throw new TypeError("Cannot promisify an API that has normal methods with '%s'-suffix\u000a\u000a See http://goo.gl/MqrFmX\u000a" ^

TypeError: Cannot promisify an API that has normal methods with 'Async'-suffix

See http://goo.gl/MqrFmX

at checkValid (/usr/lib/node_modules/lambda-error-hound/node_modules/bluebird/js/release/promisify.js:54:27)
at promisifiableMethods (/usr/lib/node_modules/lambda-error-hound/node_modules/bluebird/js/release/promisify.js:77:5)
at promisifyAll (/usr/lib/node_modules/lambda-error-hound/node_modules/bluebird/js/release/promisify.js:241:9)
at Function.Promise.promisifyAll (/usr/lib/node_modules/lambda-error-hound/node_modules/bluebird/js/release/promisify.js:311:12)
at Object.<anonymous> (/usr/lib/node_modules/lambda-error-hound/index.js:10:23)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3

lyndenzhang avatar Sep 11 '18 16:09 lyndenzhang

node --version v8.11.4

lyndenzhang avatar Sep 11 '18 16:09 lyndenzhang

same here

Duncan00 avatar Nov 02 '18 06:11 Duncan00

you can get around the error, by cloning the repo and running:

npm install
node index.js error -f "<short_lambda_name>"

as the error is caused by upgraded aws lib

tszpinda avatar Apr 03 '19 07:04 tszpinda

Wouldn't it be better if the proper aws package version was specified?

trondhindenes avatar Oct 13 '19 20:10 trondhindenes

I'm still having this problem. node --version is v12.13.1. I tried doing @tszpinda's suggestion but I still get the same error. Does anyone have any ideas?

abisee avatar Dec 17 '19 02:12 abisee

This package looked so promising... sigh :-/

ronkorving avatar Feb 02 '22 01:02 ronkorving