Advertisement
Guest User

Untitled

a guest
Apr 27th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. issue found after angular update:
  2.  
  3. 1. * issue:
  4. -"sockjs.js:1679 WebSocket connection to 'ws://ae.citzy.com/sockjs-node/314/xptyayav/websocket' failed: Error during WebSocket handshake: Incorrect 'Sec-WebSocket-Accept' header value"
  5.  
  6. * possible solution:
  7. - based on https://github.com/aspnet/SignalR/issues/1585 and https://github.com/SignalR/SignalR/issues/3691
  8. just need to install websocket in IIS
  9.  
  10. 2. * issue:
  11. -"GET http://citzy.com/api/services/app/UserProfile/GetItems?IsActive=true 401 (Unauthorized)"
  12. "POST http://citzy.com/api/services/web/Item/UploadImage 500 (Internal Server Error)"
  13. Not getting the current user and tenant Id
  14.  
  15. * solution:
  16. Need implement new http-interceptor, that is by default send the authorization token from every http request.
  17. This occurs again because the previous implementation supports Http from @angular/http (Http has been depreciated https://angular.io/api/http/Http)
  18. but since we upgraded to HttpClient from @angular/common/http we need to a new implementation by extending HttpInterceptor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement