Skip to content

bug: oauth mixed but stdClass returned #66

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

Closed
gfh31fgh2 opened this issue Jun 5, 2023 · 3 comments · Fixed by #70
Closed

bug: oauth mixed but stdClass returned #66

gfh31fgh2 opened this issue Jun 5, 2023 · 3 comments · Fixed by #70
Labels
bug Something isn't working

Comments

@gfh31fgh2
Copy link

Bug Report

YDB PHP SDK version:
latest (1.5.3)

Environment
ubuntu18 and OAUTH

Current behavior:

production.ERROR: 
Return value of YdbPlatform\Ydb\Auth\IamAuth::requestToken() must be an instance of YdbPlatform\Ydb\Auth\mixed, instance of stdClass returned {"userId":1,"exception":"[object] (TypeError(code: 0): Return value of YdbPlatform\\Ydb\\Auth\\IamAuth::requestToken() must be an instance of YdbPlatform\\Ydb\\Auth\\mixed, instance of stdClass returned at /path/releases/2023.06.03_10-01-19.ea0b574/vendor/ydb-platform/ydb-php-sdk/src/Auth/IamAuth.php:41)
[stacktrace]
#0 /path/releases/2023.06.03_10-01-19.ea0b574/vendor/ydb-platform/ydb-php-sdk/src/Auth/Implement/OAuthTokenAuthentication.php(24): YdbPlatform\\Ydb\\Auth\\IamAuth->requestToken()
#1 /path/releases/2023.06.03_10-01-19.ea0b574/vendor/ydb-platform/ydb-php-sdk/src/Iam.php(101): YdbPlatform\\Ydb\\Auth\\Implement\\OAuthTokenAuthentication->getTokenInfo()
#2 /path/releases/2023.06.03_10-01-19.ea0b574/vendor/ydb-platform/ydb-php-sdk/src/Iam.php(88): YdbPlatform\\Ydb\\Iam->newToken()
#3 /path/releases/2023.06.03_10-01-19.ea0b574/vendor/ydb-platform/ydb-php-sdk/src/Ydb.php(119): YdbPlatform\\Ydb\\Iam->token()
#4 /path/releases/2023.06.03_10-01-19.ea0b574/vendor/ydb-platform/ydb-php-sdk/src/Table.php(59): YdbPlatform\\Ydb\\Ydb->meta()
#5 /path/releases/2023.06.03_10-01-19.ea0b574/vendor/ydb-platform/ydb-php-sdk/src/Ydb.php(217): YdbPlatform\\Ydb\\Table->__construct()
#6 /path/releases/2023.06.03_10-01-19.ea0b574/app/Helpers/x.php(x): YdbPlatform\\Ydb\\Ydb->table()


Expected behavior:

php working more than 12 hours

Steps to reproduce:

php in background with simple select from ydb

Related code:

https://github.com/gfh31fgh2/ydb-php-simple-driver

@gfh31fgh2 gfh31fgh2 added the bug Something isn't working label Jun 5, 2023
@gfh31fgh2
Copy link
Author

hotfix: даунгрейд (downgrade) до 1.5.1

@ilyakharev ilyakharev mentioned this issue Jun 9, 2023
7 tasks
@gfh31fgh2
Copy link
Author

gfh31fgh2 commented Jun 9, 2023

PHP Version 7.4.30 с этой ошибкой
фикс выше должен решить проблему

@rekby rekby closed this as completed Jun 13, 2023
@gfh31fgh2
Copy link
Author

все работает, спасибо!

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

Successfully merging a pull request may close this issue.

2 participants