Ответсообщение недоступно
Ссылка
нажмите — покажем
нажмите — покажем
Добрый день, попытался использовать библиотеку -
google-api-nodejs-client, но получаю ошибку - ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING.
Как-то можно решить данную проблему?
Err GaxiosError: Unexpected Gaxios Error
at Gaxios._request (/app/files/node_modules/gaxios/build/cjs/src/gaxios.js:168:23) {
config: {
method: 'POST',
url: URL {
href: 'https://oauth2.googleapis.com/token',
origin: 'https://oauth2.googleapis.com',
protocol: 'https:',
username: '',
password: '',
host: 'oauth2.googleapis.com',
hostname: 'oauth2.googleapis.com',
port: '',
pathname: '/token',
search: '',
searchParams: URLSearchParams {},
hash: ''
},
data: URLSearchParams {
'grant_type' => '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.',
'assertion' => '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.' },
responseType: 'json',
retryConfig: {
httpMethodsToRetry: [Array],
currentRetryAttempt: 2,
retry: 3,
noResponseRetries: 2,
retryDelayMultiplier: 2,
timeOfFirstRequest: 1761903220719,
totalTimeout: 9007199254740991,
maxRetryDelay: 9007199254740991,
statusCodesToRetry: [Array]
},
body: URLSearchParams {
'grant_type' => '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.',
'assertion' => '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.' },
validateStatus: [Function: validateStatus],
errorRedactor: [Function: defaultErrorRedactor],
duplex: 'half',
headers: Headers {
accept: 'application/json',
'x-goog-api-client': 'gl-node/22.15.1',
'User-Agent': 'google-api-nodejs-client/10.5.0'
}
},
response: undefined,
code: 'ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING',
status: undefined,
error: undefined,
[Symbol(gaxios-gaxios-error)]: '7.1.2',
[cause]: TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:272:9)
at #getFetch (/app/files/node_modules/gaxios/build/cjs/src/gaxios.js:520:16)
at Gaxios._defaultAdapter (/app/files/node_modules/gaxios/build/cjs/src/gaxios.js:112:32)
at Gaxios._request (/app/files/node_modules/gaxios/build/cjs/src/gaxios.js:144:49)
at Gaxios._request (/app/files/node_modules/gaxios/build/cjs/src/gaxios.js:179:29) {
code: 'ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING'
}
}