yannickglt / alfred-slack

The Slack workflow for Alfred app
GNU General Public License v2.0
330 stars 31 forks source link

Cannot Add ClientID #54

Closed zenopopovici closed 4 years ago

zenopopovici commented 4 years ago

Not able to use add a client.


[15:56:03.231] Slack[Script Filter] Script with argv '(null)' finished
[15:56:03.235] STDERR: Slack[Script Filter] 2020-04-29 15:56:03.164 defaults[79345:1138632] 
The domain/default pair of (/Users/Zeno/Documents/zDatabases/Alfred/Alfred.alfredpreferences/workflows/user.workflow.5B8341F3-A18D-4C12-847D-D0CB028E4315/info.plist, bundleid) does not exist
Cache folder: /Users/Zeno/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.yannickglt.alfred2.slack
Data folder: /Users/Zeno/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\":\"add-client\",\"param\":\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXX\"}}";include "scripts/index.php";';
[15:56:03.241] Slack[Script Filter] Notice: Undefined offset: 0 in /Users/Zeno/Documents/zDatabases/Alfred/Alfred.alfredpreferences/workflows/user.workflow.5B8341F3-A18D-4C12-847D-D0CB028E4315/scripts/libs/Workflows.php on line 318
<?xml version="1.0"?>
<items><item uid="0" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;saveClient&quot;,&quot;params&quot;:{&quot;clientCredentials&quot;:&quot; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXX | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXX&quot;}}" valid="yes" autocomplete="--add-client "><title>--add-client</title><subtitle>Add a Slack client</subtitle><icon>icon.png</icon></item></items>
[15:56:03.242] 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/Zeno/Documents/zDatabases/Alfred/Alfred.alfredpreferences/workflows/user.workflow.5B8341F3-A18D-4C12-847D-D0CB028E4315/scripts/libs/Workflows.php on line 318
<?xml version="1.0"?>
<items><item uid="0" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;saveClient&quot;,&quot;params&quot;:{&quot;clientCredentials&quot;:&quot;4230126864.402571342595|4230126864.1093672151747.c69002029cf76ac2849b8d544edd593a9dd12399e09d3e6577c6a3538aaXXXX&quot;}}" valid="yes" autocomplete="--add-client "><title>--add-client</title><subtitle>Add a Slack client</subtitle><icon>icon.png</icon></item></items>```
BenoitFroment commented 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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;saveClient&quot;,&quot;params&quot;:{&quot;clientCredentials&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;removeClient&quot;,&quot;params&quot;:{&quot;team&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;saveToken&quot;,&quot;params&quot;:{&quot;token&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;saveTokenUnsafe&quot;,&quot;params&quot;:{&quot;token&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;markAllAsRead&quot;,&quot;params&quot;:null}" valid="yes" autocomplete="--mark "><title>--mark</title><subtitle>Mark all as read</subtitle><icon>icon.png</icon></item><item uid="5" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;getFiles&quot;,&quot;params&quot;:{&quot;search&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;search&quot;,&quot;params&quot;:{&quot;search&quot;:null}}" valid="yes" autocomplete="--search "><title>--search</title><subtitle>Search both messages and files</subtitle><icon>icon.png</icon></item><item uid="7" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;getStarredItems&quot;,&quot;params&quot;:{&quot;search&quot;:null}}" valid="yes" autocomplete="--stars "><title>--stars</title><subtitle>List the items starred</subtitle><icon>icon.png</icon></item><item uid="8" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;getStatuses&quot;,&quot;params&quot;:{&quot;status&quot;:null}}" valid="yes" autocomplete="--status "><title>--status</title><subtitle>List the custom statuses</subtitle><icon>icon.png</icon></item><item uid="9" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;listPresences&quot;,&quot;params&quot;:{&quot;presence&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;refreshCache&quot;,&quot;params&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;saveClient&quot;,&quot;params&quot;:{&quot;clientCredentials&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;removeClient&quot;,&quot;params&quot;:{&quot;team&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;saveToken&quot;,&quot;params&quot;:{&quot;token&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;saveTokenUnsafe&quot;,&quot;params&quot;:{&quot;token&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;markAllAsRead&quot;,&quot;params&quot;:null}" valid="yes" autocomplete="--mark "><title>--mark</title><subtitle>Mark all as read</subtitle><icon>icon.png</icon></item><item uid="5" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;getFiles&quot;,&quot;params&quot;:{&quot;search&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;search&quot;,&quot;params&quot;:{&quot;search&quot;:null}}" valid="yes" autocomplete="--search "><title>--search</title><subtitle>Search both messages and files</subtitle><icon>icon.png</icon></item><item uid="7" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;getStarredItems&quot;,&quot;params&quot;:{&quot;search&quot;:null}}" valid="yes" autocomplete="--stars "><title>--stars</title><subtitle>List the items starred</subtitle><icon>icon.png</icon></item><item uid="8" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;getStatuses&quot;,&quot;params&quot;:{&quot;status&quot;:null}}" valid="yes" autocomplete="--status "><title>--status</title><subtitle>List the custom statuses</subtitle><icon>icon.png</icon></item><item uid="9" arg="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;listPresences&quot;,&quot;params&quot;:{&quot;presence&quot;: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="{&quot;controller&quot;:&quot;config&quot;,&quot;action&quot;:&quot;refreshCache&quot;,&quot;params&quot;: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 :

image

@zenopopovici did u figured it out ?

olivierguyomard commented 3 years ago

I have the same problem, What is the solution ?