I'm using a set of generated classes for angular2 in a nativescript application. Logging in works fine, I get the token and all is well. Logging out works fine on the server (auth_token parameter is set) and completes with status 204. At this point the client-side framework classifies the response as an error and things go pear shaped. The response coming out the generated logout function now reads "Server Error", mostly because of this line in error.service.ts:
What type of issue are you creating?
What version of this module are you using?
Write other if any:
Please add a description for your issue:
I'm using a set of generated classes for angular2 in a nativescript application. Logging in works fine, I get the token and all is well. Logging out works fine on the server (auth_token parameter is set) and completes with status 204. At this point the client-side framework classifies the response as an error and things go pear shaped. The response coming out the generated logout function now reads "Server Error", mostly because of this line in error.service.ts:
return Observable.throw(error.json().error || 'Server error');
However, the error must happen further up, where the 204 or the logout response in general is handled badly and qualified as an error.