aliyun / darabonba-openapi

15 stars 8 forks source link

Error `this._credential.getCredential is not a function` #156

Closed Neumann-Nils closed 4 months ago

Neumann-Nils commented 4 months ago

When updating to the newest version of @alicloud/openapi-client to 0.4.10, we receive the following error when trying to run createClientCertificateWithCsrWithOptions:

this._credential.getCredential is not a function

Looking into the changes, this error is caused by the changes introduced in https://github.com/aliyun/darabonba-openapi/pull/149. We have debugged the problem and in our case, the this._credential only has our credential configuration but indeed no getCredential function.

Can you advise us how to fix this issue?

JacksonTian commented 4 months ago

Please update the indirect module @alicloud/credentials package to latest version.

Neumann-Nils commented 4 months ago

@JacksonTian That seems to fix it, thanks :)