Forum Discussion

sachinksaini's avatar
sachinksaini
New Member
6 years ago

Reg: Does swagger support to async and await ?

Hi,

 

I am getting following error if I use async and await with swagger node with in express

Error: Cannot resolve the configured swagger-router handler: subscriptionController_gettestexpertises
at swaggerRouter (/home/user/repairboss_api/node_modules/swagger-node-runner/node_modules/swagger-tools/middleware/swagger-router.js:414:18)
at swagger_router (/home/user/repairboss_api/node_modules/swagger-node-runner/fittings/swagger_router.js:31:5)
at Runner.<anonymous> (/home/user/repairboss_api/node_modules/bagpipes/lib/bagpipes.js:171:7)
at bound (domain.js:370:14)
at Runner.runBound (domain.js:383:12)
at Runner.pipeline (/home/user/repairboss_api/node_modules/pipeworks/pipeworks.js:72:17)
at Runner.flow (/home/user/repairboss_api/node_modules/pipeworks/pipeworks.js:223:19)
at Pipeworks.flow (/home/user/repairboss_api/node_modules/pipeworks/pipeworks.js:135:17)
at Pipeworks.siphon (/home/user/repairboss_api/node_modules/pipeworks/pipeworks.js:186:19)
at Runner.<anonymous> (/home/user/repairboss_api/node_modules/bagpipes/lib/bagpipes.js:98:22)
at bound (domain.js:370:14)
at Runner.runBound (domain.js:383:12)
at Runner.<anonymous> (/home/user/repairboss_api/node_modules/pipeworks/pipeworks.js:72:17)
at postFlight (/home/user/repairboss_api/node_modules/bagpipes/lib/bagpipes.js:218:3)
at /home/user/repairboss_api/node_modules/bagpipes/lib/bagpipes.js:174:9
at expressCompatibility (/home/user/repairboss_api/node_modules/swagger-node-runner/fittings/express_compatibility.js:41:3)

 

Some buddy please help me out..

No RepliesBe the first to reply