IllegalArgumentException : Trying to set foreign cookie while downloading Google Spreadsheet via API? -


i trying download google spreadsheet using download api version 3 ( v3 ). getting "java.lang.illegalargumentexception: trying set foreign cookie" error message while downloading spreadsheet. tried google apps account authenticated 2 legged oauth authentication process. there facing kind of problem ?

here error stacktrace :

servlet.service() servlet action threw exception|java.lang.illegalargumentexception: trying set foreign cookie     @ com.google.gdata.client.http.googlegdatarequest$googlecookie.<init>(googlegdatarequest.java:166)     @ com.google.gdata.client.http.googlegdatarequest$googlecookiehandler.put(googlegdatarequest.java:399)     @ sun.net.www.http.httpclient.parsehttpheader(httpclient.java:710)     @ sun.net.www.http.httpclient.parsehttp(httpclient.java:632)     @ sun.net.www.protocol.http.httpurlconnection.getinputstream(httpurlconnection.java:1000)     @ sun.net.www.protocol.http.httpurlconnection.getheaderfields(httpurlconnection.java:2053)     @ sun.net.www.protocol.https.httpsurlconnectionimpl.getheaderfields(httpsurlconnectionimpl.java:263)     @ com.google.gdata.client.http.httpgdatarequest.isoauthproxyerrorresponse(httpgdatarequest.java:558)     @ com.google.gdata.client.http.httpgdatarequest.checkresponse(httpgdatarequest.java:549)     @ com.google.gdata.client.http.httpgdatarequest.execute(httpgdatarequest.java:530)     @ com.google.gdata.client.http.googlegdatarequest.execute(googlegdatarequest.java:535) 

edit: issue occurs in 1 of our user's accounts using our app. working fine other users

i faced same issue , able solve changing url.

the url got directly gdrive:

https://docs.google.com/spreadsheets/d/19du6mgmzp94vxxhk5httgfk4dqgycqkbbldq_6i5j7o/edit#gid=1472457471

had modify above to:

https://spreadsheets.google.com/feeds/spreadsheets/**19du6mgmzp94vxxhk5httgfk4dqgycqkbbldq_6i5j7o

hope someone.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -