Skip to content
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 fetch contacts from gmail with version 0.3.1 (trying to parse xml as json) #48

Closed
pinouchon opened this issue Jun 7, 2013 · 2 comments

Comments

@pinouchon
Copy link

I have upgraded from version 0.2.2 to 0.3.1 and in the callback I am getting the following:

The error thrown is this:

JSON::ParserError at /google_callback
757: unexpected token at '<?xml version='1.0' encoding='UTF-8'?><feed...[more xml here]

In the trace, in omnicontacts-0.3.1/lib/omnicontacts/importer/gmail.rb l.36, the variable response_as_json is the response, but as xml. So maybe the request sent to gmail does not specify that the result must be as json... How to force the response from gmail to be json ?

I don't know how to troubleshoot further.

Any suggestions ?

@pinouchon
Copy link
Author

For now, I am just specifying 0.2.2 in gemfile so it works in production. If anyone has a similar problem I have glad to hear how to fix it

@Diego81
Copy link
Owner

Diego81 commented Aug 1, 2013

Use the last version of OmniContacts and it should work

@Diego81 Diego81 closed this as completed Aug 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants