You should always send along with request samples so I can reproduce the case. How did you see the response data? By running your code, or by using a HTTP client such as postman.com ? If there is error with your code, you should make the same request with an HTTP client and see the raw response to learn the case manually.
You should learn to improve your logic.
1/ Check whether or not the response status code is 200 before parsing the response data.
2/ Check whether or not the field is available before parsing the response data.
3/ Check whether or not the value of field is null or empty before parsing the response data.
You can always recheck your requests in the back-end area of RapidAPI. I checked the requests, everything seems to be fine, and have response data returned.
Regards.
Partecipa alla discussione - aggiungi un commento di seguito:
Hello,
You should always send along with request samples so I can reproduce the case. How did you see the response data? By running your code, or by using a HTTP client such as postman.com ? If there is error with your code, you should make the same request with an HTTP client and see the raw response to learn the case manually.
You should learn to improve your logic.
1/ Check whether or not the response status code is 200 before parsing the response data.
2/ Check whether or not the field is available before parsing the response data.
3/ Check whether or not the value of field is null or empty before parsing the response data.
You can always recheck your requests in the back-end area of RapidAPI. I checked the requests, everything seems to be fine, and have response data returned.
Regards.