Closed zenopopovici closed 4 years ago
I kind of get the same error :
[00:55:22.942] Slack[Script Filter] Queuing argument '-'
[00:55:23.090] Slack[Script Filter] Queuing argument '--'
[00:55:23.110] Slack[Script Filter] Script with argv '(null)' finished
[00:55:23.113] STDERR: Slack[Script Filter] 2020-07-15 00:55:23.043 defaults[1158:18859]
The domain/default pair of (/Users/benoitfroment/Documents/Alfred.alfredpreferences/workflows/user.workflow.3882260E-AB6F-4ADA-885E-2836098DF264/info.plist, bundleid) does not exist
Cache folder: /Users/benoitfroment/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.yannickglt.alfred2.slack
Data folder: /Users/benoitfroment/Library/Application Support/Alfred/Workflow Data/com.yannickglt.alfred2.slack
ACTION: AlfredSlack\Controllers\ChannelController::getChannelsAction()
SIMULATE: php -r '$query="{\"controller\":\"channel\",\"action\":\"getChannels\",\"params\":{\"channel\":\"-\"}}";include "scripts/index.php";';
[00:55:23.115] Slack[Script Filter] Notice: Undefined offset: 0 in /Users/benoitfroment/Documents/Alfred.alfredpreferences/workflows/user.workflow.3882260E-AB6F-4ADA-885E-2836098DF264/scripts/libs/Workflows.php on line 318
[00:55:23.116] ERROR: Slack[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Notice: Undefined offset: 0 in /Users/benoitfroment/Documents/Alfred.alfredpreferences/workflows/user.workflow.3882260E-AB6F-4ADA-885E-2836098DF264/scripts/libs/Workflows.php on line 318
[00:55:23.284] Slack[Script Filter] Script with argv '(null)' finished
[00:55:23.291] STDERR: Slack[Script Filter] 2020-07-15 00:55:23.217 defaults[1165:18874]
The domain/default pair of (/Users/benoitfroment/Documents/Alfred.alfredpreferences/workflows/user.workflow.3882260E-AB6F-4ADA-885E-2836098DF264/info.plist, bundleid) does not exist
Cache folder: /Users/benoitfroment/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.yannickglt.alfred2.slack
Data folder: /Users/benoitfroment/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";';
[00:55:23.293] Slack[Script Filter] Notice: Undefined offset: 0 in /Users/benoitfroment/Documents/Alfred.alfredpreferences/workflows/user.workflow.3882260E-AB6F-4ADA-885E-2836098DF264/scripts/libs/Workflows.php on line 318
<?xml version="1.0"?>
<items><item uid="0" arg="{"controller":"config","action":"saveClient","params":{"clientCredentials":null}}" valid="yes" autocomplete="--add-client "><title>--add-client</title><subtitle>Add a Slack client</subtitle><icon>icon.png</icon></item><item uid="1" arg="{"controller":"config","action":"removeClient","params":{"team":null}}" valid="yes" autocomplete="--remove-client "><title>--remove-client</title><subtitle>Remove a Slack client</subtitle><icon>icon.png</icon></item><item uid="2" arg="{"controller":"config","action":"saveToken","params":{"token":null}}" valid="yes" autocomplete="--add-token "><title>--add-token</title><subtitle>Add a Slack token in the keychain (deprecated)</subtitle><icon>icon.png</icon></item><item uid="3" arg="{"controller":"config","action":"saveTokenUnsafe","params":{"token":null}}" valid="yes" autocomplete="--add-token-unsafe "><title>--add-token-unsafe</title><subtitle>Add a Slack token in the cache instead of the keychain (deprecated)</subtitle><icon>icon.png</icon></item><item uid="4" arg="{"controller":"config","action":"markAllAsRead","params":null}" valid="yes" autocomplete="--mark "><title>--mark</title><subtitle>Mark all as read</subtitle><icon>icon.png</icon></item><item uid="5" arg="{"controller":"config","action":"getFiles","params":{"search":null}}" valid="yes" autocomplete="--files "><title>--files</title><subtitle>List the files within the team</subtitle><icon>icon.png</icon></item><item uid="6" arg="{"controller":"config","action":"search","params":{"search":null}}" valid="yes" autocomplete="--search "><title>--search</title><subtitle>Search both messages and files</subtitle><icon>icon.png</icon></item><item uid="7" arg="{"controller":"config","action":"getStarredItems","params":{"search":null}}" valid="yes" autocomplete="--stars "><title>--stars</title><subtitle>List the items starred</subtitle><icon>icon.png</icon></item><item uid="8" arg="{"controller":"config","action":"getStatuses","params":{"status":null}}" valid="yes" autocomplete="--status "><title>--status</title><subtitle>List the custom statuses</subtitle><icon>icon.png</icon></item><item uid="9" arg="{"controller":"config","action":"listPresences","params":{"presence":null}}" valid="yes" autocomplete="--presence "><title>--presence</title><subtitle>Set the user presence (either active or away)</subtitle><icon>icon.png</icon></item><item uid="10" arg="{"controller":"config","action":"refreshCache","params":null}" valid="yes" autocomplete="--refresh "><title>--refresh</title><subtitle>Refresh the cache</subtitle><icon>icon.png</icon></item></items>
[00:55:23.295] ERROR: Slack[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Notice: Undefined offset: 0 in /Users/benoitfroment/Documents/Alfred.alfredpreferences/workflows/user.workflow.3882260E-AB6F-4ADA-885E-2836098DF264/scripts/libs/Workflows.php on line 318
<?xml version="1.0"?>
<items><item uid="0" arg="{"controller":"config","action":"saveClient","params":{"clientCredentials":null}}" valid="yes" autocomplete="--add-client "><title>--add-client</title><subtitle>Add a Slack client</subtitle><icon>icon.png</icon></item><item uid="1" arg="{"controller":"config","action":"removeClient","params":{"team":null}}" valid="yes" autocomplete="--remove-client "><title>--remove-client</title><subtitle>Remove a Slack client</subtitle><icon>icon.png</icon></item><item uid="2" arg="{"controller":"config","action":"saveToken","params":{"token":null}}" valid="yes" autocomplete="--add-token "><title>--add-token</title><subtitle>Add a Slack token in the keychain (deprecated)</subtitle><icon>icon.png</icon></item><item uid="3" arg="{"controller":"config","action":"saveTokenUnsafe","params":{"token":null}}" valid="yes" autocomplete="--add-token-unsafe "><title>--add-token-unsafe</title><subtitle>Add a Slack token in the cache instead of the keychain (deprecated)</subtitle><icon>icon.png</icon></item><item uid="4" arg="{"controller":"config","action":"markAllAsRead","params":null}" valid="yes" autocomplete="--mark "><title>--mark</title><subtitle>Mark all as read</subtitle><icon>icon.png</icon></item><item uid="5" arg="{"controller":"config","action":"getFiles","params":{"search":null}}" valid="yes" autocomplete="--files "><title>--files</title><subtitle>List the files within the team</subtitle><icon>icon.png</icon></item><item uid="6" arg="{"controller":"config","action":"search","params":{"search":null}}" valid="yes" autocomplete="--search "><title>--search</title><subtitle>Search both messages and files</subtitle><icon>icon.png</icon></item><item uid="7" arg="{"controller":"config","action":"getStarredItems","params":{"search":null}}" valid="yes" autocomplete="--stars "><title>--stars</title><subtitle>List the items starred</subtitle><icon>icon.png</icon></item><item uid="8" arg="{"controller":"config","action":"getStatuses","params":{"status":null}}" valid="yes" autocomplete="--status "><title>--status</title><subtitle>List the custom statuses</subtitle><icon>icon.png</icon></item><item uid="9" arg="{"controller":"config","action":"listPresences","params":{"presence":null}}" valid="yes" autocomplete="--presence "><title>--presence</title><subtitle>Set the user presence (either active or away)</subtitle><icon>icon.png</icon></item><item uid="10" arg="{"controller":"config","action":"refreshCache","params":null}" valid="yes" autocomplete="--refresh "><title>--refresh</title><subtitle>Refresh the cache</subtitle><icon>icon.png</icon></item></items>
Just trying to add the slack client token. No commands proposed using keyword slack :
@zenopopovici did u figured it out ?
I have the same problem, What is the solution ?
Not able to use add a client.