-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Unable to set Guzzle config options / headers / proxy on Slack Notification #15837
Comments
I would rather do it like this:
|
Yes that is how you do it and how you would do it if you made a custom slack notification channel, but seeing how all this is shipped with laravel, it just doesn't feel right to have to create another (duplicate) channel just to be able to configure the Guzzle connection. |
@arctic-ice-cool Can you list the exact error stack you are getting? |
What error? |
@arctic-ice-cool Which library are you using for connecting to slack? Also can you provide code you are writing? |
Sorry, I don't think you understand the issue (or it isn't an issue and the functionality does exist already) Guzzle allows (as you can see in both our examples) to configure the proxy settings to which is applies to its CURL connections. The slack notification channel built into Laravel uses Guzzle, but doesn't allow the injection of these settings to ensure Guzzle connects via a proxy. Does that make more sense? Thanks |
@arctic-ice-cool I completely understand the Guzzle documentation :D. My question was whether you were using another package for connecting to slack |
OK great, thanks. No nothing, just Laravel, doing the standard Slack notification - it all works great. I just need to be able to specify proxy settings for Guzzle, and don't think it should be necessary (I know its not complicated) to duplicate the standard slack notification channel, just for the ability to pass Guzzle parameters. Thanks |
Please feel free to open a PR to suggest this change, this repo issues is for bug reporting only. I think you need to change |
I don't know how to do that, I don't use Git :( It's on my list to grasp when I get the chance though. |
Description:
I can't seem to be able to set the Guzzle config array to include the:
array when using the Slack notification driver. Is it possible to have a global configuration file for Guzzle as Laravel is dependent on it? It seems a shame to have to recreate a Slack notification channel just to include some Guzzle configuration parameters?
Steps To Reproduce:
Have a laravel app that uses the above configuration array variables when creating a new Guzzle Client for systems behind a corporate firewall with only a proxy to external access. or requires proxy access to the relevant notification channel.
The text was updated successfully, but these errors were encountered: