I'm trying to use axios in convex
I'm trying to use axios in convex, but I'm getting:
Error: Uncaught AxiosError: Adapter xhr is not supported by the environment
at getAdapter [as getAdapter] (../../node_modules/axios/lib/adapters/adapters.js:39:10)
at dispatchRequest (../../node_modules/axios/lib/core/dispatchRequest.js:50:30)
at request [as request] (../../node_modules/axios/lib/core/Axios.js:146:6)
at httpMethod (../../node_modules/axios/lib/core/Axios.js:185:8)
at wrap (../../node_modules/axios/lib/helpers/bind.js:3:9)
at getAccessToken (../../convex/kyc/quadrata.ts:46:12)
at handler (../../convex/kyc/quadrata.ts:65:27)
at ConvexHttpClient.action (/home/node/app/node_modules/convex/dist/cjs/browser/http_client.js:253:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async WalletService.updateWalletDocumentsFromQuadrata (/home/node/app/dist/src/wallet/services/wallet.service.js:54:22)
at async WalletService.getWallet (/home/node/app/dist/src/wallet/services/wallet.service.js:153:20)
at async WalletService.getWalletInfo (/home/node/app/dist/src/wallet/services/wallet.service.js:44:28)
at async WalletController.getWalletInfo (/home/node/app/dist/src/wallet/wallet.controller.js:27:16)
at async /home/node/app/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /home/node/app/node_modules/@nestjs/core/router/router-proxy.js:9:17Error: Uncaught AxiosError: Adapter xhr is not supported by the environment
at getAdapter [as getAdapter] (../../node_modules/axios/lib/adapters/adapters.js:39:10)
at dispatchRequest (../../node_modules/axios/lib/core/dispatchRequest.js:50:30)
at request [as request] (../../node_modules/axios/lib/core/Axios.js:146:6)
at httpMethod (../../node_modules/axios/lib/core/Axios.js:185:8)
at wrap (../../node_modules/axios/lib/helpers/bind.js:3:9)
at getAccessToken (../../convex/kyc/quadrata.ts:46:12)
at handler (../../convex/kyc/quadrata.ts:65:27)
at ConvexHttpClient.action (/home/node/app/node_modules/convex/dist/cjs/browser/http_client.js:253:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async WalletService.updateWalletDocumentsFromQuadrata (/home/node/app/dist/src/wallet/services/wallet.service.js:54:22)
at async WalletService.getWallet (/home/node/app/dist/src/wallet/services/wallet.service.js:153:20)
at async WalletService.getWalletInfo (/home/node/app/dist/src/wallet/services/wallet.service.js:44:28)
at async WalletController.getWalletInfo (/home/node/app/dist/src/wallet/wallet.controller.js:27:16)
at async /home/node/app/node_modules/@nestjs/core/router/router-execution-context.js:46:28
at async /home/node/app/node_modules/@nestjs/core/router/router-proxy.js:9:17