How to use ReportProgress?
See original GitHub issueHi,
I enabled Call TransformOptions in nswagstudio
Here is my method:
protected transformOptions(options: any) {
return Promise.resolve({
reportProgress: true,
});
}
When I do a request, now I have:
list.component.ts:111 filter failed Error: An unexpected server error occurred. at new SwaggerException (api.services.ts:2148) at throwException (api.services.ts:2168) at MergeMapSubscriber.project (api.services.ts:870) at MergeMapSubscriber.push…/node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (mergeMap.js:61) at MergeMapSubscriber.push…/node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (mergeMap.js:51) at MergeMapSubscriber.push…/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:55) at Observable._subscribe (api.services.ts:2174) at Observable.push…/node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe (Observable.js:42) at Observable.push…/node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe (Observable.js:28) at MergeMapOperator.push…/node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapOperator.call (mergeMap.js:29)
I would like to be able to subscribe to the upload progression of my request like this: https://stackoverflow.com/questions/42231123/how-to-use-angular2-http-api-for-tracking-upload-download-progress/45222419#45222419
Packages.json: “@angular/animations”: “^6.1.7”, “@angular/cdk”: “^6.4.7”, “@angular/common”: “^6.1.7”, “@angular/compiler”: “^6.1.7”, “@angular/core”: “^6.1.7”, “@angular/forms”: “^6.1.7”, “@angular/http”: “^6.1.7”, “@angular/material”: “^6.4.7”, “@angular/platform-browser”: “^6.1.7”, “@angular/platform-browser-dynamic”: “^6.1.7”, “@angular/router”: “^6.1.7”, “@aspnet/signalr”: “1.0.3”, “@auth0/angular-jwt”: “^2.0.0”, “@covalent/core”: “2.0.0-beta.1”, “angular2-notifications”: “^1.0.4”, “core-js”: “^2.5.7”, “hammerjs”: “^2.0.8”, “lodash”: “^4.17.11”, “rxjs”: “^6.3.2”, “rxjs-compat”: “^6.3.2”, “zone.js”: “^0.8.26”
I use HttpClientModule
How can I configure it to make it work?
Thanks Cedric
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Does someone knows if it is possible to use a custom pipe instead of calling a service? In our case I have to track the progress of different upload requests, therefore I can’t call the same service every time. Here is a similiar question https://github.com/RicoSuter/NSwag/issues/1862.
How about using the ‘transformOptions’ for certain methods and classes only Thanks in advance