Closed (fixed)
Project:
Social Auth Facebook
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2018 at 14:28 UTC
Updated:
20 Jan 2021 at 03:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gvsoCan you elaborate a little more on how to exactly reproduce this issue?
Comment #3
ayalon commentedIt's happening on every login. Think of a drupal installation, that does not have $settings['http_client_config')['proxy']['http'] in it's config file. This is default for all new installations.
Which means, that every installation of this module will most probably have this notice everytime a login happens.
Comment #4
gvsoI have installed a fresh Drupal 8.6 RC1 installation (with all the required Social API modules), and I don't get any errors. Can you please explain step by step how you are getting the error ?
Comment #5
gvsoComment #6
thomwilhelm commentedI've encountered the same issue here, I believe to reproduce you need to add the a line to your settings.php that sets a http_client_config config setting such as:
Then this warning starts getting triggered. You can prevent this warning by then explicitly setting:
Seems to affect other modules such as the social_auth_google also with the same statement.
Comment #7
gvsoOk, I can see why the errors might happen. If we are going to work on this, I think it is also a good idea to check both http and https proxy configuration. Currently, we are only dealing with http proxies.
Comment #8
skymen commentedProblem is present on fresh installation Drupal 9. This patch fixed it. The same problem on social_auth_google. Yesterday I wrote patch for it https://www.drupal.org/project/social_auth_google/issues/3154225
Ideally, to all social auth plugins should add a same check 'http_client_config' in a code.
Comment #9
daniel kulbeThat doesn't look right to get the config twice.
Comment #10
wellsRetargeting this for 3.x-dev. Don't think a re-roll will be needed.
Comment #11
mohit.bansal623 commentedApplying patch for the version 3.x-dev.
Comment #13
wellsThanks, @mohit.bansal623. This is tested and good. Committed to 3.x-dev.