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

talk:command:list --output=json gives "An unhandled exception has been thrown" #8404

Closed
RonaldBarnes opened this issue Nov 29, 2022 · 2 comments
Assignees
Labels
1. to develop bug feature: api 🛠️ OCS API for conversations, chats and participants
Milestone

Comments

@RonaldBarnes
Copy link

RonaldBarnes commented Nov 29, 2022

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Run occ talk:command:list --help
  2. Notice this under "Options": --output[=OUTPUT] Output format (plain, json or json_pretty, default is plain) [default: "plain"]
  3. Run occ talk:command:list --output=plain -- see table of id, app, name, ...
  4. Run occ talk:command:list --output=json -- see An unhandled exception has been thrown:

Expected behaviour

Table in json format.

Actual behaviour

An unhandled exception:

TypeError: Argument 1 passed to OC\Core\Command\Base::writeMixedInOutputFormat() must implement interface Symfony\Component\Console\Input\InputInterface, null given, called in /var/www/nextcloud/apps/spreed/lib/Command/Command/TRenderCommand.php on line 51 and defined in /var/www/nextcloud/core/Command/Base.php:102

Talk app

14.0.6

Custom Signaling server configured: no

Custom TURN server configured: no

Custom STUN server configured: stun.nextcloud.com:443

Browser

Microphone available: no

Camera available: no

Operating system: Ubuntu / KDEneon

Browser name: Firefox

Browser version: 106.0.2+build1-0ubuntu0.20.04.1

Browser log

N/A

Server configuration

Operating system: Ubuntu

Web server: Apache

Database: MariaDB

PHP version: 7.4

Nextcloud Version: 24.0.7

List of activated apps:

Enabled:
- accessibility: 1.10.0
- activity: 2.16.0
- admin_audit: 1.14.0
- apporder: 0.15.0
- breezedark: 24.0.2
- calendar: 3.5.2
- circles: 24.0.1
- cloud_federation_api: 1.7.0
- comments: 1.14.0
- contacts: 4.2.2
- contactsinteraction: 1.5.0
- dav: 1.22.0
- deck: 1.7.2
- event_update_notification: 2.0.0
- federatedfilesharing: 1.14.0
- federation: 1.14.0
- files: 1.19.0
- files_pdfviewer: 2.5.0
- files_rightclick: 1.3.0
- files_sharing: 1.16.2
- files_trashbin: 1.14.0
- files_versions: 1.17.0
- files_videoplayer: 1.13.0
- firstrunwizard: 2.13.0
- logreader: 2.9.0
- lookup_server_connector: 1.12.0
- maps: 0.2.1
- memories: 3.8.2
- nextcloud_announcements: 1.13.0
- notes: 4.5.1
- notifications: 2.12.1
- oauth2: 1.12.0
- onlyoffice: 7.5.8
- password_policy: 1.14.0
- photos: 1.6.0
- privacy: 1.8.0
- provisioning_api: 1.14.0
- recognize: 2.2.2
- recommendations: 1.3.0
- serverinfo: 1.14.0
- settings: 1.6.0
- sharebymail: 1.14.0
- spreed: 14.0.6
- support: 1.7.0
- survey_client: 1.12.0
- systemtags: 1.14.0
- tasks: 0.14.5
- text: 3.5.1
- theming: 1.15.0
- twofactor_backupcodes: 1.13.0
- updatenotification: 1.14.0
- user_status: 1.4.0
- viewer: 1.8.0
- weather_status: 1.4.0
- workflowengine: 2.6.0
Disabled:
- dashboard: 7.4.0
- encryption
- files_external
- richdocuments: 6.3.1
- user_ldap

Nextcloud configuration:

