הפעם אני לא הבנתי..
הוא בכלל לא מגיב ל-
catch (InvalidParameterException $ex)
וגם לא הבנתי מה אמור להיות ה
$ex.message
אולי כיון שאני לא מבין איך אני אמור לגשת לטקסט (העתקתי להלן) כדי להוציא ממנו את החלק שנראה כאובייקט
exception 'Aws\Rekognition\Exception\RekognitionException' with message 'Error executing "CompareFaces" on "https://rekognition.us-east-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://rekognition.us-east-1.amazonaws.com` resulted in a `400 Bad Request` response:
{"__type":"InvalidParameterException","Message":"Request has invalid parameters"}
InvalidParameterException (client): Request has invalid parameters - {"__type":"InvalidParameterException","Message":"Request has invalid parameters"}'