create-client icon indicating copy to clipboard operation
create-client copied to clipboard

An Error ERR_UNHANDLED_REJECTION

Open bhtomming opened this issue 3 years ago • 1 comments

API Platform version(2.7) affected: x.y.z "vuetify": "^2.4.0","vuex-map-fields": "^1.4.1" generate-api-platform-client 0.7.3 Description

When I run npx @api-platform/client-generator -g vuetify https://demo.api-platform.com src/ ,it can generator part of resoures ,but also return an error

Additional Context

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".

bhtomming avatar Jan 29 '22 03:01 bhtomming

Have you solved your issue ?

API Platform version(2.7) affected: x.y.z "vuetify": "^2.4.0","vuex-map-fields": "^1.4.1" generate-api-platform-client 0.7.3 Description

When I run npx @api-platform/client-generator -g vuetify https://demo.api-platform.com src/ ,it can generator part of resoures ,but also return an error

Additional Context

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".

Mister6mik avatar Aug 04 '22 12:08 Mister6mik

I cannot reproduce it in the main branch: image

alanpoulain avatar Aug 23 '22 10:08 alanpoulain