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

anil614sagar’s picture

Assigned: Unassigned » anil614sagar

Dear 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

anil614sagar’s picture

Status: Active » Postponed (maintainer needs more info)
johnson_lin’s picture

Greetings, 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.

anil614sagar’s picture

Dear 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

anil614sagar’s picture

Make sure you enabled Google Identity Toolkit API in the services tab as shown below in your account.

GIT

johnson_lin’s picture

Thanks 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!

anil614sagar’s picture

Johnson 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

johnson_lin’s picture

The 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...

anil614sagar’s picture

Johnson 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

johnson_lin’s picture

Thank you for the prompt reply! I'll test it right away.

anil614sagar’s picture

Status: Postponed (maintainer needs more info) » Active
anil614sagar’s picture

Hi,

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

johnson_lin’s picture

We 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.

anil614sagar’s picture

Johnson 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

johnson_lin’s picture

Hello, 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

anil614sagar’s picture

Status: Active » Fixed

I 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

anil614sagar’s picture

Johnson 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

anil614sagar’s picture

Status: Fixed » Closed (fixed)
veleiro’s picture

Status: Closed (fixed) » Active

I 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

anil614sagar’s picture

Dear 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

anil614sagar’s picture

Dear 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

rinkiprasad’s picture

I 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

anil614sagar’s picture

Hi 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

rinkiprasad’s picture

Hi
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

anil614sagar’s picture

Status: Active » Closed (fixed)
shashank.singh’s picture

Title: Failed to get result from server! » Failed to obtain a 3rd party identifier for user ID 0: auth_info() returned error: Cannot able to connect to google !
Version: 7.x-1.x-dev » 6.x-1.x-dev

Hi,

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.