我正在用NestJS编写API,它有一组通用的头。我决定使用拦截器将头附加到传出请求。标头不会被附加到请求中,因此请求继续失败。import * as utils from '../utils/utils'; CallHandler, Injectable,} from '@nestjsACCEPT_ENCODING = 'accept-encodin
我正在NestJS上实现一个API,它将使用另一个API,我使用@nestjs/axios。我遵循了这个教程:它抛出了一个异常,因为:
ERROR [ExceptionHandler] Nest can't resolve dependenciesof the HttpService (?).Please make sure that the argumen
Type 'import("/Users/apple/Dev/back-end-api/node_modules/axios/index").AxiosAdapter' is not assignableto type 'import("/Users/apple/Dev/back-end-api/node_modules/@nestjs