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

explorer.okfnlabs.org missing Google API #173

Open
edrex opened this issue Nov 8, 2014 · 3 comments
Open

explorer.okfnlabs.org missing Google API #173

edrex opened this issue Nov 8, 2014 · 3 comments

Comments

@edrex
Copy link

edrex commented Nov 8, 2014

On http://explorer.okfnlabs.org/#load , clicking the Google Drive icon yields an error:

Invalid credentials (missing or invalid oAuth token)

Is this because of a missing configuration value?

@edrex
Copy link
Author

edrex commented Nov 8, 2014

On the console there are more errors:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://docs.google.com') does not match the recipient window's origin ('http://explorer.okfnlabs.org'). rpc.js?c=1&container=onepick:449
Invalid 'X-Frame-Options' header encountered when loading 'https://docs.google.com/picker?protocol=gadgets&origin=http%3A%2F%2Fexplore…dsheets%22))&rpctoken=bibox2efl6l1&rpcService=s73i6i9q4lkm&thirdParty=true': 'ALLOW-FROM http://explorer.okfnlabs.org' is not a recognized directive. The header will be ignored. about:blank:1
Uncaught ReferenceError: init is not defined VM204 picker?protocol=gadgets&origin=http%3A%2F%2Fexplorer.okfnlabs.org&hostId=explorer.okfnlabs.or…:3
Uncaught SyntaxError: Unexpected end of input model.js:358

Is this because Chrome 38 has a more restrictive Cross-Origin policy than before?

@edrex
Copy link
Author

edrex commented Nov 8, 2014

Evidently that header isn't supported by Chrome/Safari

Anyway the same error is shown on Firefox, with different console output:

SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data model.js:358
ReferenceError: init is not defined picker:1
"Invalid rpc message origin.  vs http://explorer.okfnlabs.org" rpc.js:128

@rufuspollock
Copy link
Contributor

@edrex I suspect this is the same issue as okfn/timemapper#138 - i.e. to do with google updating their api some months ago. Frankly, I think we just remove gdrive selector stuff and people can just paste a gdocs url (and then we prompt them to publish to the web!).

So action is: remove gdrive icon stuff - if you want to have a go let me know - o/w i can.

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