Giter Club home page Giter Club logo

paperclip-googledrive-new's People

Contributors

ankur-ongraph avatar evinsou avatar ins429 avatar shoaibmalik786 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

paperclip-googledrive-new's Issues

Missing access token

I use rails 4.2, i have created a project on google APIs and i have followed instructions I have runing rake google_drive:authorize and i entred the required informations and i have got an access token

my config/google_drive.yml:

client_id: <%= ENV["CLIENT_ID"] %>
client_secret: <%= ENV["CLIENT_SECRET"] %>
access_token: <%= ENV["ACCESS_TOKEN"] %>
refresh_token: <%= ENV["REFRESH_TOKEN"]

So when i click on upload file button, it show error says: Missing access token , i have copied access token code from the console and paste it to config/google_drive.yml in the third line in place of <%= ENV["ACCESS_TOKEN"] %>, that's work well and the file was uploaded successfuly, but after 1 hour i have tried the operation but it was failed, and i think that the access token haven't been refreshed, so what to do to refresh it automaticly ?

LoadError: cannot load such file -- google/api_client

rake google_drive:authorize
rake aborted!
LoadError: cannot load such file -- google/api_client
/home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in require' /home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in block in require'
/home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in load_dependency' /home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in require'
/home/subha/.rvm/gems/ruby-2.4.2/gems/paperclip-googledrive-new-1.0/lib/paperclip/storage/google_drive.rb:7:in <top (required)>' /home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in require'
/home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in block in require' /home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in load_dependency'
/home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in require' /home/subha/.rvm/gems/ruby-2.4.2/gems/paperclip-googledrive-new-1.0/lib/paperclip/google_drive.rb:1:in <top (required)>'
/home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in require' /home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in block in require'
/home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in load_dependency' /home/subha/.rvm/gems/ruby-2.4.2/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in require'
/home/subha/.rvm/gems/ruby-2.4.2/gems/paperclip-googledrive-new-1.0/lib/paperclip-googledrive-new.rb:3:in <top (required)>' /home/subha/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:81:in require'
/home/subha/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:81:in block (2 levels) in require' /home/subha/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in each'
/home/subha/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in block in require' /home/subha/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in each'
/home/subha/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in require' /home/subha/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler.rb:114:in require'
/home/subha/projects/college/config/application.rb:7:in <top (required)>' /home/subha/projects/college/Rakefile:4:in require_relative'
/home/subha/projects/college/Rakefile:4:in <top (required)>' /home/subha/.rvm/gems/ruby-2.4.2/gems/rake-12.3.1/exe/rake:27:in <top (required)>'
/home/subha/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in eval' /home/subha/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in

'
(See full trace by running task with --trace)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.