Array
(
[message] => Request failed with status code 400
[name] => AxiosError
[stack] => AxiosError: Request failed with status code 400
at settle (file:///home/apps/addDealInAmo_kedr/node_modules/axios/lib/core/settle.js:19:12)
at Unzip.handleStreamEnd (file:///home/apps/addDealInAmo_kedr/node_modules/axios/lib/adapters/http.js:495:11)
at Unzip.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1241:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[config] => Array
(
[transitional] => Array
(
[silentJSONParsing] => 1
[forcedJSONParsing] => 1
[clarifyTimeoutError] =>
)
[transformRequest] => Array
(
[0] =>
)
[transformResponse] => Array
(
[0] =>
)
[timeout] => 0
[xsrfCookieName] => XSRF-TOKEN
[xsrfHeaderName] => X-XSRF-TOKEN
[maxContentLength] => -1
[maxBodyLength] => -1
[env] => Array
(
[Blob] =>
)
[headers] => Array
(
[Accept] => application/json, text/plain, */*
[Content-Type] => application/json
[Authorization] => Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjA5ZGRhZjVjMWFmZjVkZWNlMTgyZmZkNDdjZjRkOWMzYjNkOTkwMmM3NTFkOTM4NzgwZTFlNjBketewtNWIwZTczMjIwZTNmNzYyNDBjOTlmNzdmIn0.eyJhdWQiOiIyNDBjYWIwMS0yYTNhLTQ4ZTctOTkzYy01Y2UxY2Q4MmRkYzEiLCJqdGkiewtewtOiIwOWRkYWY1YzFhZmY1ZGVjZTE4MmZmZDQ3Y2Y0ZDljM2IzZDk5MDJjNzUxZDkzODc4MGUxZTYwZDViMGUEWRW3MzIyMGUzZjc2MjQwYzk5Zjc3ZiIsImlhdCI6MTY2OTYxMDk4NiwibmJmIjoxNjY5NjEwOTg2LCJleHAiOjE2Njk2OTczODYsInN1YiI6IjgyNzk5MDIiLCJhY2NvdW50X2lkIjozMDIyNjM0NSwiYmFzZV9kb21haW4iOiJhbW9jcm0ucnUiLCJzY29wZXMiOlsicHVzaF9ub3RpdstET55ZmljYXRpb25zIiwiZmlsZXMiLCJjcm0iLCJmaWxlc19kZWxldGUiLCJub3RpZmljYXRpb25zIl19.br8jh8MWEFSFdqUQS2vRMbVy3vVS3-clAq72stb3VCg0DsdsxfvbNp55EbF8NGze6EF1vGqVQ7X_4WcEWuRnnrNelDdbFf2mLTJcUMp_sPXxWcDyQbX317AksXgW44RzawHrYRyxS8B-znvi-LYp0f7QxUWEv4M4HxdwUzlsxnWxFsmFacBMMsB393fZgPoGIqEP_bwNR_iyygo32gFhJGCGclB3EBmuLcaeuAX80K1GIPDwRNaiA6bAbVmRNtrp2h5XwzHU7Ysbo-e_maMlmjpDRcanGRzHkYU7ZYS70SfltSFLbqyXHwYSrxUKvuMHp4L1iG0ordz7YxtWszk1eUdnWJg
[User-Agent] => axios/1.1.3
[Content-Length] => 569
[Accept-Encoding] => gzip, deflate, br
)
[url] => https://kakoitourl/api/v4/leads/complex
[method] => post
[data] => [{"name":"Заявка с сайта","price":"","custom_fields_values":[{"field_id":728063,"values":[{"value":"yandex"}]},{"field_id":728065,"values":[{"value":""}]},{"field_id":728067,"values":[{"value":""}]},{"field_id":728069,"values":[{"value":""}]},{"field_id":728071,"values":[{"value":""}]},{"field_id":1019367,"values":[{"value":""}]}],"_embedded":{"contacts":[{"first_name":"Dima","custom_fields_values":[{"field_code":"EMAIL","values":[{"enum_code":"WORK","value":"test@gmail.com"}]},{"field_code":"PHONE","values":[{"enum_code":"WORK","value":""}]}]}]}}]
)
[code] => ERR_BAD_REQUEST
[status] => 400
)