fr05t1k / esia

Компонент для авторизации на портале "Госуслуги" (ЕСИА)
http://fr05t1k.github.io/esia
142 stars 68 forks source link

[Esia\Exceptions\RequestFailException] #48

Open Filosoff78 opened 3 years ago

Filosoff78 commented 3 years ago

Доброго времени суток, получаю ответ от ЕСИА, с code, но потовы вылетает такая ошибка, в заранее спасибо) Request is failed (0) /home/bitrix/www/local/php_interface/vendor/fr05t1k/esia/src/Esia/OpenId.php:330

0: Esia\OpenId->sendRequest(object)

/home/bitrix/www/local/php_interface/vendor/fr05t1k/esia/src/Esia/OpenId.php:177

1: Esia\OpenId->getToken(string)

/home/bitrix/www/esia/finish/index.php:30
DoooMer commented 1 year ago

Поддерживаю, аналогичная ошибка

"message":"Request is failed",
"previous":"Client error: `POST https:\/\/esia-portal1.test.gosuslugi.ru\/aas\/oauth2\/te` resulted in a `400 Bad Request` response:\n{\"error_description\":\"ESIA-007011: The provided authorization grant or refresh token is invalid, expired, revoked, does  (truncated...)\n",
"file":"\/app\/vendor\/fr05t1k\/esia\/src\/Esia\/OpenId.php",
"line":329

code от ЕСИА приходит и другая библиотека его обменивает на токен нормально (без ошибки).