alfred-slack icon indicating copy to clipboard operation
alfred-slack copied to clipboard

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

Open sinewave opened this issue 4 years ago • 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

sinewave avatar Sep 19 '20 22:09 sinewave

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

sinewave avatar Sep 21 '20 18:09 sinewave

same issue here.. Workflow 4.2.1

pmoore804 avatar Oct 20 '20 23:10 pmoore804

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

mueller-stephan avatar Oct 30 '20 23:10 mueller-stephan

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

clementfalchier avatar Nov 01 '20 17:11 clementfalchier

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

brank87 avatar Nov 14 '20 12:11 brank87

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

clementfalchier avatar Nov 17 '20 12:11 clementfalchier

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

mueller-stephan avatar Nov 18 '20 07:11 mueller-stephan

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

clementfalchier avatar Nov 22 '20 18:11 clementfalchier

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!

JungHoonGhae avatar Dec 05 '20 22:12 JungHoonGhae

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

lorenzonucaro avatar Jan 04 '21 12:01 lorenzonucaro

Also getting this error. No update?

ND-CO avatar Jan 07 '21 16:01 ND-CO