Angular 错误:未捕获(承诺中):HttpErrorResponse:{headers";:{normalizedNames";:[],“statusText";:“Bad Request”}仅在Safari浏览器上
在Safari浏览器上调用PUT方法时,角度应用程序出现以下错误,但在Chrome浏览器上同样工作正常Angular 错误:未捕获(承诺中):HttpErrorResponse:{headers";:{normalizedNames";:[],“statusText";:“Bad Request”}仅在Safari浏览器上,angular,promise,angular6,Angular,Promise,Angular6,在Safari浏览器上调用PUT方法时,角度应用程序出现以下错误,但在Chrome浏览器上同样工作正常 returnData = await this.http.put(applicationUrl, formattedData).toPromise(); [Error] Failed to load resource: the server responded with a status of 503 (Service Unavailable) (pixel, line
returnData = await this.http.put(applicationUrl, formattedData).toPromise();
[Error] Failed to load resource: the server responded with a status of 503 (Service Unavailable)
(pixel, line 0)
[Error] Failed to load resource: the server responded with a status of 503 (Service Unavailable)
(setuid, line 0)
[Error] Failed to load resource: the server responded with a status of 400 (Bad Request) (11929, line 0)
[Error] Error: Uncaught (in promise): HttpErrorResponse:
{"headers":{"normalizedNames":[],"lazyUpdate":null},"status":400,"statusText":"Bad Request","url":"http://localhost:4200/api/application/11929","ok":false,"name":"HttpErrorResponse","message":"Http failure