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

使用报错 #8

Open
GeGeLv opened this issue Jun 22, 2024 · 0 comments
Open

使用报错 #8

GeGeLv opened this issue Jun 22, 2024 · 0 comments

Comments

@GeGeLv
Copy link

GeGeLv commented Jun 22, 2024

系统:ubuntu server 22.04 PHP版本:8.2
"During inheritance of ArrayAccess: Uncaught think\exception\ErrorException: Return type of Gouguoyin\EasyHttp\Response::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/wwwroot/bridge/vendor/gouguoyin/easyhttp/src/Response.php:140
Stack trace:
#0 /www/wwwroot/bridge/vendor/gouguoyin/easyhttp/src/Response.php(8): think\initializer\Error->appError()
#1 /www/wwwroot/bridge/vendor/composer/ClassLoader.php(478): include('...')
#2 /www/wwwroot/bridge/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile()
#3 /www/wwwroot/bridge/vendor/gouguoyin/easyhttp/src/Request.php(449): Composer\Autoload\ClassLoader->loadClass()
#4 /www/wwwroot/bridge/vendor/gouguoyin/easyhttp/src/Request.php(401): Gouguoyin\EasyHttp\Request->response()
#5 /www/wwwroot/bridge/vendor/gouguoyin/easyhttp/src/Request.php(269): Gouguoyin\EasyHttp\Request->request()
#6 /www/wwwroot/bridge/app/backend/service/device/DahuaService.php(28): Gouguoyin\EasyHttp\Request->post()
#7 /www/wwwroot/bridge/app/backend/controller/bridge/VideoController.php(159): app\backend\service\device\DahuaService::create_session()
#8 [internal function]: app\backend\controller\bridge\VideoController->get_video_api()
#9 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Container.php(345): ReflectionMethod->invokeArgs()
#10 /www/wwwroot/bridge/vendor/topthink/framework/src/think/route/dispatch/Controller.php(110): think\Container->invokeReflectMethod()
#11 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(59): think\route\dispatch\Controller->think\route\dispatch{closure}()
#12 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(66): think\Pipeline->think{closure}()
#13 /www/wwwroot/bridge/vendor/topthink/framework/src/think/route/dispatch/Controller.php(84): think\Pipeline->then()
#14 /www/wwwroot/bridge/vendor/topthink/framework/src/think/route/Dispatch.php(52): think\route\dispatch\Controller->exec()
#15 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Route.php(755): think\route\Dispatch->run()
#16 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(59): think\Route->think{closure}()
#17 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(66): think\Pipeline->think{closure}()
#18 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Route.php(754): think\Pipeline->then()
#19 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Http.php(208): think\Route->dispatch()
#20 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Http.php(198): think\Http->dispatchToRoute()
#21 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(59): think\Http->think{closure}()
#22 /www/wwwroot/bridge/vendor/topthink/think-multi-app/src/MultiApp.php(51): think\Pipeline->think{closure}()
#23 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(59): think\app\MultiApp->think\app{closure}()
#24 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(66): think\Pipeline->think{closure}()
#25 /www/wwwroot/bridge/vendor/topthink/think-multi-app/src/MultiApp.php(50): think\Pipeline->then()
#26 [internal function]: think\app\MultiApp->handle()
#27 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Middleware.php(134): call_user_func()
#28 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think{closure}()
#29 /www/wwwroot/bridge/app/common/http/middleware/DemoMiddleware.php(45): think\Pipeline->think{closure}()
#30 [internal function]: app\common\http\middleware\DemoMiddleware->handle()
#31 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Middleware.php(134): call_user_func()
#32 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think{closure}()
#33 /www/wwwroot/bridge/app/common/http/middleware/LogsMiddleware.php(29): think\Pipeline->think{closure}()
#34 [internal function]: app\common\http\middleware\LogsMiddleware->handle()
#35 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Middleware.php(134): call_user_func()
#36 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think{closure}()
#37 /www/wwwroot/bridge/app/common/http/middleware/AllowCrossDomain.php(42): think\Pipeline->think{closure}()
#38 [internal function]: app\common\http\middleware\AllowCrossDomain->handle()
#39 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Middleware.php(134): call_user_func()
#40 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think{closure}()
#41 /www/wwwroot/bridge/vendor/topthink/framework/src/think/middleware/SessionInit.php(58): think\Pipeline->think{closure}()
#42 [internal function]: think\middleware\SessionInit->handle()
#43 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Middleware.php(134): call_user_func()
#44 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think{closure}()
#45 /www/wwwroot/bridge/vendor/topthink/framework/src/think/middleware/LoadLangPack.php(53): think\Pipeline->think{closure}()
#46 [internal function]: think\middleware\LoadLangPack->handle()
#47 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Middleware.php(134): call_user_func()
#48 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think{closure}()
#49 /www/wwwroot/bridge/vendor/topthink/think-trace/src/TraceDebug.php(71): think\Pipeline->think{closure}()
#50 [internal function]: think\trace\TraceDebug->handle()
#51 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Middleware.php(134): call_user_func()
#52 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(85): think\Middleware->think{closure}()
#53 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Pipeline.php(66): think\Pipeline->think{closure}()
#54 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Http.php(197): think\Pipeline->then()
#55 /www/wwwroot/bridge/vendor/topthink/framework/src/think/Http.php(162): think\Http->runWithRequest()
#56 /www/wwwroot/bridge/public/gxjtkj.php(17): think\Http->run()
#57 {main}"

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

1 participant