Hi,
Thanks alot for the module. I have downloaded the module for drupal 7 and followed the instructions in readme.txt file. When I clicked on the sign in with google button I get this message "Failed to get result from server!". I have also tried 6.x version of this module with drupal 6. No luck there. I'm happy to provide any extra information. Thank you.
Comments
Comment #1
anil614sagar commentedDear Ranjith,
We assume you correctly configured Google API key. Recently Google Changed Terms & Conditions of Google Identity tool kit, even we faced the same issue. Using a new google API key solved the problem.
Try to generate new API key from code.google.com then use the same for gconnect module. Let us know if you are still facing the same issue.
Cheers,
Anil Sagar
Comment #2
anil614sagar commentedComment #3
johnson_lin commentedGreetings, we just started trying to use this module, and we have this "Failed to get result from server!" problem as well. Tried regenerating API key, but still no success. We are using D7 version.
Comment #4
anil614sagar commentedDear Johnson Lin,
Can you please paste the output of the ajax request here using using tool like firebug in firefox. That will help to debug the issue.
Cheers,
Anil Sagar
Comment #5
anil614sagar commentedMake sure you enabled Google Identity Toolkit API in the services tab as shown below in your account.
Comment #6
johnson_lin commentedThanks for the fast reply! My bad, we are using Google APIs for the first time and didn't know there are those settings (and obviously didn't read through module installation description.)
However, after enabling Identity ToolKit API, we are now bumping into a 404 error. It happens right after I approved API access from Google Account page. I think it was going to redirect me back to a URL from my site, and then 404 happened.
I have firebug and httpfox enabled, but I am not sure which information in the request I should provide you. :)
Thanks in advance!
Comment #7
anil614sagar commentedJohnson Lin,
Can you please give us the URL that you are seeing 404 error. That will help to find out the issue.
Cheers,
Anil Sagar
Comment #8
johnson_lin commentedThe request resulted in 404 is like:
http://173.255.254.41/test/test/drupal/git/callback?gx.rp_st=.....
My test site's URL is http://173.255.254.41/test/test/drupal/ and I am not sure where that request led to?
btw, it seems there're quite a few reference to axschema.org in the rest of the request as well. I am not sure what it is, but according this page:
http://stackoverflow.com/questions/7403536/list-of-available-attributes-...
The answer said [http://openid.net/schema] supersedes [http://axschema.org] ..
The full URL is: (note, I've taken out my name and my email in this)
http://173.255.254.41/test/test/drupal/git/callback?gx.rp_st=AEp4C1soYPT...
Comment #9
anil614sagar commentedJohnson Lin,
Clean Url's are not enabled in the server. http://drupal.org/getting-started/clean-urls If you want to quickly solve this issue enable clean url's support for your site which will be good for SEO also.
Otherwise in a couple of hours i will release a patch for this module which will support site without clean url's.
Cheers,
Anil Sagar
Comment #10
johnson_lin commentedThank you for the prompt reply! I'll test it right away.
Comment #11
anil614sagar commentedComment #12
anil614sagar commentedHi,
CLEAN URL's issue Changes committed to dev versions. New packages will be available once Drupal Re-generates the package in next 12 hours.
In the mean time here is the patch files
For Drupal 7 http://drupalcode.org/project/gconnect.git/commit/2de90b5
For Drupal 6 http://drupalcode.org/project/gconnect.git/commit/9fc6424
Let us know how it goes.
Cheers,
Anil Sagar
Comment #13
johnson_lin commentedWe messed with Clean URL for a while, figuring out that some AllowOverride setting was off after we moved our site directory. With working Clean URL enabled, this time it looked like that "Connect to Server..." window was not sending requests at all (I can't see anything relevant in httpfox)... It just stucked there.
Is Google API for this down or something? Because that's very unlikely to happen; OTOH, I don't think we did anything for the past hour that might cause this as well.
Comment #14
anil614sagar commentedJohnson Lin,
I just tested using your site and it is working !!!!!!!! http://173.255.254.41/test/test/drupal/
And i also got an email from admin saying below
Anil Sagar,
感謝您於The Test
Site註冊。您的帳號申請正在等待審核。一旦審核通過後,您將會收到另外一封包含如何登入、設定密碼及其他細節的電子郵件。
-- The Test Site 團隊
Now, I can even able to sign in using Google Too from your site, so the module is working in your site.
Please confirm same !
Cheers,
Anil Sagar
Comment #15
johnson_lin commentedHello, wow, many thanks for even trying to login yourself.:D
Yeah :p But we installed our module on another test site, which is using Apache's virtual host (not just a sub-directory like the URL I posted earlier), and it had aforementioned problem. Both sites have Clean URL enabled. We are still investigating if this is virtual host setting's problem.
The site using virtual host is currently at: http://test.igdshare.org
I miraculously happened to be able to sign-in using gmail account to test.igdshare.org once. But that didn't happen for any other attempt.. Using Chrome's developer console, the last console message it prints is:
Request to GoogleAPI: method=[identitytoolkit.relyingparty.createAuthUrl], params=[{"continueUrl":"http://test.igdshare.org/git/callback","identifier":"gmail.com"}].
But there was no response from Google's side. Could you be so kind to try to login to http://test.igdshare.org to see if you see the same problem?
Thank you again for the reply! :D
Comment #16
anil614sagar commentedI can see Sign In using Google Successfully working in below link.
http://test.igdshare.org/user/login
But not on home page, I guess some javascript files conflict is making it not to invoke the request to Google. Please check you home page source code to see any javascript files exists twice. It can be your virtual hosting setting also, but i am not sure.
Cheers,
Anil Sagar
Comment #17
anil614sagar commentedJohnson Lin,
My guess is correct something is conflicting in your home page. I see below error in home page.
Skipping duplicate osapi method definition googleapis.newHttpRequest on transport googleapis; others may exist, but suppressing warnings.https://plus.google.com/_/apps-static/_/js/widget/gcm_ppb,googleapis_cli...
Since this is not an issue with Drupal Gconnect Module and works as expected, Since conflict is because of Google Javascript files i am marking this issue as fixed.
Cheers,
Anil Sagar
Comment #18
anil614sagar commentedComment #19
veleiro commentedI am still having this problem, even after the previous thread and going through this one. I am unable to get past the "Failed to get results from server" part. I updated the module to the latest dev version, I have clean url's enabled, I went into my google api consoleand enabled the identity toolkit api, and I've tried multiple API keys.
"Failed to get results form server" shows immediately as if nothing loads.
http://gvno.net/user
Comment #20
anil614sagar commentedDear Taylor Gunnoe,
We will investigate this issue and come back to you soon.
Cheers,
Anil Sagar,
Sr. Drupal Developer,
SourceN,
www.sourcen.com
www.anilsagar.com
Comment #21
anil614sagar commentedDear Taylor Gunnoe,
I can see that i can able to get past "Failed to get results form server" and see the login page from google. Later it fails and shows an error saying We were unable to complete your request.
Please confirm this action.
Follow the readme.txt file or instructions on home page to solve the issue. Deve version of Drupal 7 is working perfectly with our test instance.
Cheers,
Anil Sagar
Comment #22
rinkiprasad commentedI have also facing the same issue.
i write down my steps what to do.
1) download drupal gconnect module.
2) install it
3) Generate API key from https://code.google.com and set in configure
4) Enable Identity Toolkit API from https://code.google.com
I have follow all steps which is written in readme.txt file but getting "Failed to get results form server".
I m stuck. Plz help us.
plz review http://bma.in/drupal/socialmedia/user/login and provide us solution
Thanks in advance
Comment #23
anil614sagar commentedHi Prasad,
I can see you are getting 403 access denied error from google.
Make sure you allow the domain names you are using for google connect or allow any referer as shown in like http://drupal.org/files/images/Google-API.preview.png in the google API console.
Make sure you correctly configured the google API key in the module configuration settings page of Administer > Site Configuration > Google Connect Settings.
Let me know how it goes.
Cheers,
Anil Sagar
Comment #24
rinkiprasad commentedHi
Thanks for your quick response. I have already enable it with current domain. but as per your reply we have set to "Any referer allowed" then it's working fine.
Thanks for this great module.
Rinki
Comment #25
anil614sagar commentedComment #26
shashank.singh commentedHi,
I am using Google Identity Toolkit (GITkit), but when we are going to login through gmail, when i click on 'Allow access'. It gives following error after redirection.
Errror:
'We were unable to complete your request.'
When i check the db log i saw following error:
Errror:
'Failed to obtain a 3rd party identifier for user ID 0: auth_info() returned error: Cannot able to connect to google !.'
Can you please see this issue.