fast_bitrix24 icon indicating copy to clipboard operation
fast_bitrix24 copied to clipboard

Проблема с добавлением полей для сортировки в запрос

Open leshchenko1979 opened this issue 4 years ago • 1 comments

  1. Запрос:
task_elapseditem = b.get_all('task.elapseditem.getlist', params={
    'select': ['ID']
})

Ответ:

aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request'

  1. Запрос:
task_elapseditem = b.call('task.elapseditem.getlist', {'select': ['ID']})

Ответ:

RuntimeError: The server reply contained an error: {'order0': {'error': 'ERROR_CORE', 'error_description': 'TASKS_ERROR_EXCEPTION_#256; 5fcf22346c6765.97054212: Param #0 (taskId) for method ctaskelapseditem::getlist() expected to be of type "integer", but given something else.; 256/TE/WRONG_ARGUMENTS
'}}

leshchenko1979 avatar Dec 08 '20 06:12 leshchenko1979

Полагаю, что вставка order0 в список параметров вызывает проблему у сервера. Нужно дать пользователю способ не вставлять этот параметр в запрос.

leshchenko1979 avatar Dec 09 '20 07:12 leshchenko1979