REVANTH N D
REVANTH N D

Reputation: 307

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. 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. 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.

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

Dependency:

  dio: ^3.0.10

Upvotes: 1

Views: 4053

Answers (2)

Mahmoud Barakat
Mahmoud Barakat

Reputation: 1

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.

enter image description here

Upvotes: 0

M0o0dy
M0o0dy

Reputation: 11

HTTP 429 means, you sent too many requests. so make sure that you set (connectTimeout & receiveTimeout) at Dio(BaseOptions()) .. it works for me

Upvotes: 1

Related Questions