I have an issue that can be consistently recreated via the PHP SDK.
When trying to authenticate my Sandbox account, 2 out of 3 login attempts will fail with an unrecoverable error.
[02-Dec-2019 15:50:36 Australia/Melbourne] PHP Fatal error: Uncaught Exception: Serialization of 'Closure' is not allowed in no active file]:0
Stack trace:
#0 {main}
thrown in nno active file] on line 0
>02-Dec-2019 15:50:39 Australia/Melbourne] PHP Fatal error: Uncaught Exception: Serialization of 'Closure' is not allowed in ino active file]:0
Stack trace:
#0 {main}
thrown in no active file] on line 0
02-Dec-2019 15:50:42 Australia/Melbourne] PHP Fatal error: Uncaught Exception: Serialization of 'Closure' is not allowed in dno active file]:0
Stack trace:
#0 {main}
thrown in wno active file] on line 0
b02-Dec-2019 15:50:45 Australia/Melbourne] PHP Fatal error: Uncaught Exception: Serialization of 'Closure' is not allowed in wno active file]:0
Stack trace:
#0 {main}
thrown in rno active file] on line 0
002-Dec-2019 15:50:47 Australia/Melbourne] PHP Fatal error: Uncaught Exception: Serialization of 'Closure' is not allowed in lno active file]:0
Stack trace:
#0 {main}
thrown in tno active file] on line 0
e02-Dec-2019 15:50:51 Australia/Melbourne] PHP Fatal error: Uncaught Exception: Response has unsuccessful status in /vendor/ringcentral/ringcentral-php/src/Http/Client.php:44
Stack trace:
#0 /vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(329): RingCentralSDKHttpClient->send(Object(GuzzleHttpPsr7Request))
#1 /vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(465): RingCentralSDKPlatformPlatform->sendRequest(Object(GuzzleHttpPsr7Request), Array)
#2 /vendor/ringcentral/ringcentral-php/src/Platform/Platform.php(221): RingCentralSDKPlatformPlatform->requestToken('/restapi/oauth/...', Array)
#3 /_classes/TelephonyRingCentral.class.php(55): RingCentralSDKPlatformPlatform->login(Array, '', 'some_password')
#4 /Users/nigelmclaughlin/Documents/WIP/REAS_ in /vendor/ringcentral/ringcentral-php/src/Http/Client.php on line 52
The credentials haven't changed in between. If I try again, sometimes it's successful and sometimes it isn't.
Has anyone else experienced this issue?