sdk-php icon indicating copy to clipboard operation
sdk-php copied to clipboard

Invalid datetime "0001/01/01", expected format Y-m-d. [] []

Open ivanko-dev opened this issue 6 years ago • 2 comments

Hello We have authorize.net like main extension for payment in Magento 2 web shop. It is working good but in some cases we have success transactions and then error on processing orders. After checking logs found next information:

[2019-07-09 13:32:26] AuthorizeNet Logger.CRITICAL: Invalid datetime "0001/01/01", expected format Y-m-d. [] []

[2019-07-09 13:32:26] main.CRITICAL: The input data of type "boolean" did not convert to an array, but got a result of type "boolean". {"exception":"[object] (JMS\Serializer\Exception\RuntimeException(code: 0): The input data of type "boolean" did not convert to an array, but got a result of type "boolean". at /home/user/www/vendor/jms/serializer/src/JMS/Serializer/Serializer.php:136, JMS\Serializer\Exception\RuntimeException(code: 0): Invalid datetime "0001/01/01", expected format Y-m-d. at /home/user/www/vendor/jms/serializer/src/JMS/Serializer/Handler/DateHandler.php:172)"}

Looks like some issue with dates values in SDK library and related modules. Could you please help to find out cause of this issue and possible solution? Thank you in advance.

ivanko-dev avatar Jul 10 '19 12:07 ivanko-dev

Issue still exists. Looks like error appear on deserialization of Get Transaction Details request. Place transaction request is working fine and have log about success but after get transaction details request error described above still appear. Interesting is that error appear randomly not each time.

ivanko-dev avatar Jul 24 '19 11:07 ivanko-dev

We are also experiencing this issue

summit-series avatar Sep 20 '19 13:09 summit-series