[TypeError] 
Argument 2 passed to Yandex\Market\Api\OAuth2\RefreshToken\Agent::writeTokenError() must be an instance of Bitrix\Main\Result, instance of Yandex\Market\Api\Reference\RequestResult given, called in /home/c77705/restoranica.ru/www/bitrix/modules/yandex.market/lib/api/oauth2/refreshtoken/agent.php on line 118 (0)
/home/c77705/restoranica.ru/www/bitrix/modules/yandex.market/lib/api/oauth2/refreshtoken/agent.php:157
#0: Yandex\Market\Api\OAuth2\RefreshToken\Agent::writeTokenError(object, object)
	/home/c77705/restoranica.ru/www/bitrix/modules/yandex.market/lib/api/oauth2/refreshtoken/agent.php:118
#1: Yandex\Market\Api\OAuth2\RefreshToken\Agent::refreshToken(object, object)
	/home/c77705/restoranica.ru/www/bitrix/modules/yandex.market/lib/api/oauth2/refreshtoken/agent.php:91
#2: Yandex\Market\Api\OAuth2\RefreshToken\Agent::processTokens()
	/home/c77705/restoranica.ru/www/bitrix/modules/yandex.market/lib/api/oauth2/refreshtoken/agent.php:60
#3: Yandex\Market\Api\OAuth2\RefreshToken\Agent::run()
	
#4: call_user_func(array)
	/home/c77705/restoranica.ru/www/bitrix/modules/yandex.market/lib/reference/agent/base.php:79
#5: Yandex\Market\Reference\Agent\Base::callAgent(string)
	/home/c77705/restoranica.ru/www/bitrix/modules/main/classes/mysql/agent.php(162) : eval()'d code:1
#6: eval
	/home/c77705/restoranica.ru/www/bitrix/modules/main/classes/mysql/agent.php:162
#7: CAgent::ExecuteAgents(string)
	/home/c77705/restoranica.ru/www/bitrix/modules/main/classes/mysql/agent.php:40
#8: CAgent::CheckAgents()
	
#9: call_user_func_array(array, array)
	/home/c77705/restoranica.ru/www/bitrix/modules/main/lib/application.php:681
#10: Bitrix\Main\Application->runBackgroundJobs()
	/home/c77705/restoranica.ru/www/bitrix/modules/main/lib/application.php:294
#11: Bitrix\Main\Application->terminate(integer)
	/home/c77705/restoranica.ru/www/bitrix/modules/main/lib/application.php:261
#12: Bitrix\Main\Application->end()
	/home/c77705/restoranica.ru/www/bitrix/modules/main/classes/general/main.php:3522
#13: CAllMain::FinalActions(string)
	/home/c77705/restoranica.ru/www/bitrix/modules/main/include/epilog_after.php:58
#14: require(string)
	/home/c77705/restoranica.ru/www/bitrix/modules/main/include/epilog.php:3
#15: require_once(string)
	/home/c77705/restoranica.ru/www/bitrix/footer.php:4
#16: require(string)
	/home/c77705/restoranica.ru/www/catalog/index.php:651
#17: include_once(string)
	/home/c77705/restoranica.ru/www/bitrix/modules/main/include/urlrewrite.php:160
#18: include_once(string)
	/home/c77705/restoranica.ru/www/bitrix/urlrewrite.php:2