Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leshchenko1979 opened this issue Dec 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@leshchenko1979
Copy link
Owner

leshchenko1979 commented Dec 8, 2020

  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 leshchenko1979 added the bug Something isn't working label Dec 8, 2020
@leshchenko1979 leshchenko1979 changed the title Возможная проблема с order в get_all Проблема с task.elapseditem.getlist Dec 8, 2020
@leshchenko1979
Copy link
Owner Author

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

@leshchenko1979 leshchenko1979 changed the title Проблема с task.elapseditem.getlist Проблема с добавлением полей для сортировки в запрос Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant