Giter VIP home page Giter VIP logo

alfred-slack's Introduction

alfred-slack

Gitter

Open conversation with a contact in Slack

To start

  1. Download and install Slack.alfredworkflow

  2. Create a custom app for your team following these steps.

  3. Once you have your client ID and Secret, visit the address https://yannickglt.github.io/alfred-slack/ to generate a unique code for authentication in the Workflow.

    1. Enter your team name in the first field and your client ID in the second one, then click on the button "Generate code".

    image

    1. Authorize the app to access your Slack team with the rights below.

    image

    1. Copy your generated unique code in your clipboard.

    image

  4. Launch the slack workflow with the parameter --add-client followed by the concatenation of the generated unique code and client Secret separated by a colon (e.g.: UNIQUE_CODE:CLIENT_SECRET). You can add several clients if you want to collaborate with several teams. You just need to repeat the two last steps.

    Example:

    slack --add-client 1234567890.123456789012|1234567890.123456789012.abcdef1234:1234567890abcdef1234567890abcdef
    
  5. Launch the cache refresh by taping the command --refresh.

    Example:

    slack --refresh
    

    The cache refresh may take up to several minutes depending on your organization size.

  6. Enjoy!

    Note: install the Packal Updater workflow if you want automatic updates.

How to use

  • List channels or groups to open in the Slack app:

    slack <channel/group>
    

    image

  • List users to open in the Slack app:

    slack <user>
    

    image

  • Open a channel, group or user in the Slack app:

    slack <channel/group/user>
    

    image

  • List messages from a specific channel, group or user:

    slack <channel/group/user>
    

    image

  • Send a message to a channel, group or user:

    slack <channel/group/user> <message>
    

    image

  • Mark all channels as read

    slack --mark
    
  • List the files within the team

    slack --files <search>
    
  • List the items starred

    slack --stars <search>
    
  • Search both messages and files

    slack --search <query>
    
  • Set the user presence (either active or away)

    slack --presence <active|away>
    
  • Set the custom status

    slack --status <in a meeting|commuting|out sick|vacationing|working remotely|clear>
    

Create an app for your team

  1. Go to the URL https://api.slack.com/apps/new and click on the button Create a Slack app.

    image

  2. Give it an app name e.g.: "Alfred Workflow", select your team in the list and click on the button Create App.

    image

  3. Note the client ID and Secret!

    image

⚠️ Never share the client secret on the web or on public repository

  1. Go to the section OAuth & Permissions (under the Features category), add the two redirect URLs http://yannickglt.github.io/alfred-slack/ and https://yannickglt.github.io/alfred-slack/ and click on Save URLs.

    image

alfred-slack's People

Contributors

ethansinjin avatar k-sho-boo avatar kapik avatar rouzbeh84 avatar yannickglt avatar zenopopovici avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alfred-slack's Issues

More like a question than an issue

Does the Slack workflow assume you only belong to one Slack Team? I have gotten tokens for different teams in which I would have wanted to use this workflow, but it only seems to work with the first one. I can't tell if I'm doing something wrong or if it was only meant to work with one.

Thanks!

Improve error messages

  • Handle bad client entry (like missing password at the end)
  • Display error when slack auth failed (because of already used code for example)

Constantly get "Undefined index: team_id" error

I get the following error whenever issuing any slack command through alfred, even when trying to do slack --token or slack --refresh:

[ERROR: alfred.workflow.input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 4.)'. Row 1, Col 1: 'Document is empty' in XML:
Notice: Undefined index: team_id in /Users/Suan/dotfiles/Alfred.alfredpreferences/workflows/user.workflow.34900165-4E0A-4199-93C4-3FD8B1066633/scripts/helpers/service/MultiTeamSlackService.php on line 66

Am running the latest versions of this workflow and Alfred

Integration not working

Tried to get the workflow to work several times, but every time I get the same errors. mAny idea how to fix this?

Notice: Undefined index: team_id in /Users/rogier/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.CE1CEA62-91B2-40B0-8B19-9119946286EA/scripts/helpers/service/MultiTeamSlackService.php on line 99

Notice: Undefined index: team_id in /Users/rogier/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.CE1CEA62-91B2-40B0-8B19-9119946286EA/scripts/helpers/service/MultiTeamSlackService.php on line 103

Notice: Undefined index: team_id in /Users/rogier/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.CE1CEA62-91B2-40B0-8B19-9119946286EA/scripts/helpers/service/MultiTeamSlackService.php on line 104

Notice: Undefined index: team_id in /Users/rogier/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.CE1CEA62-91B2-40B0-8B19-9119946286EA/scripts/helpers/service/MultiTeamSlackService.php on line 104

Can't add token

After I add the workflow to alfred, I get my token. Then I open alfred type in slack and as soon as I type -- it tries to google search and doesn't give me an option to use the slack workflow anymore. Any suggestions?

Bring the app on top

When the Slack's window is closed, the Slack command doesn't bring the Slack window on top.

Improve messages formatting

  • Replace user/channel references with their name (e.g.: hi <@U02DSC9DX>)
  • Replace links to messages with the message content (with a link to open it in the browser on enter key)
  • Replace external links in order to open them in the browser on enter key
  • Replace images with the image as icon and a link to open it in the browser

Undefined index: T03RHR4U3

Hi,

I get the following error whenever issuing any slack command through alfred:

[STDERR: alfred.workflow.input.scriptfilter] ACTION: AlfredSlack\Controllers\ChannelController::getChannelsAction()
SIMULATE: php -r '$query="{\"controller\":\"channel\",\"action\":\"getChannels\",\"params\":{\"channel\":\"@user\",\"message\":\"test\"}}";include "scripts/index.php";';
[ERROR: alfred.workflow.action.script] ACTION: AlfredSlack\Controllers\ChannelController::sendMessageAction()
SIMULATE: php -r '$query="{\"controller\":\"channel\",\"action\":\"sendMessage\",\"params\":{\"channel\":{\"_type\":\"user\",\"id\":\"U03RJ5GL9\",\"team_id\":\"T03RHR4U3\",\"name\":\"user\",\"deleted\":false,\"status\":null,\"color\":\"4bbe2e\",\"real_name\":\"User User\",\"tz\":\"Asia\/Muscat\",\"tz_label\":\"Gulf Standard Time\",\"tz_offset\":14400,\"profile\": ...

Am running the latest versions of this workflow and Alfred.

Not seeing private channels

I have installed the workflow and configured it, I see all public channels but not my private channels when I list the channels using Alfred.

Alfred v4.2.1 [1187]
Slack macOS app v 4.11.3 49a1858-s@1606800105 (App Store)

Cannot jump to 'you'

Slack has a great 'you' direct messages, where you can write notes and send messages to yourself. You can't seem to jump to this channel, if you do slack you or slack [your_name] it doesn't autocomplete.

Is this by design, or am I making a mistake in the search query?

Edit: Also thank you a lot for this workflow, it's very useful 👍 ❤️

Error when attempting to refresh after adding a client

[12:07:59.567] Slack[Run Script] Passing output '
Notice: Undefined index: channels in /Users/stdavis/Dropbox/alfred/Alfred.alfredpreferences/workflows/user.workflow.848FFBD6-55CB-461E-AEC7-D7CC86329EB0/scripts/helpers/service/SingleTeamSlackService.php on line 79

Warning: Invalid argument supplied for foreach() in /Users/stdavis/Dropbox/alfred/Alfred.alfredpreferences/workflows/user.workflow.848FFBD6-55CB-461E-AEC7-D7CC86329EB0/scripts/helpers/service/SingleTeamSlackService.php on line 81

Warning: array_map(): Expected parameter 2 to be an array, bool given in /Users/stdavis/Dropbox/alfred/Alfred.alfredpreferences/workflows/user.workflow.848FFBD6-55CB-461E-AEC7-D7CC86329EB0/scripts/models/ModelFactory.php on line 32

Notice: Undefined index: groups in /Users/stdavis/Dropbox/alfred/Alfred.alfredpreferences/workflows/user.workflow.848FFBD6-55CB-461E-AEC7-D7CC86329EB0/scripts/helpers/service/SingleTeamSlackService.php on line 97

Warning: Invalid argument supplied for foreach() in /Users/stdavis/Dropbox/alfred/Alfred.alfredpreferences/workflows/user.workflow.848FFBD6-55CB-461E-AEC7-D7CC86329EB0/scripts/helpers/service/SingleTeamSlackService.php on line 99

Warning: array_map(): Expected parameter 2 to be an array, bool given in /Users/stdavis/Dropbox/alfred/Alfred.alfredpreferences/workflows/user.workflow.848FFBD6-55CB-461E-AEC7-D7CC86329EB0/scripts/models/ModelFactory.php on line 32

Notice: Undefined index: ims in /Users/stdavis/Dropbox/alfred/Alfred.alfredpreferences/workflows/user.workflow.848FFBD6-55CB-461E-AEC7-D7CC86329EB0/scripts/helpers/service/SingleTeamSlackService.php on line 111

Warning: Invalid argument supplied for foreach() in /Users/stdavis/Dropbox/alfred/Alfred.alfredpreferences/workflows/user.workflow.848FFBD6-55CB-461E-AEC7-D7CC86329EB0/scripts/helpers/service/SingleTeamSlackService.php on line 113

Warning: array_map(): Expected parameter 2 to be an array, bool given in /Users/stdavis/Dropbox/alfred/Alfred.alfredpreferences/workflows/user.workflow.848FFBD6-55CB-461E-AEC7-D7CC86329EB0/scripts/models/ModelFactory.php on line 32
Cache refresh successfully' to Post Notification

Incomplete list of channels, users and no groups returning in workflow

Seems like I'm only able to view a subset of channels, groups, and users. I tried refreshing the cache with the same results.

Haven't figured out any pattern to it but it seems like I don't have access to any private channels as well as a large amount of public channels.

Also don't seem to have groups and whenever I view the most recent comments in a channel the icons are showing the default slack icon vs the commenters avatar.

Workflow 4.2.1
macOS 10.15.5

bad_redirect_uri

Hi!

I'm getting a bad_redirect_uri error when adding the client.

These are the redirect urls I've configured:

image

Am I doing something wrong?

Thanks!

Feat Req: Ability to set status

Hi!

Thanks for building this super Alfred workflow!

Could we add the capability to set a custom status from Alfred?

Thanks!

Messages not being posted to some users

Hi,
Hard to describe how or when but some of my messages are not being posted to some slack users although im getting the notification that the message was posted successfully.
What could be the cause?
/Y

Build instructions

The README points to version 4.1.0
Would appreciate some build instructions

Workflow error: "Missing client credentials"

Fresh install of the workflow, upon generating my unique code and adding the client secret at the end w/ colon, the workflow instantly notifies with "missing client credentials", as shown below:

Screen Shot 2021-06-15 at 11 04 38 AM

Using the latest version of Alfred, 4.3.4, on macOS Big Sur 11.4 w/ a 2019 Macbook Pro.

slack --stars, no action

When I try to get list of all starred items and ERROR: action.script will be thrown but no error message.

[2018-03-27 12:47:01][ERROR: action.script] Cache folder: /Users/xxx/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.yannickglt.alfred2.slack
Data folder: /Users/xxx/Library/Application Support/Alfred 3/Workflow Data/com.yannickglt.alfred2.slack
ACTION: AlfredSlack\Controllers\ConfigController::getStarredItemsAction()
SIMULATE: php -r '$query="{\"controller\":\"config\",\"action\":\"getStarredItems\",\"params\":{\"search\":null}}";include "scripts/index.php";';

Cannot provide API Token

Whenever I attempt to start the workflow with the --token operator, alfred immediately attempts to complete a google search. So, I cannot enter my token.

Behaviour of "slack --status "

Hi,

Thanks much for developing this.
I just discovered, but I may make a lot of use of it.

Should the suggestions provided when using the slack --status option
be read from the workspace defaults?

I just see the ones that Slack uses as an initial default, and they are not
changed when I change the Workspace settings and do a slack --refresh.

Would be great to be able to also input other status strings not
in the default as an argument, and also emoji using standard :colon: input.

I attached two clients so far: is some kind of combination of
default status suggestions from different workspaces also
possible on the roadmap?

Thanks again.

Regards,

  • Ian.

Undefined index: team_id

Hi, I am getting the following error on running slack --add-client UNIQUE_CODE:CLIENT_SECRET

Attaching screenshot:

image

Locked on refreshing cache

Hi,

First off ... wonderful workflow ... thank you!

Second ... I'm getting stuck in "Refresh still in progress". If I try to do anything I'll get that message. It's been that way for weeks, I've tried deleting the workflow and reinstalling it, but no dice.

Is there somewhere specific that the data is being stored that I can clean so I can get a fresh install of the workflow?

Thanks,
Chris

Navigating to user throws "Undefined index..." error

When trying to navigate to any user using the command "slack @user.name" I get the following error:

Workflow 4.2.1
macOS 10.15.5

Notice: Undefined index: ims in /Users/user.name/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.977F234C-3C27-4223-9CE4-AB651C2B5419/scripts/helpers/service/SingleTeamSlackService.php on line 113

Warning: Invalid argument supplied for foreach() in /Users/user.name/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.977F234C-3C27-4223-9CE4-AB651C2B5419/scripts/helpers/service/SingleTeamSlackService.php on line 115

Warning: array_filter() expects parameter 1 to be array, null given in /Users/user.name/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.977F234C-3C27-4223-9CE4-AB651C2B5419/scripts/libs/Utils.php on line 57

Warning: array_values() expects parameter 1 to be array, null given in /Users/user.name/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.977F234C-3C27-4223-9CE4-AB651C2B5419/scripts/libs/Utils.php on line 57

Warning: array_map(): Expected parameter 2 to be an array, bool given in /Users/user.name/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.977F234C-3C27-4223-9CE4-AB651C2B5419/scripts/models/ModelFactory.php on line 32

Search for Direct Messages doesn't work

First of all, awesome work. It really helps my productivity during my day.
I just installed everything, and it almost all works including 1) Searching for and being redirected to Channels, and 2) Writing Messages to Direct channels through Alfred. However, when I'm trying to open a Direct Contact, this only opens Slack but does not redirect me to the correct conversation? I'm using this command: Slack @name of Private Contact

Do you know what could cause this ?

Cannot Add ClientID

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>```

clarify permissions?

Given the reference to the URL to generate an ID it's not at all clear to me what permissions I'm giving a third-party to access my slack accounts if I follow these steps. Is the idea that I can run a separate dedicated instance myself? Or is the code generator unrelated to the main plugin that only runs locally and therefore no third-party can access anything?

Feature request: navigation *within* alfred

Love this workflow, but there are ways it could be improved in my view.
Assuming it's possible, it would be great to be able to select something in the list that appears (when doing a search for user/channel), then use the right arrow to access sub-fonctionality (such as listing messages in that channel / by that user)

Essential, similar to the way you can navigate files within alfred when using the "find" shortcut

Add scopes list to README.md

First of all, great job. This is really useful! I just have this minor suggestion of improvement.

When setting up the app, there could be more screenshots showing the addition of scopes. The list is quite extensive and is not easily shown to the user (I had to dive in into the source code). Adding at least one screenshot mentioning the necessary steps would be useful :)

packal page has misleading example

concatenation of the generated unique code and client Secret separated by semi-colons (e.g.: CLIENT_SECRET:UNIQUE_CODE)

Readme in this repo has right example

UNIQUE_CODE:CLIENT_SECRET

Fatal error allocating memory on refresh

Thanks for making this! I can't seem to get going though. After getting the client successfully added, the refresh fails with a fatal error. I tried clearing the data and trying again, but no dice. Log below:

ACTION: AlfredSlack\Controllers\ConfigController::refreshCacheAction() SIMULATE: php -r '$query="{\"controller\":\"config\",\"action\":\"refreshCache\",\"params\":[]}";include "scripts/index.php";'; Auth refreshed for team XXXXX Channels refreshed for team XXXXX Groups refreshed for team XXXX [2018-02-26 11:13:04][action.script] Processing output of 'output.notification' with arg ' Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18312808 bytes) in /Users/XXXXX/Dropbox/AlfredSync/Alfred.alfredpreferences/workflows/user.workflow.DE22DD6E-E4F1-44B5-9532-BD453966CA8B/scripts/libs/Workflows.php on line 410
Any ideas? Alfred 3.6.

Thanks!!

Cannot add client

I cannot use : Slack --add-client

CleanShot 2021-01-05 at 10 49 25

[10:48:33.651] Slack[Script Filter] Queuing argument '-'
[10:48:33.805] Slack[Script Filter] Queuing argument '--'
[10:48:33.967] Slack[Script Filter] Script with argv '(null)' finished
[10:48:33.970] STDERR: Slack[Script Filter] 2021-01-05 10:48:33.897 defaults[21010:103332]
The domain/default pair of (/Users/tarantula/Documents/Personnel_Confidentiel/Backup/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9611DE4-762C-4F03-93F5-B5BF2F27EAB8/info.plist, bundleid) does not exist
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";';
[10:48:33.973] Slack[Script Filter] Notice: Undefined offset: 0 in /Users/tarantula/Documents/Personnel_Confidentiel/Backup/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9611DE4-762C-4F03-93F5-B5BF2F27EAB8/scripts/libs/Workflows.php on line 318

<title>--add-client</title>Add a Slack clienticon.png<title>--remove-client</title>Remove a Slack clienticon.png<title>--add-token</title>Add a Slack token in the keychain (deprecated)icon.png<title>--add-token-unsafe</title>Add a Slack token in the cache instead of the keychain (deprecated)icon.png<title>--mark</title>Mark all as readicon.png<title>--files</title>List the files within the teamicon.png<title>--search</title>Search both messages and filesicon.png<title>--stars</title>List the items starredicon.png<title>--status</title>List the custom statusesicon.png<title>--presence</title>Set the user presence (either active or away)icon.png<title>--refresh</title>Refresh the cacheicon.png
[10:48:33.975] 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/tarantula/Documents/Personnel_Confidentiel/Backup/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9611DE4-762C-4F03-93F5-B5BF2F27EAB8/scripts/libs/Workflows.php on line 318

<title>--add-client</title>Add a Slack clienticon.png<title>--remove-client</title>Remove a Slack clienticon.png<title>--add-token</title>Add a Slack token in the keychain (deprecated)icon.png<title>--add-token-unsafe</title>Add a Slack token in the cache instead of the keychain (deprecated)icon.png<title>--mark</title>Mark all as readicon.png<title>--files</title>List the files within the teamicon.png<title>--search</title>Search both messages and filesicon.png<title>--stars</title>List the items starredicon.png<title>--status</title>List the custom statusesicon.png<title>--presence</title>Set the user presence (either active or away)icon.png<title>--refresh</title>Refresh the cacheicon.png
[10:48:34.043] Slack[Script Filter] Queuing argument '--a'
[10:48:34.187] Slack[Script Filter] Script with argv '(null)' finished
[10:48:34.189] STDERR: Slack[Script Filter] 2021-01-05 10:48:34.120 defaults[21017:103346]
The domain/default pair of (/Users/tarantula/Documents/Personnel_Confidentiel/Backup/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9611DE4-762C-4F03-93F5-B5BF2F27EAB8/info.plist, bundleid) does not exist
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\?":"a"}}";include "scripts/index.php";';
[10:48:34.190] Slack[Script Filter] Notice: Undefined offset: 0 in /Users/tarantula/Documents/Personnel_Confidentiel/Backup/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9611DE4-762C-4F03-93F5-B5BF2F27EAB8/scripts/libs/Workflows.php on line 318

<title>--add-token</title>Add a Slack token in the keychain (deprecated)icon.png<title>--add-client</title>Add a Slack clienticon.png<title>--add-token-unsafe</title>Add a Slack token in the cache instead of the keychain (deprecated)icon.png<title>--mark</title>Mark all as readicon.png<title>--stars</title>List the items starredicon.png<title>--search</title>Search both messages and filesicon.png<title>--status</title>List the custom statusesicon.png<title>--remove-client</title>Remove a Slack clienticon.png<title>--refresh</title>Refresh the cacheicon.png<title>--files</title>List the files within the teamicon.png<title>--presence</title>Set the user presence (either active or away)icon.png
[10:48:34.221] 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/tarantula/Documents/Personnel_Confidentiel/Backup/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9611DE4-762C-4F03-93F5-B5BF2F27EAB8/scripts/libs/Workflows.php on line 318

<title>--add-token</title>Add a Slack token in the keychain (deprecated)icon.png<title>--add-client</title>Add a Slack clienticon.png<title>--add-token-unsafe</title>Add a Slack token in the cache instead of the keychain (deprecated)icon.png<title>--mark</title>Mark all as readicon.png<title>--stars</title>List the items starredicon.png<title>--search</title>Search both messages and filesicon.png<title>--status</title>List the custom statusesicon.png<title>--remove-client</title>Remove a Slack clienticon.png<title>--refresh</title>Refresh the cacheicon.png<title>--files</title>List the files within the teamicon.png<title>--presence</title>Set the user presence (either active or away)icon.png
[10:48:34.548] Slack[Script Filter] Queuing argument '--aa'
[10:48:34.649] Slack[Script Filter] Script with argv '(null)' finished
[10:48:34.651] STDERR: Slack[Script Filter] 2021-01-05 10:48:34.644 defaults[21024:103364]
The domain/default pair of (/Users/tarantula/Documents/Personnel_Confidentiel/Backup/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9611DE4-762C-4F03-93F5-B5BF2F27EAB8/info.plist, bundleid) does not exist
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\?":"aa"}}";include "scripts/index.php";';
[10:48:34.652] Slack[Script Filter] Notice: Undefined offset: 0 in /Users/tarantula/Documents/Personnel_Confidentiel/Backup/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9611DE4-762C-4F03-93F5-B5BF2F27EAB8/scripts/libs/Workflows.php on line 318
[10:48:34.662] 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/tarantula/Documents/Personnel_Confidentiel/Backup/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D9611DE4-762C-4F03-93F5-B5BF2F27EAB8/scripts/libs/Workflows.php on line 318

Can't generate code due to SSL error

Can't generate code with http://yannickglt.github.io/alfred-slack/:

Your connection is not private

This server could not prove that it is xxx.xxx.slack.com; 
its security certificate is from *.slack.com. This may be 
caused by a misconfiguration or an attacker intercepting
your connection.

You cannot proceed because the website operator has
requested heightened security for this domain.

When you connect to a secure website, the server hosting
that site presents your browser with something called a
"certificate" to verify its identity. This certificate contains
identity information, such as the address of the website,
which is verified by a third party that your computer trusts.
By checking that the address in the certificate matches the
address of the website, it is possible to verify that you are
securely communicating with the website you intended, and
not a third party (such as an attacker on your network).

You cannot visit xxx.xxx.slack.com right now because the
website uses HSTS. Network errors and attacks are usually
temporary, so this page will probably work later.

Error file_put_contents when trying to add-token in Alfred 3

This is relatively simple to solve and I just wanted to put this here for anyone else who might run across it.

  1. Open /Users/username/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.22EEC29C-B28B-40A5-B234-FFB52703D649/scripts/libs/Workflows.php
  2. There is a line (a file path) in the file which refers to Alfred 2 instead of Alfred 3, just change that and everything works perfectly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.