1b.app
Link copied -

decryption of errors, logs

Есть вопросы о работе системы?
Вы всегда можете обратиться к нашим партнерам-интеграторам или де создать топик на нашем форуме и там описать сложность.
Good evening, when creating a new process, an error arrives in the response - The first element of the processes array is missing. When sending a request from the postman, everything is OK and there are no errors.
can I somehow get details about this error, maybe api logs or error decoding?
Original question is available on version: ru

Answers:

Issue closed, resolved
20.03.2022, 22:34
Original comment available on version: ru

Гуд Евгений
ProfiCRM-UA
Kiril, I'll be the best, help us to get along...
such a pardon vilitaє
20.04.2022, 11:31
Original comment available on version: ru

Kiril, Gud Evgeny, I will be your best friend so you can help me to get it...
such a pardon vilitaє.
Maybe I’m transferring the array in the wrong way:
$headers = array(
"Content-Type: application/json",
"token: <TOKEN>",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data = '{["workflowid": "3", "statusid": "59"]}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
Dodatkovo, I ask you to explain to me the slang word: "postman".
01.07.2022, 05:15
Original comment available on version: ru

Looks like it needed:
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
01.07.2022, 05:47
Original comment available on version: ru

$data = '[{"workflowid": "3", "statusid": "59"}]';
01.07.2022, 05:48
Original comment available on version: ru

json_encode($data) - not correct!
Tse pardon at the very massif bula. The extra quote is not closed, after the rest of the array element.
02.07.2022, 17:09
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment