Rest API Login Returning response with warnings

Hello All,

I’m using Rest API 4.1 with my SuiteCRM 7.9.9
I’m trying to use login module first and it is successfully logging in and giving me the session id.
But the response it is giving back contains WARNINGS.
That is why i’m not able to read that array and unable to decode the json.
All type of errors are already Turned off from PHP.ini
But still those errors are coming.
Here is the screen shot of response coming.

Thanks in advance

Issue resolved.

I just put
error_reporting(0) in the start of service/v4_1/rest.php

Now response is coming without the warnings and notices.

I hope it will help other people.

Yes, I confirm, both methods needs to be updated with same argument.