Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when attempting to refresh after adding a client #58

Open
stdavis opened this issue Jun 11, 2020 · 19 comments
Open

Error when attempting to refresh after adding a client #58

stdavis opened this issue Jun 11, 2020 · 19 comments

Comments

@stdavis
Copy link

stdavis commented Jun 11, 2020

[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
Copy link

wd commented Jun 12, 2020

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
Copy link

I have the same error message, for the same reason

@kvb2014
Copy link

kvb2014 commented Jun 15, 2020

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
Copy link

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
Copy link

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
Copy link

kvb2014 commented Jul 3, 2020

Any known fixes or (work on) updates yet?

@pmoore804
Copy link

Are others still encountering this issue?

@stdavis
Copy link
Author

stdavis commented Aug 4, 2020

I am.

@Kageetai
Copy link

Kageetai commented Aug 5, 2020

Same here

@JuanEL0
Copy link

JuanEL0 commented Aug 6, 2020

Same here.

I'm using BigSur 11.0 Beta (20A5343i)

@tomkerswill
Copy link

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

@mmunko
Copy link

mmunko commented Sep 3, 2020

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

@XevDoc
Copy link

XevDoc commented Sep 10, 2020

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

@pushkar96
Copy link

Getting this error too

@chrisjpatty
Copy link

Same error here.

@RodneyVW
Copy link

same

@sinewave
Copy link

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
Copy link
Owner

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

@sinewave
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests