腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
HttpErrorResponse
angular
7
、
我正在开发一个
angular
7
应用程序,但是我遇到了一个get请求的问题。下面是错误:
HttpErrorResponse
{headers: HttpHeaders, status: 302, statusText: "OK", url: "http://localhost:9090/things/", ok: false, …}0: {thingId:
7
, thingName: "thin
浏览 22
提问于2019-02-16
得票数 2
4
回答
如何在
Angular
5中重定向到401响应的登录页面?
、
、
、
我正在开发一个使用OAuth2隐式流的
Angular
5应用程序。遵循我的auth拦截器: import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@
angular
/common/http';import { Observable } from "rxjs"; @Injectab
浏览 85
提问于2018-06-25
得票数 17
回答已采纳
1
回答
Angular
HttpErrorResponse
我正在尝试通过在请求URL上发送用户名来获取用户购物车,但我收到一个错误。 list: PanieDto[] = [];isLoggedIn = false;showModeratorBoard = false;PanieDocument?: string[] = []; constructor(private router: Router, pri
浏览 8
提问于2021-04-26
得票数 1
回答已采纳
1
回答
角
7
应用程序在firefox中不运行,在chrome和edge中运行良好
、
、
我的Range
7
应用程序在chrome和edge中运行良好,但是由于某种原因在firefox中没有加载,我得到了以下错误: 错误错误:"Uncaught (承诺):
HttpErrorResponse
:normalizedNames:{},"lazyUpdate":null,”headers“:{},"status":0,”statusText“:”未知错误“,"url":null,"ok":false,"name":"
HttpEr
浏览 0
提问于2019-07-02
得票数 0
1
回答
角度截取http错误
、
、
、
但是,我找不到拦截
HttpErrorResponse
的方法。 我尝试了两种方法。} }, if (error instanceof
HttpErrorResponse
我见过人们(https://medium.com/@aleixsuau/error-handling-
angular
-859d529fa53a)在模块中注册ErrorHandler,但我还没有
浏览 12
提问于2019-03-13
得票数 1
回答已采纳
1
回答
使用
Angular
Service Worker发送JWT令牌
、
、
、
、
对于我正在开发的
Angular
7
应用程序,我使用HttpInterceptor在每次请求时发送令牌。currentUser.token}` }); return next.handle(request); } 要将此应用程序转换为渐进式web应用程序,我正在使用@
angular
/service-worker和@
angular
/pwa。
浏览 17
提问于2019-03-18
得票数 2
2
回答
http错误拦截器不工作CatchError不使用角13
、
、
HttpEvent<any>> { .pipe( catchError((error:
HttpErrorResponse
浏览 25
提问于2022-01-08
得票数 1
1
回答
带自定义头的
Angular
- Unit-test
HttpErrorResponse
(HttpClientTestingModule)
、
、
、
、
Observable<any> { .pipe( let error = new Error('',
httpErrorResponse
.status);if (
httpErrorResponse
.header
浏览 15
提问于2020-02-25
得票数 1
4
回答
HttpClient.get报头的角集自动化
、
、
import {Component, OnInit} from '@
angular
/core'; selector: 'git', templateUrl: '.eyJzdWIiOiJzYXNobyIsImF1dGgiOiJST0xFX1VTRVI
浏览 0
提问于2018-04-18
得票数 0
回答已采纳
1
回答
如何在
angular
8中获取http错误响应文本?
、
this.authservice.login.subscribe(res => { }, err => { })); 有谁可以帮我?在err part中,我没有从后端获得响应文本,每次都只显示"Bad Request“。
浏览 14
提问于2020-01-03
得票数 0
回答已采纳
1
回答
错误TypeError:无法读取未定义的属性“openDialogTEST”
、
、
、
catchError(this.myerrorhandle.handleError) } handleError(errorResponse:
HttpErrorResponse
浏览 0
提问于2018-08-30
得票数 1
回答已采纳
1
回答
如何在
Angular
中获取ExceptionMessage
当我在下面的控制台中看到它时,它是暴露的,但我得到:private handleError(error:
HttpErrorResponse
) { // Client-side
浏览 5
提问于2019-11-19
得票数 0
回答已采纳
2
回答
在角4中全局捕获请求,如果没有internet,则停止
、
、
import { Injectable } from '@
angular
/core'; HttpRequest, HttpEvent,HttpInterceptorimport { Observable } from 'rxjs/Observable'; @Injectable
浏览 4
提问于2017-10-18
得票数 7
回答已采纳
1
回答
角6错误处理程序服务中的“无法找到http”
、
、
这是错误处理程序:import { HttpInterceptor, HttpClient,
HttpErrorResponse
} from '@
angular
/common/http';import { Http
浏览 0
提问于2018-08-28
得票数 0
回答已采纳
1
回答
Angular
5拦截器在服务器调用失败时未注销
、
、
this.addToken(request)) catchError((error, ca) => { switch ((<
HttpErrorResponse
>error).status) {在此中添加了请求截取程序的完整代码...不是工作版本,只是添加
浏览 6
提问于2017-12-20
得票数 0
1
回答
如何对角度拦截器进行单元测试
、
、
我一直在寻找测试
Angular
Interceptor代码以进行错误处理的方法,但我似乎找不到方法。pipe( if(err instanceof
HttpErrorResponse
浏览 4
提问于2020-01-24
得票数 1
1
回答
无法获得关于角上茉莉花间谍的有效断言
、
、
、
这是测试:-import {
HttpErrorResponse
} from "@
angular
/common/core"; provid
浏览 2
提问于2019-01-25
得票数 1
2
回答
如何获取角应用程序中的所有控制台错误消息
、
、
我正在处理一个角度应用程序,问题是当我想在一些智能电视上调试它时,没有调试模式,在后台,我有一些导致应用程序崩溃的错误,那么,有什么方法可以获取所有的错误消息并在我的应用程序的页面的一部分中打印它呢?非常感谢
浏览 1
提问于2019-09-24
得票数 1
回答已采纳
1
回答
Angular
GlobalErrorHandler和
HttpErrorResponse
-解析器抛出格式错误的
HttpErrorResponse
、
、
、
我已经在
Angular
6应用程序中创建了全局错误处理程序:handleError(error: Error |
HttpErrorResponse
) { } else if (error instanceof
HttpErrorResponse
) { return null; );
浏览 18
提问于2018-08-01
得票数 2
3
回答
角的HTTP错误处理
、
问候import { Injectable } from '@
angular
/core'; HttpEvent, HttpRequest, HttpResponse return next.handle(request).pipe(
浏览 4
提问于2019-12-09
得票数 1
回答已采纳
点击加载更多
相关
资讯
Angular 和7.0.0-beta.7 发布,Web 前端框架
Angular 7支持虚拟滚动、拖放、CLI Prompts等特性
Angular 001 第一个 Angular App
Web前端:Angular的优缺点以及何时使用Angular?
Angular5 笔记
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券