Module3 Assesment Help needed

I’m getting 1 testcase failed in module 3, which is


I have taken care of the case where the date might not be passed as an argument, and also when the dates passed might older than the dates returned by the API request. What else could be the problem?

If returning for the given date is not possible, you have to give the data of closest possible date as output

Try returning the data if latest date possible for the api response

You can also follow this.

The solution to that thread is something I’ve already done.

are you returning the data of the latest date that is present in the api response?

make sure you start and enddate in URL are correct as mentioned
then just return the values from the last index of the array