vasile / GTFS-viz

Converts a GTFS dataset into a SQLite DB + GeoJSONs / KMLs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Auth change !

dkjeune opened this issue · comments

Impossible to create fusion_table because the google auth return : "request error 404: https://developers.google.com/accounts/docs/AuthForInstalledApps"
Have you a solution ?

Thanks

GData::Client::AuthorizationError: request error 404: https://developers.google.com/accounts/docs/AuthForInstalledApps

@dkjeune, I just reached the same problem. If yoy need any test, let me know. I know noting of ruby or even fusion tables, but I'll try to learn as I try to get a workaround.

Hi, if you find a solution, let me know, i'm blocked.

Which fusion_tables gem version do you guys use ? /cc @dkjeune @Vedolin
Google deprecated some of the authentication APIs, i.e. you can't anymore auth via user/password, so you might need to install a previous version of the gems

Is there an other solution to run this script ?

Yes, there is but I need to know which version of these gems you guys are running. Also if you can add --trace to the rake task that fails and paste the content here would be helpful for debugging

here the errors

vzi noureddine$ rake project:deploy_fusiontables --trace
** Invoke project:deploy_fusiontables (first_time)
** Execute project:deploy_fusiontables
01:01:58 +0 : START Fusion Tables INSERTs
rake aborted!
GData::Client::AuthorizationError: request error 404: https://developers.google.com/accounts/docs/AuthForInstalledApps
/Library/Ruby/Gems/2.0.0/gems/gdata_19-1.1.5/lib/gdata/auth/clientlogin.rb:85:in get_token' /Library/Ruby/Gems/2.0.0/gems/gdata_19-1.1.5/lib/gdata/client/base.rb:157:inclientlogin'
/Users/noureddine/Documents/tomcat/webapps/vzi/inc/ft.rb:10:in init' /Users/noureddine/Documents/tomcat/webapps/vzi/inc/ft.rb:99:ingetTable'
/Users/noureddine/Documents/tomcat/webapps/vzi/inc/ft.rb:28:in update' /Users/noureddine/Documents/tomcat/webapps/vzi/Rakefile:435:inblock (3 levels) in <top (required)>'
/Users/noureddine/Documents/tomcat/webapps/vzi/Rakefile:434:in each' /Users/noureddine/Documents/tomcat/webapps/vzi/Rakefile:434:inblock (2 levels) in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in call' /Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:inblock in execute'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:in each' /Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:inexecute'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:179:in block in invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:inmon_synchronize'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain' /Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:165:ininvoke'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:150:in invoke_task' /Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:inblock (2 levels) in top_level'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in each' /Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:inblock in top_level'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:115:in run_with_threads' /Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:100:intop_level'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:78:in block in run' /Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:176:instandard_exception_handling'
/Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:75:in run' /Library/Ruby/Gems/2.0.0/gems/rake-10.4.2/bin/rake:33:in<top (required)>'
/usr/bin/rake:23:in load' /usr/bin/rake:23:in

'
Tasks: TOP => project:deploy_fusiontables

Here is the list of my GEMS (just for your info)

GEM LIST

bigdecimal (1.2.0)
bouncy-castle-java (1.5.0147)
bundler (1.5.3)
bundler-unload (1.0.2)
executable-hooks (1.3.1)
fusion_tables (0.4.1, 0.4.0, 0.3.2)
gdata (1.1.2)
gdata_19 (1.1.5)
google-auth (0.0.2)
gem-wrappers (1.2.4)
hashie (3.4.2)
io-console (0.4.2)
jruby-openssl (0.9.4)
json (1.8.1, 1.7.7)
minitest (4.3.2)
multi_json (1.11.2)
oauth (0.4.7)
omniauth (1.2.2)
omniauth-google (1.0.2)
omniauth-oauth (1.1.0)
psych (2.0.0)
rack (1.6.4)
rake (10.1.1, 0.9.6)
rdoc (4.0.0)
rubygems-bundler (1.4.2)
rvm (1.11.3.9)
sqlite3 (1.3.9)
test-unit (2.0.0.0)

Hi @vasile
I am facing same issue, gem verion --- fusion_tables (0.4.1)

Hi @vasile now I am going upgrade the OAuth version 1.0 to OAuth 2.0 I followed below guidelines
https://developers.google.com/identity/protocols/OAuth_ref?hl=en#migration

and I added keys in login file, but still i am getting above same error
gem verion --- fusion_tables (0.4.1)

Thanks in advance

Hello everybody,

Any update on this ?

Thanks :)

Fixed with 78a8562
Sorry for taking so long, please give it a spin and let me know if it's working