"Cannot promisify an API that has normal methods with 'Async'-suffix\n\n See http://goo.gl/MqrFmX\n
justEnergy1304 opened this issue · 0 comments
(This issue tracker is only for bug reports or feature requests, if this is neither, please choose appropriate channel from http://bluebirdjs.com/docs/support.html)
Please answer the questions the best you can:
- What version of bluebird is the issue happening on?
"bluebird": "3.5.0", "bluebird": "3.7.2" - What platform and version? (For example Node.js 0.12 or Google Chrome 32)
Nodejs 18 - Did this issue happen with earlier version of bluebird?
no
(Write description of your issue here, stack traces from errors and code that reproduces the issue are helpful)
we have used the older version on nodejs6.10, we want to update the latest version of nodejs 18 we are getting the below error.
const AWS = require('aws-sdk');
const Promise = require('bluebird');
const crypto = Promise.promisifyAll(require('crypto'));
Promise.promisifyAll(Object.getPrototypeOf(sts));
Promise.promisifyAll(Object.getPrototypeOf(cognitoIdentity));
Promise.promisifyAll(Object.getPrototypeOf(dynamo));
{
"errorType": "TypeError",
"errorMessage": "Cannot promisify an API that has normal methods with 'Async'-suffix\n\n See http://goo.gl/MqrFmX\n",
"trace": [
"TypeError: Cannot promisify an API that has normal methods with 'Async'-suffix",
"",
" See http://goo.gl/MqrFmX",
"",
" at checkValid (/var/task/node_modules/bluebird/js/release/promisify.js:54:27)",
" at promisifiableMethods (/var/task/node_modules/bluebird/js/release/promisify.js:77:5)",
" at promisifyAll (/var/task/node_modules/bluebird/js/release/promisify.js:241:9)",
" at Promise.promisifyAll (/var/task/node_modules/bluebird/js/release/promisify.js:311:12)",
" at Object. (/var/task/services/auth.js:26:9)",
" at Module._compile (node:internal/modules/cjs/loader:1218:14)",
" at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)",
" at Module.load (node:internal/modules/cjs/loader:1081:32)",
" at Module._load (node:internal/modules/cjs/loader:922:12)",
" at Module.require (node:internal/modules/cjs/loader:1105:19)",
" at require (node:internal/modules/cjs/helpers:103:18)",
" at Object. (/var/task/middlewares/auth.js:5:14)",
" at Module._compile (node:internal/modules/cjs/loader:1218:14)",
" at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)",
" at Module.load (node:internal/modules/cjs/loader:1081:32)",
" at Module._load (node:internal/modules/cjs/loader:922:12)"
]
}