RocketChat / rocketchat_nextcloud

App that allows Rocket Chat to live inside NextCloud and become seamless for the NextCloud Users
28 stars 2 forks source link

Application fails. Undefined Arraykey authtoken #7

Closed small1 closed 2 years ago

small1 commented 2 years ago

after registering the app and getting the token and userid i now get this error in the nextcloud log:

{"reqId":"BEGRD6i3wBv04GcAMmrv","level":3,"time":"2022-03-02T14:31:20+00:00","remoteAddr":"2.65.13.161","user":"admin","app":"PHP","method":"GET","url":"/apps/rocketchat_nextcloud/","message":"Undefined array key \"authToken\" at /var/www/nextcloud/presentation/apps/rocketchat_nextcloud/lib/Rocket/User.php#241","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","version":"23.0.2.1","exception":{"Exception":"Error","Message":"Undefined array key \"authToken\" at /var/www/nextcloud/presentation/apps/rocketchat_nextcloud/lib/Rocket/User.php#241","Code":0,"Trace":[{"file":"/var/www/nextcloud/presentation/apps/rocketchat_nextcloud/lib/Rocket/User.php","line":241,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/presentation/apps/rocketchat_nextcloud/lib/Controller/PageController.php","line":63,"function":"findByNcUserId","class":"OCA\\RocketchatNextcloud\\Rocket\\User","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"index","class":"OCA\\RocketchatNextcloud\\Controller\\PageController","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/presentation/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/presentation/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/presentation/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}} {"reqId":"BEGRD6i3wBv04GcAMmrv","level":3,"time":"2022-03-02T14:31:20+00:00","remoteAddr":"2.65.13.161","user":"admin","app":"index","method":"GET","url":"/apps/rocketchat_nextcloud/","message":"OC\\Log::error(): Argument #1 ($message) must be of type string, null given, called in /var/www/nextcloud/presentation/lib/private/Log/PsrLoggerAdapter.php on line 140 in file '/var/www/nextcloud/presentation/lib/private/Log.php' line 142","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36","version":"23.0.2.1","exception":{"Exception":"Exception","Message":"OC\\Log::error(): Argument #1 ($message) must be of type string, null given, called in /var/www/nextcloud/presentation/lib/private/Log/PsrLoggerAdapter.php on line 140 in file '/var/www/nextcloud/presentation/lib/private/Log.php' line 142","Code":0,"Trace":[{"file":"/var/www/nextcloud/presentation/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/presentation/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/presentation/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/presentation/lib/private/AppFramework/Http/Dispatcher.php","Line":158,"Previous":{"Exception":"TypeError","Message":"OC\\Log::error(): Argument #1 ($message) must be of type string, null given, called in /var/www/nextcloud/presentation/lib/private/Log/PsrLoggerAdapter.php on line 140","Code":0,"Trace":[{"file":"/var/www/nextcloud/presentation/lib/private/Log/PsrLoggerAdapter.php","line":140,"function":"error","class":"OC\\Log","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/AppFramework/ScopedPsrLogger.php","line":89,"function":"error","class":"OC\\Log\\PsrLoggerAdapter","type":"->"},{"file":"/var/www/nextcloud/presentation/apps/rocketchat_nextcloud/lib/Controller/PageController.php","line":64,"function":"error","class":"OC\\AppFramework\\ScopedPsrLogger","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"index","class":"OCA\\RocketchatNextcloud\\Controller\\PageController","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/presentation/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/presentation/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/presentation/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/presentation/lib/private/Log.php","Line":142},"CustomMessage":"--"}}

small1 commented 2 years ago

Ok i had registrations turned off. Thats why it didnt work.

Would be good to had in the docs @ruvenss