Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
105 views
in Technique[技术] by (71.8m points)

java - Multiple API Calls React in Parent & Child Component

I am using react for displaying User Details and Account Details

  1. I have parent component
  2. I have a child component

I fetch userDetails from USERAPI call and from the list I get number of accounts for the user, and for each account of the user I pass the accountID to a ACCOUNTAPI call , fetch the account details and display.

If there are more than 10 accounts for user I am getting 429 Error 'To many requests' from API , How do call API's for avoiding this error.

question from:https://stackoverflow.com/questions/65935120/multiple-api-calls-react-in-parent-child-component

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Maybe you are calling in a free APIREST and this has a limit for your requests. Maybe.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...