Bayut

FREEMIUM
Verified
✓
By Api Dojo | Updated 9 days ago | Business
Popularity

9.8 / 10

Latency

2,060ms

Service Level

100%

Health Check

N/A

Back to All Discussions

my issue

Rapid account: Devanshkariya 618
devanshkariya618
2 years ago

I am using React to build this real estate website. And it runs properly the first time but everytime i reload the site i get an error:
Uncaught TypeError: Cannot read properties of undefined (reading ‘map’)

Rapid account: Apidojo
apidojo Commented 2 years ago

Hello,

You can always review your requests at https://rapidapi.com/developer/dashboard
In addition, you should have additional logic to check the following while parsing the response.

_ Response status code whether or not it is 200
_ The returned field whether or not it is available
_ The value whether or not is is null or empty

Regards.

Join in the discussion - add comment below:

Login / Signup to post new comments