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

Invalid http status (500) при вызове метода "/api/v4/leads/unsorted" #23

Closed
FrontEndTCloud opened this issue Jun 11, 2020 · 4 comments

Comments

@FrontEndTCloud
Copy link

FrontEndTCloud commented Jun 11, 2020

Неработающий код

try {
  $request = $apiClient->getRequest();
  $queryResult = $request->get('/api/v4/leads/unsorted');
} catch( AmoCRMApiException $e ) {
   var_dump($request->getLastRequestInfo()); die;
}

Ответ:

array(10) { ["last_http_method"]=> string(3) "GET" ["last_method"]=> string(58) "https://asdasdasdasd.amocrm.ru//api/v4/leads/unsorted" ["last_body"]=> array(0) { } ["last_query_params"]=> array(0) { } ["last_response"]=> string(119) "{"title":"Internal Server Error","type":"https://httpstatus.es/500","status":500,"detail":"An unknown error occurred."}" ["last_response_code"]=> int(500) ["last_request_id"]=> string(32) "79c6ee4a79179bab5d275f0ce848b57b" ["jquery_call"]=> string(167) " $.ajax({ url: "https://asdasdasdasd.amocrm.ru//api/v4/leads/unsorted", data: JSON.stringify([]), type: "GET", contentType: "application/json" });" ["curl_call"]=> string(79) "curl "https://asdasdasdasd.amocrm.ru//api/v4/leads/unsorted" -X "GET" -d""" ["timestamp"]=> int(1591914903) }

Метод работает только с API ключом.

@bessudnov
Copy link
Collaborator

Это известная бага апи, скорее всего в пн-вт будет фикс

@FrontEndTCloud
Copy link
Author

Был уже фикс этого функционала?

@bessudnov
Copy link
Collaborator

К сожалению, нет
Фикс в работе, думаю 2-3 дня и доберется до всех пользователей

@bessudnov
Copy link
Collaborator

Фикс отгружен

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants