yannickglt / alfred-slack

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

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

Open sinewave opened 4 years ago

sinewave commented 4 years ago

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
sinewave commented 4 years ago

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

pmoore804 commented 4 years ago

same issue here.. Workflow 4.2.1

mueller-stephan commented 4 years ago

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

clementfalchier commented 4 years ago

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

brank87 commented 4 years ago

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

clementfalchier commented 4 years ago

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

mueller-stephan commented 4 years ago

@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 :)

clementfalchier commented 4 years ago

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

JungHoonGhae commented 3 years ago

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!

lorenzonucaro commented 3 years ago

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

ND-CO commented 3 years ago

Also getting this error. No update?