[英]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,并用它来代替旧的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.