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

Cannot add client #72

Open
mtillman14 opened this issue Feb 23, 2022 · 15 comments
Open

Cannot add client #72

mtillman14 opened this issue Feb 23, 2022 · 15 comments

Comments

@mtillman14
Copy link

First, the workflow would crash when just typing "slack". I am running macOS Monterey which does not come with PHP installed, so I first installed PHP with homebrew. Then, when typing "slack --add-client" I get the below logs:

[17:29:45.717] Logging Started...
[17:29:50.880] Slack[Script Filter] Queuing argument '-'
[17:29:50.999] Slack[Script Filter] Queuing argument '--'
[17:29:51.062] Slack[Script Filter] Script with argv '(null)' finished
[17:29:51.065] ERROR: Slack[Script Filter] Code 255: PHP Deprecated: Return type of AlfredSlack\Libs\Route::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/libs/Route.php on line 29
Cache folder: /Users/tarantula/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.yannickglt.alfred2.slack
Data folder: /Users/tarantula/Library/Application Support/Alfred/Workflow Data/com.yannickglt.alfred2.slack
ACTION: AlfredSlack\Controllers\ConfigController::listConfigsAction()
SIMULATE: php -r '$query="{"controller":"config","action":"listConfigs","params":{"config\?":""}}";include "scripts/index.php";';
PHP Fatal error: Uncaught Error: Unknown named parameter $config? in /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/controllers/Controller.php:24
Stack trace:
#0 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/controllers/Controller.php(24): call_user_func_array(Array, Array)
#1 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/libs/Bootstrap.php(33): AlfredSlack\Controllers\Controller->dispatch('listConfigsActi...', Array)
#2 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/libs/Bootstrap.php(15): AlfredSlack\Libs\Bootstrap->invoke(Object(AlfredSlack\Libs\Route))
#3 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/index.php(13): AlfredSlack\Libs\Bootstrap->run(Object(AlfredSlack\Libs\Query))
#4 Command line code(3): require_once('/Users/mitchell...')
#5 {main}
thrown in /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/controllers/Controller.php on line 24
[17:29:51.068] Slack[Script Filter] Deprecated: Return type of AlfredSlack\Libs\Route::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/libs/Route.php on line 29

Fatal error: Uncaught Error: Unknown named parameter $config? in /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/controllers/Controller.php:24
Stack trace:
#0 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/controllers/Controller.php(24): call_user_func_array(Array, Array)
#1 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/libs/Bootstrap.php(33): AlfredSlack\Controllers\Controller->dispatch('listConfigsActi...', Array)
#2 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/libs/Bootstrap.php(15): AlfredSlack\Libs\Bootstrap->invoke(Object(AlfredSlack\Libs\Route))
#3 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/index.php(13): AlfredSlack\Libs\Bootstrap->run(Object(AlfredSlack\Libs\Query))
#4 Command line code(3): require_once('/Users/mitchell...')
#5 {main}
thrown in /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/controllers/Controller.php on line 24
[17:29:51.069] ERROR: Slack[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:
Deprecated: Return type of AlfredSlack\Libs\Route::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/libs/Route.php on line 29

Fatal error: Uncaught Error: Unknown named parameter $config? in /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/controllers/Controller.php:24
Stack trace:
#0 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/controllers/Controller.php(24): call_user_func_array(Array, Array)
#1 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/libs/Bootstrap.php(33): AlfredSlack\Controllers\Controller->dispatch('listConfigsActi...', Array)
#2 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/libs/Bootstrap.php(15): AlfredSlack\Libs\Bootstrap->invoke(Object(AlfredSlack\Libs\Route))
#3 /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/index.php(13): AlfredSlack\Libs\Bootstrap->run(Object(AlfredSlack\Libs\Query))
#4 Command line code(3): require_once('/Users/mitchell...')
#5 {main}
thrown in /Users/tarantula/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3A8C779-3402-4AC1-9604-88ECEEE590EC/scripts/controllers/Controller.php on line 24

@sundarv85
Copy link

Im facing the same problem. Not able to add the client in new M1 Mac..

@justin-m-schmidt
Copy link

justin-m-schmidt commented Mar 31, 2022

Same with me. Again on an M1

@edygar
Copy link

edygar commented Apr 8, 2022

It's actually related to Monteray as far as I could see, I have it not throwing these exceptions in the version:

PHP 7.3.29-to-be-removed-in-future-macOS (cli) (built: Sep 6 2021 05:14:39) ( NTS )

My macOS version is 11.6.5

@anders-christiansen
Copy link

I have the same issue i cant add client. I'm on M1 with monterey

@Blackvz
Copy link

Blackvz commented Jul 1, 2022

Same issue

@Nicolas-nwb
Copy link

+1 Same issue

@fryjabe
Copy link

fryjabe commented Aug 12, 2022

+1

2 similar comments
@nkmrh
Copy link

nkmrh commented Aug 18, 2022

+1

@gerardoezequiel
Copy link

+1

@jmsquare
Copy link

+1 with M1 Mac

@devinschumacher
Copy link

+1

2 similar comments
@Fkaule
Copy link

Fkaule commented Nov 23, 2022

+1

@stanhodges
Copy link

+1

@renatomoor
Copy link

I've created my own workflow. Maybe it can help you: Slack Alfred workflow

@AdeTheux
Copy link

Thanks @renatomoor ! Installed with success but it looks like it's loading data from the wrong workspace (yours). I'll create an issue in your repo.

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