简体   繁体   English

Flutter Dio:DioError [DioErrorType.RESPONSE]:Http 状态错误 [429]

[英]Flutter Dio : DioError [DioErrorType.RESPONSE]: Http status error [429]

Can anyone help me out how to solve this error.谁能帮我解决这个错误。 I am trying to build an RESTAPI with Flutter DIO.我正在尝试使用 Flutter DIO 构建 RESTAPI。 I am trying to Update my user profile.我正在尝试更新我的用户个人资料。 But when I open my keyboard in mobile using TextField or TextFormField, I am getting this error.但是,当我使用 TextField 或 TextFormField 在移动设备中打开键盘时,出现此错误。 I dont have any idea why its showing this error and once I open my keyboard in mobile,DIO is getting all GET request automatically.我不知道为什么会显示此错误,一旦我在移动设备中打开键盘,DIO 就会自动获取所有 GET 请求。

I/flutter ( 5005): Error : DioError [DioErrorType.RESPONSE]: Http status error [429]

Dependency:依赖:

  dio: ^3.0.10

HTTP 429 means, you sent too many requests. HTTP 429 表示,您发送了太多请求。 so make sure that you set (connectTimeout & receiveTimeout) at Dio(BaseOptions()).. it works for me所以请确保您在 Dio(BaseOptions()) 设置 (connectTimeout & receiveTimeout) .. 它对我有用

The solution is simple According to the attached image, you sent too many requests Therefore, you can log in to the https://newsapi.org page with another account and get a new API and Put it in place of the old one.解决方法很简单,根据附图,你发送的请求太多了,所以,你可以用另一个账户登录https://newsapi.org页面,获取一个新的API,并用它来代替旧的。

enter image description here在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter:DioError [DioErrorType.RESPONSE]:Http 状态错误 [500] - Flutter: DioError [DioErrorType.RESPONSE]: Http status error [500] Flutter DioError [DioErrorType.RESPONSE]: Http 状态错误 [403] - Flutter DioError [DioErrorType.RESPONSE]: Http status error [403] Flutter Dio Form Data post给出400错误响应DioError [DioErrorType.response]:Http状态错误[400] - Flutter Dio Form Data post giving 400 error response DioError [DioErrorType.response]: Http status error [400] 无法捕获 dioerror [dioerrortype.response]:http 状态错误 [statusCode] - Unable to catch dioerror [dioerrortype.response]: http status error [statusCode] DioError [DioErrorType.RESPONSE]: Http 状态错误 [405] [已解决] - DioError [DioErrorType.RESPONSE]: Http status error [405] [Solved] DioError [DioErrorType.response]:Http 状态错误 [401] - DioError [DioErrorType.response]: Http status error [401] DioError [DioErrorType.RESPONSE]:Http 状态错误 [404] - DioError [DioErrorType.RESPONSE]: Http status error [404] DioError [DioErrorType.RESPONSE]: Http 状态错误 [400] 异常 - DioError [DioErrorType.RESPONSE]: Http status error [400] Exception DioError [DioErrorType.RESPONSE]:Http 状态错误 [500],为什么? - DioError [DioErrorType.RESPONSE]: Http status error [500], why? I/flutter (28276):此处发现错误 DioError [DioErrorType.response]:Http 状态错误 [404] - I/flutter (28276): Error found Here DioError [DioErrorType.response]: Http status error [404]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM