yannickglt/alfred-slack

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

Opened this issue · 11 comments

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

@yannickglt, apologies for bumping but feels like I'm sooo close to getting this working 🙏

same issue here.. Workflow 4.2.1

The slack API endpoint to retrieve direct messages changed. I created a pull request fixing this

Thanks @mueller-stephan I'm waiting for this fix too :)

Such an amazing workflow. Really hope this will be fixed soon. Slacks native search for users is a pain. This would be a time saver. 🙏 @yannickglt

@mueller-stephan do you have an update regarding the fix to search and be redirected into a Slack user? :)

@clementfalchier Redirection to users is working for me with the current version of the workflow. Can you share your relevant Alfred-Debugger output? Hope I can help then :)

I'm still with the 4.2.1 version, do you have a link to update to 4.2.2 please because I didn't find it

most of all , Thank you for this excellent work that you did to make this workflow,
But I am getting this error too!

I hope this can be fixed!

Getting the same error, any chance of getting this solved?

ND-CO commented

Also getting this error. No update?