Відправляю запит методом /api/v2/contact/get/
Request body:
{
"filter": {
"phones": [
"0504131703"
]
}
}
Віддало помилку:
errorArray:
0: "Executing error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) AND users.deleted='0' ORDER BY users.id ASC LIMIT 50' at line 1 in query: SELECT users.* FROM users WHERE users.id IN (SELECT userid FROM shopuserphone WHERE phone IN ()) AND users.deleted='0' ORDER BY users.id ASC LIMIT 50"
status: 0
Це ж напевне у самій API CRM збій?
Відправляю запит методом /api/v2/contact/get/ Request body: { "filter": { "phones": [ "0504131703" ] } } Віддало помилку: errorArray: 0: "Executing error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) AND users.deleted='0' ORDER BY users.id ASC LIMIT 50' at line 1 in query: SELECT users.* FROM users WHERE users.id IN (SELECT userid FROM shopuserphone WHERE phone IN ()) AND users.deleted='0' ORDER BY users.id ASC LIMIT 50" status: 0
errorArray: 0: "Executing error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) AND `users`.`deleted`='0' ORDER BY `users`.`id` ASC LIMIT 50' at line 1 in query: SELECT `users`.* FROM `users` WHERE users.`id` IN (SELECT `userid` FROM `shopuserphone` WHERE `phone` IN ()) AND `users`.`deleted`='0' ORDER BY `users`.`id` ASC LIMIT 50" status: 0
Нажаль змін не бачу!
Лог:
[2022-07-04 04:44:38]
host: inox-trade.1b.app
url: /api/v2/contact/get/
contentID: api-v2-contact-get
point: /shop.starter.php
engine_sessionid: 1656899078_305
data: Array (
[filter] => Array (
[phones] => Array (
[0] => 0504131708
)
)
)
Відповідь:
errorArray:
0: "Executing error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) AND `users`.`deleted`='0' ORDER BY `users`.`id` ASC LIMIT 50' at line 1 in query: SELECT `users`.* FROM `users` WHERE users.`id` IN (SELECT `userid` FROM `shopuserphone` WHERE `phone` IN ()) AND `users`.`deleted`='0' ORDER BY `users`.`id` ASC LIMIT 50"
status: 0
Пожалуйста, присоединяйтесь к диалогу. Если вам есть что сказать - пожалуйста, напишите комментарий. Для входа потребуется мобильный телефон и смс-код для идентификации.
Войти и написать комментарий