yannickglt / alfred-slack

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

Error when attempting to refresh after adding a client #58

Open stdavis opened 4 years ago

stdavis commented 4 years ago
[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
wd commented 4 years ago

I got the same error, seems the reason is some of slack api deprecated https://api.slack.com/methods/channels.list

This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020

cjrpriest commented 4 years ago

I have the same error message, for the same reason

kvb2014 commented 4 years ago

Same here. In my case that means I cannot get Alfred Slack to work at all, because it doesn't recognize my team...

Is there a known workaround yet? (please note: I am a verified noob when it comes to Alfred workflows. Didn't know workflows existed until yesterday evening)

aprice42 commented 4 years ago

Getting the same error here. Here is my output in case it is helpful to have more examples:

Notice: Undefined index: groups in /Users/andy/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE6CADE6-A897-4AC3-B50F-8525023F3C57/scripts/helpers/service/SingleTeamSlackService.php on line 97

Warning: Invalid argument supplied for foreach() in /Users/andy/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE6CADE6-A897-4AC3-B50F-8525023F3C57/scripts/helpers/service/SingleTeamSlackService.php on line 99

Warning: array_map(): Expected parameter 2 to be an array, bool given in /Users/andy/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE6CADE6-A897-4AC3-B50F-8525023F3C57/scripts/models/ModelFactory.php on line 32

Notice: Undefined index: ims in /Users/andy/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE6CADE6-A897-4AC3-B50F-8525023F3C57/scripts/helpers/service/SingleTeamSlackService.php on line 111

Warning: Invalid argument supplied for foreach() in /Users/andy/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE6CADE6-A897-4AC3-B50F-8525023F3C57/scripts/helpers/service/SingleTeamSlackService.php on line 113

Warning: array_map(): Expected parameter 2 to be an array, bool given in /Users/andy/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AE6CADE6-A897-4AC3-B50F-8525023F3C57/scripts/models/ModelFactory.php on line 32
Cache refresh successfully' to Post Notification
user68329 commented 4 years ago

Same issue here. New install.

Notice: Undefined index: groups in /Users/<removed>/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.<removed>/scripts/helpers/service/SingleTeamSlackService.php on line 97

Warning: Invalid argument supplied for foreach() in /Users/<removed>/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.<removed>/scripts/helpers/service/SingleTeamSlackService.php on line 99

Warning: array_map(): Expected parameter 2 to be an array, bool given in /Users/<removed>/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.<removed>/scripts/models/ModelFactory.php on line 32

Notice: Undefined index: ims in /Users/<removed>/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.<removed>/scripts/helpers/service/SingleTeamSlackService.php on line 111

Warning: Invalid argument supplied for foreach() in /Users/<removed>/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.<removed>/scripts/helpers/service/SingleTeamSlackService.php on line 113

Warning: array_map(): Expected parameter 2 to be an array, bool given in /Users/<removed>/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.<removed>/scripts/models/ModelFactory.php on line 32
kvb2014 commented 4 years ago

Any known fixes or (work on) updates yet?

pmoore804 commented 4 years ago

Are others still encountering this issue?

stdavis commented 4 years ago

I am.

Kageetai commented 4 years ago

Same here

JuanEL0 commented 4 years ago

Same here.

I'm using BigSur 11.0 Beta (20A5343i)

tomkerswill commented 4 years ago

I'm getting this error, too --- undefined index. Are there any workarounds?

mmunko commented 4 years ago

Hi, does anyone have any hint how to resolve this issue?

XevDoc commented 4 years ago

Same. First time user, probably hitting the post-June-2020 deprecation as well. macOS Big Sur Beta 6.

pushkar96 commented 4 years ago

Getting this error too

chrisjpatty commented 4 years ago

Same error here.

RodneyVW commented 4 years ago

same

sinewave commented 4 years ago

Ugh, also just ran into this after spending 20mins creating an app/setting everything up 😞

Is this project still active...hopefully @yannickglt can shed some light on how to fix/workaround this issue 🙏

yannickglt commented 4 years ago

I published a fix on v4.2.1. Can you give it a try?

sinewave commented 4 years ago

Woohoo, yea that seemed to fix this particular problem. Tku!

Unfortunately I ran into some other issues that i'll log as a separate issue.