GNOME Bugzilla – Bug 698178
Problem with goa and http/https gnome proxy
Last modified: 2013-04-23 14:08:59 UTC
Hi, I have problems with goa and http/https gnome proxy. I use libsoub-2.42.1, glib-networking-2.36.1 and goa-3.8.1. I can well create a google account in goa, but when i use gnome-document or empathy, Goa asks to re-authenticate me. I check with seahorse, i'm have one account. for exemple, i'm delete my google account, i'm use /usr/libexex/goa-daemon --replace, create a google account, and use gnome-document /usr/libexec/goa-daemon --replace 08:52:42.742:[10536]:[NOTICE]: goa-daemon version 3.8.1 starting [main.c:113, main()] 08:52:42.743:[10536]:[INFO]: Entering main event loop [main.c:133, main()] 08:52:42.750:[10536]:[INFO]: Connected to the session bus [main.c:58, on_bus_acquired()] 08:52:42.751:[10536]:[INFO]: Acquired the name org.gnome.OnlineAccounts on the session message bus [main.c:75, on_name_acquired()] 08:58:12.427:[10536]:[DEBUG]: Stored keyring credentials for identity: account_1366181892 [goautils.c:292, goa_utils_store_credentials_for_id_sync()] 08:58:12.427:[10536]:[DEBUG]: adding /org/gnome/OnlineAccounts/Accounts/account_1366181892 [goadaemon.c:598, process_config_entries()] 08:58:12.427:[10536]:[DEBUG]: updating /org/gnome/OnlineAccounts/Accounts/account_1366181892 1 [goadaemon.c:459, update_account_object()] 08:58:13.090:[10845]:[DEBUG]: Retreived keyring credentials for id: account_1366181892 [goautils.c:218, goa_utils_lookup_credentials_sync()] 08:58:13.090:[10845]:[DEBUG]: Returning locally cached credentials (expires in 3599 seconds) [goaoauth2provider.c:1584, goa_oauth2_provider_get_access_token_sync()] 08:58:13.639:[10536]:[INFO]: Reloading configuration files [goadaemon.c:160, on_config_file_monitor_timeout()] 08:58:13.640:[10536]:[DEBUG]: unchanged /org/gnome/OnlineAccounts/Accounts/account_1366181892 [goadaemon.c:631, process_config_entries()] 08:58:13.640:[10536]:[DEBUG]: updating /org/gnome/OnlineAccounts/Accounts/account_1366181892 0 [goadaemon.c:459, update_account_object()] 08:58:13.690:[10845]:[DEBUG]: Retreived keyring credentials for id: account_1366181892 [goautils.c:218, goa_utils_lookup_credentials_sync()] 08:58:27.773:[10536]:[NOTICE]: /org/gnome/OnlineAccounts/Accounts/account_1366181892: Setting AttentionNeeded to TRUE because EnsureCredentials() failed with: Invalid password with username `svincent.fw@gmail.com' (goa-error-quark, 0): Code: 6 - Unexpected response from server (goa-error-quark, 4) [goadaemon.c:1085, ensure_credentials_cb()] But without proxy, i'm not a problem.
Created attachment 242149 [details] [review] Use SoupProxyResolverDefault with GoaEwsClient and GoaHttpClient Can you please try this patch?
Hi, i rebuild goa with patch, delete my google user, recreate, check seahorse, but same issue. /usr/libexec/goa-daemon --replace 07:55:34.283:[1206]:[NOTICE]: goa-daemon version 3.8.1 starting [main.c:113, main()] 07:55:34.285:[1206]:[INFO]: Entering main event loop [main.c:133, main()] 07:55:34.291:[1206]:[DEBUG]: adding /org/gnome/OnlineAccounts/Accounts/account_1366696512 [goadaemon.c:598, process_config_entries()] 07:55:34.291:[1206]:[DEBUG]: updating /org/gnome/OnlineAccounts/Accounts/account_1366696512 1 [goadaemon.c:459, update_account_object()] 07:55:34.291:[1206]:[INFO]: Connected to the session bus [main.c:58, on_bus_acquired()] 07:55:34.292:[1206]:[INFO]: Acquired the name org.gnome.OnlineAccounts on the session message bus [main.c:75, on_name_acquired()] 07:55:44.441:[1208]:[DEBUG]: Retreived keyring credentials for id: account_1366696512 [goautils.c:218, goa_utils_lookup_credentials_sync()] 07:55:44.441:[1208]:[DEBUG]: Returning locally cached credentials (expires in 3567 seconds) [goaoauth2provider.c:1584, goa_oauth2_provider_get_access_token_sync()] 07:55:44.908:[1208]:[DEBUG]: Retreived keyring credentials for id: account_1366696512 [goautils.c:218, goa_utils_lookup_credentials_sync()] 07:55:45.506:[1206]:[NOTICE]: /org/gnome/OnlineAccounts/Accounts/account_1366696512: Setting AttentionNeeded to TRUE because EnsureCredentials() failed with: Invalid password with username `svincent.fw@gmail.com' (goa-error-quark, 0): Code: 401 - Unexpected response from server (goa-error-quark, 4) [goadaemon.c:1085, ensure_credentials_cb()]
Looks like you got error code [1] SOUP_STATUS_SSL_FAILED or 6 from libsoup without the patch and SOUP_STATUS_UNAUTHORIZED or 401 with it. Does the proxy require you to authenticate with it? Do you have the proxy configured in Network -> Network proxy? I don't have a proxy set up on my network so I am lost here. For what it is worth, goa_http_client_check and http_client_check_response_cb in goahttpclient.c is the site of the error. [1] https://developer.gnome.org/libsoup/stable/libsoup-2.4-soup-status.html#SoupKnownStatusCode
Hi, Well I just retested and does it work now. Good work, I due to a false manipulation :( Thank you very much
Comment on attachment 242149 [details] [review] Use SoupProxyResolverDefault with GoaEwsClient and GoaHttpClient Thank you very much for testing it. Pushing to both master and gnome-3-8.