Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
8.5 kB
1
Indexable
Never
POST https://magento-612706-3579488.cloudwaysapps.com/en/rest/V1/customercreate
Cookie: PHPSESSID=40i7gl0am0enfblknipihfto6g
content-type: application/json
content-length: 607


{
  "customer": {
    "email": "test@123.com",
    "firstname": "test",
    "lastname": "test",
    "dob": "-1/-1/-1",
    "gender": "0",
    "custom_attributes": [
      {
        "attribute_code": "mobile_number",
        "value": "8888822222"
      },
      {
        "attribute_code": "mobile_country_code",
        "value": "91"
      },
      {
        "attribute_code": "country_code",
        "value": "IN"
      },
      {
        "attribute_code": "opted_loyalty_program",
        "value": "1"
      }
    ]
  },
  "password": "test@123",
  "devicetoken": "dpVjwrH2003Po-4WtjtULk:APA91bETL7yhX8RQHZYETPAfLf-TmmvhP98NLy2UN-vqbfceTLnMee-AluwHdC1-zWyERFXWNHtlzwgx_Vrz1KIp1s5O6g6dImdHE1x40B9it_A1W_anurQA1C2t2KnEe-7v2f9YKwAc",
  "devicetype": "i",
  "deviceid": "52FC2982-9EF8-4DEF-97AA-955407E2A529"
}

⤵ RESPONSE [400/Bad Request] [Time elapsed: 500 ms]⤵

connection: [keep-alive]
set-cookie: [PHPSESSID=40i7gl0am0enfblknipihfto6g; expires=Tue, 18-Jul-2023 06:48:57 GMT; Max-Age=86400; path=/; domain=magento-612706-3579488.cloudwaysapps.com; secure; HttpOnly; SameSite=Lax]
cache-control: [no-store, no-cache, must-revalidate, max-age=0]
date: [Mon, 17 Jul 2023 06:48:57 GMT]
x-robots-tag: [noindex, nofollow]
content-type: [application/json; charset=utf-8]
pragma: [no-cache]
server: [nginx]
content-length: [7249]
x-ua-compatible: [IE=edge]
x-frame-options: [SAMEORIGIN]
x-magento-cache-debug: [MISS]
expires: [-1]


{
  "message": "Invalid date",
  "trace": "#0 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject()\n#1 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\\Framework\\ObjectManager\\Factory\\Compiled->create()\n#2 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Validator/UniversalFactory.php(36): Magento\\Framework\\ObjectManager\\ObjectManager->create()\n#3 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(694): Magento\\Framework\\Validator\\UniversalFactory->create()\n#4 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/generated/code/Magento/Customer/Model/ResourceModel/Customer/Interceptor.php(239): Magento\\Eav\\Model\\Entity\\AbstractEntity->walkAttributes()\n#5 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/module-eav/Model/Entity/AbstractEntity.php(1834): Magento\\Customer\\Model\\ResourceModel\\Customer\\Interceptor->walkAttributes()\n#6 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/module-customer/Model/ResourceModel/Customer.php(128): Magento\\Eav\\Model\\Entity\\AbstractEntity->_beforeSave()\n#7 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/module-eav/Model/Entity/VersionControl/AbstractEntity.php(90): Magento\\Customer\\Model\\ResourceModel\\Customer->_beforeSave()\n#8 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Eav\\Model\\Entity\\VersionControl\\AbstractEntity->save()\n#9 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Customer\\Model\\ResourceModel\\Customer\\Interceptor->___callParent()\n#10 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Customer\\Model\\ResourceModel\\Customer\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#11 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/generated/code/Magento/Customer/Model/ResourceModel/Customer/Interceptor.php(86): Magento\\Customer\\Model\\ResourceModel\\Customer\\Interceptor->___callPlugins()\n#12 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Model/AbstractModel.php(655): Magento\\Customer\\Model\\ResourceModel\\Customer\\Interceptor->save()\n#13 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Framework\\Model\\AbstractModel->save()\n#14 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Customer\\Model\\Customer\\Interceptor->___callParent()\n#15 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Customer\\Model\\Customer\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#16 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/generated/code/Magento/Customer/Model/Customer/Interceptor.php(779): Magento\\Customer\\Model\\Customer\\Interceptor->___callPlugins()\n#17 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/module-customer/Model/ResourceModel/CustomerRepository.php(255): Magento\\Customer\\Model\\Customer\\Interceptor->save()\n#18 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Customer\\Model\\ResourceModel\\CustomerRepository->save()\n#19 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Customer\\Model\\ResourceModel\\CustomerRepository\\Interceptor->___callParent()\n#20 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/module-customer/Model/Plugin/CustomerRepository/TransactionWrapper.php(44): Magento\\Customer\\Model\\ResourceModel\\CustomerRepository\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#21 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\\Customer\\Model\\Plugin\\CustomerRepository\\TransactionWrapper->aroundSave()\n#22 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Customer\\Model\\ResourceModel\\CustomerRepository\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#23 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/generated/code/Magento/Customer/Model/ResourceModel/CustomerRepository/Interceptor.php(23): Magento\\Customer\\Model\\ResourceModel\\CustomerRepository\\Interceptor->___callPlugins()\n#24 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/app/code/Drc/Mobileapp/Model/AccountManagement.php(727): Magento\\Customer\\Model\\ResourceModel\\CustomerRepository\\Interceptor->save()\n#25 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/app/code/Drc/Mobileapp/Model/AccountManagement.php(679): Drc\\Mobileapp\\Model\\AccountManagement->createAccountWithPasswordHash()\n#26 [internal function]: Drc\\Mobileapp\\Model\\AccountManagement->createAccount()\n#27 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array()\n#28 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/module-webapi/Controller/Rest.php(188): Magento\\Webapi\\Controller\\Rest\\SynchronousRequestProcessor->process()\n#29 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\\Webapi\\Controller\\Rest->dispatch()\n#30 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callParent()\n#31 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\\Webapi\\Controller\\Rest\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#32 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(23): Magento\\Webapi\\Controller\\Rest\\Interceptor->___callPlugins()\n#33 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/App/Http.php(116): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch()\n#34 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/vendor/magento/framework/App/Bootstrap.php(264): Magento\\Framework\\App\\Http->launch()\n#35 /home/612706.cloudwaysapps.com/eqxewrwzcu/public_html/pub/index.php(29): Magento\\Framework\\App\\Bootstrap->run()\n#36 {main}"
}