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

Got errors "Failed to load resource: the server responded with a status of 400 ()" and Refused to display '..' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. #6

Open
basebasket opened this issue Nov 25, 2016 · 13 comments

Comments

@basebasket
Copy link

basebasket commented Nov 25, 2016

I 'm facing these errors when loading a form view likes employee or products and it doesn't show any thing when click on 'From GDrive...' under 'Attachment(s)'. I followed all steps in readme file and lost hours to find what am I missing but no luck, do you know how can I resolve these errors ?

@letzdoo-js
Copy link

Hi,

Have you enabled the Drive and the Picker API ?

Picker is new, I will update the Readme

Setting this up is a bit tricky, I don't see how to make it more simple, any suggestion is welcome.

@basebasket
Copy link
Author

I enabled Drive API but can't find Picker API in my library, do I need config or enable something for Picker API ?

@letzdoo-js
Copy link

capture d ecran 2016-11-25 a 12 29 13

@basebasket
Copy link
Author

basebasket commented Nov 25, 2016

tks, I enabled it but errors still appear

@letzdoo-js
Copy link

the errors are "normal", it is google code that make use of this parameter, but it does not impact the behavior.

do you have a popup blocker ? this must be disabled as well.

are you using entrerprise or community version ? 9.0 ? which browser ?

@basebasket
Copy link
Author

basebasket commented Nov 28, 2016

sorry, I comeback from 2 days absence . I use adblock extension of chrome, I stopped it and test again but no luck. My odoo version is community 9.0

@basebasket
Copy link
Author

basebasket commented Nov 28, 2016

The errors was gone when I change line 50 in gdrive.js file 'immediate': true to 'immediate': false then change url config in google console from http://0.0.0.0:8069/ to http://localhost:8069/ , adding /oauth2callback after redirect URIs and open odoo with http:/localhost:8069/ instead of http://0.0.0.0:8069/
screenshot from 2016-11-28 11 06 04

Hope to see you update these in source and readme file

@letzdoo-js
Copy link

letzdoo-js commented Nov 28, 2016 via email

@basebasket
Copy link
Author

no, I means is using http://localhost:8069 instead of htpp://0.0.0.0:8069 because we usually use url http://0.0.0.0:8069 in local environment

Hope to see your update soon

@basebasket
Copy link
Author

I've ran the module on v9 enterprise and It 's working well as expected, but on v10 community I got strange error when click on From GDrive. Do you have any plan for develop the module on v10 ?

screenshot from 2017-01-18 09 50 33

@letzdoo-js
Copy link

Hi,
As soon as I get some time I will migrate it. Do not hesitate to let me know if you get a work around.

Best regards

Jerome

@chaosbunker
Copy link

+1

Hi Jerome, just wanted to add my voice. I hope you will be able to fix the error, it would be awesome if the addon worked with 10.0! :-)

@hongquangminh
Copy link

Hi,
This issue fixed?

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

4 participants