новое событие
Информационный поток
Задания вакансии материалы разработки сообщения форума
Wesley
Приватное сообщение

КА 2.4 - устранить ошибку Вебхука в колтрекинге Roistat

5566 |  4
сегодня в 11:17:52 (1 час назад)
923510
Текст задания
Устранить ошибку Вебхука в колтрекинге Roistat.
При звонке RoiStat отправляет Вебхук в 1С:КА2, где создается заявка клиента и возвращаются данные в RoiStat.
При динамическом типе колтрекинга все работает, а при статическом возвращается ошибка.

Такая запись при нормальном срабатывании (из роистат):

Date: 19:24, 20.04,
Type: Исходящий,
Method: POST,
Request url: http://92.241.251.149:9080/RoistatWebhook/hs/Roistat/,
Response code: 200,
Response: {
"status": "ok",
"order_id": "2021-007602"
},
Request body: {"city":"Москва","country":"Россия","ip":"109.252.75.155","visit_id":"2586679","first_visit":"2586679","referrer":"https://www.yandex.ru/","domain":"mfshop.ru","landing_page":"https://mfshop.ru/termoprivod-dlja-teplic-300.php","marker":"seo_yandex_","utm_source":null,"utm_medium":null,"utm_campaign":null,"utm_term":null,"utm_content":null,"roistat_param_1":null,"roistat_param_2":null,"roistat_param_3":null,"roistat_param_4":null,"roistat_param_5":null,"google_client_id":"657177044.1618935647","metrika_client_id":"1618935642563140229","source_level_1":"seo","source_level_2":"yandex","id":"42930","caller":"79162003754","callee":"74993228149","order_id":null,"date":"2021-04-20 16:24:01","custom_fields":[]}

====================================================================
Такая запись при ошибке (из роистат):


Date: 19:24, 20.04,
Type: Исходящий,
Method: POST,
Request url: http://92.241.251.149:9080/RoistatWebhook/hs/Roistat/,
Response code: 500,
Response: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<title>500 - ?????????? ?????? ???????.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>?????? ???????</h1></div>
<div id="content">
<div class="content-container"><fiel,
Request body: {"id":"42931","caller":"78123371168","callee":"74993488975","visit_id":null,"marker":"business-expert (до подмены)","order_id":null,"date":"2021-04-20 16:24:31","google_client_id":"111111111.1111111111","custom_fields":[]}
0
Отклики (0)
Предложения отсутствуют