Skip to content

Tag: javascript

NestJs async httpService call

How can I use Async/Await on HttpService using NestJs? The below code doesn`t works: Answer The HttpModule uses Observable not Promise which doesn’t work with async/await. All HttpService methods return Observable<AxiosResponse<T>>. So you can either transform it to a Promise and then use aw…

FileInterceptor doesn’t work

What am I doing wrong? file is undefined Answer The code works as expected in a fresh project. Hence, the dependencies are corrupt. Deleting the node_modules folder and running npm install solves the problem.