We are currently building an application with an API based on Laravel and an Angular 5 frontend. We are no experts with either one of these so we are progressing rather slow. One error keeps popping up a lot lately:
HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: null, ok: false, …}
error: ProgressEvent {isTrusted: true, lengthComputable: false, loaded: 0, total: 0, type: "error", …}
headers:HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)}
message:"Http failure response for (unknown url): 0 Unknown Error"
name:"HttpErrorResponse"
ok:false
status:0
statusText:"Unknown Error"
url:null
__proto__:HttpResponseBase
I already spent a few hours yesterday and now today, too, on trying to find the culprit. I found a lot of possible reasons why this is happening but so far, nothing seems to be what is wrong in our case. And strangely it only happens on PUT requests. Everything else works without errors.
So if someone has a hint or an idea where this might come from, please comment! I am fully aware that this might be a total noob error or ignorance on my side, feel free to tell me how stupid i am if you know where i missed something obvious :)
Thank you!