{
  "system": {
    "default_phone_region": "CA",
    "default_locale": "en_CA",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
      "nextcloud.***********.ca",
      "nextcloud.***********.ca",
      "nextcloud.***********.net",
      "localhost"
      ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "allow_local_remote_servers": true,
    "overwriteprotocol": "https",
    "overwritewebroot": "\/",
    "dbtype": "mysql",
    "version": "24.0.7.1",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "htaccess.RewriteBase": "\/",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_smtpauthtype": "PLAIN",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "25",
    "app.mail.imap.timeout": 20,
    "app.mail.smtp.timeout": 10,
    "maintenance": false,
    "knowledgebaseenabled": true,
    "allow_user_to_change_display_name": true,
    "remember_login_cookie_lifetime": 1296000,
    "session_lifetime": 86400,
    "session_relaxed_expiry": true,
    "auto_logout": false,
    "token_auth_enforced": false,
    "auth.bruteforce.protection.enabled": true,
    "auth.webauthn.enabled": true,
    "skeletondirectory": "",
    "templatedirectory": "",
    "trashbin_retention_obligation": "auto",
    "versions_retention_obligation": "auto",
    "updater.release.channel": "stable",
    "check_for_working_wellknown_setup": true,
    "check_for_working_htaccess": true,
    "check_data-directory_permissions": true,
    "enable_previews": true,
    "enabledPreviewProviders": {
    "AVI": "OC\\Preview\\AVI",
    "BMP": "OC\\Preview\\BMP",
    "GIF": "OC\\Preview\\GIF",
    "HEIC": "OC\\Preview\\HEIC",
    "JPG": "OC\\Preview\\JPEG",
    "MKV": "OC\\Preview\\MKV",
    "mp3": "OC\\Preview\\MP3",
    "mp4": "OC\\Preview\\Movie",
    "PDF": "OC\\Preview\\PDF",
    "PNG": "OC\\Preview\\PNG",
    "SVG": "OC\\Preview\\SVG",
    "TIFF": "OC\\Preview\\TIFF",
    "WebP": "OC\\Preview\\WebP"
  },
  "theme": "",
  "loglevel": "2",
  "logdateformat": "Y:m:d H:i:s T",
  "logtimezone": "PST",
  "log_rotate_size": 104857600,
  "defaultapp": "apporder,calendar,files,contacts",
  "data-fingerprint": "9690c8661243e3b5d585960bc6328fb0",
  "memcache.local": "\\OC\\Memcache\\Redis",
  "filelocking.enabled": "true",
  "redis": {
    "host": "***REMOVED SENSITIVE VALUE***",
    "port": 0,
    "dbindex": 0,
    "password": "***REMOVED SENSITIVE VALUE***",
    "timeout": 0
    },
  "overwrite.cli.url": "https:\/\/nextcloud.ronaldbarnes.ca",
  "default_language": "en",
  "session_keepalive": true,
  "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/lib\/..\/exiftool-bin\/exiftool-amd64-glibc"
  }
}

Server log (data/nextcloud.log)

[PHP] Error: Error: Undefined variable: input at /var/www/nextcloud/apps/spreed/lib/Command/Command/TRenderCommand.php#51 at <<closure>>

0. /var/www/nextcloud/apps/spreed/lib/Command/Command/TRenderCommand.php line 51
   OC\Log\ErrorHandler::onError()
1. /var/www/nextcloud/apps/spreed/lib/Command/Command/ListCommand.php line 60
   OCA\Talk\Command\Command\ListCommand->renderCommands()
2. /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php line 255
   OCA\Talk\Command\Command\ListCommand->execute()
3. /var/www/nextcloud/core/Command/Base.php line 168
   Symfony\Component\Console\Command\Command->run()
4. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 1009
   OC\Core\Command\Base->run()
5. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 273
   Symfony\Component\Console\Application->doRunCommand()
6. /var/www/nextcloud/3rdparty/symfony/console/Application.php line 149
   Symfony\Component\Console\Application->doRun()
7. /var/www/nextcloud/lib/private/Console/Application.php line 211
   Symfony\Component\Console\Application->run()
8. /var/www/nextcloud/console.php line 100
   OC\Console\Application->run()
9. /var/www/nextcloud/occ line 11
   require_once("/var/www/nextcloud/console.php")

at 2022-11-29T00:12:27-08:00
@RonaldBarnes
Copy link
Author

I'm not so much interested in the actual json output, but am trying to add features to bash tab auto completion script, therefore looking at presenting parsed output from all commands to users as tab completions.

nextcloud/server#35451

Came across this issue during testing.

@nickvergessen nickvergessen added this to the 💟 Next Major (26) milestone Dec 1, 2022
@nickvergessen nickvergessen added 1. to develop feature: api 🛠️ OCS API for conversations, chats and participants and removed 0. Needs triage labels Dec 1, 2022
vitormattos added a commit that referenced this issue Mar 15, 2023
#8404

Signed-off-by: Vitor Mattos <vitor@php.rio>
@vitormattos vitormattos mentioned this issue Mar 15, 2023
5 tasks
vitormattos added a commit that referenced this issue Apr 25, 2023
#8404

Signed-off-by: Vitor Mattos <vitor@php.rio>
backportbot-nextcloud bot pushed a commit that referenced this issue May 1, 2023
#8404

Signed-off-by: Vitor Mattos <vitor@php.rio>
vitormattos added a commit that referenced this issue May 1, 2023
#8404

Signed-off-by: Vitor Mattos <vitor@php.rio>
@nickvergessen
Copy link
Member

Fixed by #9067

mishamosher pushed a commit to mishamosher/spreed that referenced this issue May 16, 2023
nextcloud#8404

Signed-off-by: Vitor Mattos <vitor@php.rio>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop bug feature: api 🛠️ OCS API for conversations, chats and participants
Projects
None yet
Development

No branches or pull requests

3 participants