Code Monkey home page Code Monkey logo

gdrive-index's Introduction

gdrive-index's People

Contributors

dependabot[bot] avatar patheticgeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gdrive-index's Issues

Download error

Clicking the 'Download now' button only redirects into a page with 'An error occured' text.
image

Unable to make it work!

I followed everything as instructed but i got this error

errorheroku

errorheroku2

btw my token is something like this, is that normal? PS i have modified it for security
{"access_token":"wz31.a0AfH6SMBy8oZrkcp9ugRRRvj69CkZZGLZO4vA6zKPACSZsyQZCjpJNz9T7SIqtWlKnBZfgWgMj58Bc6xE-2DK-7FIbROMUsdWH4Q4XeTiFljAeN5-Rr0TRJl7Jw","refresh_token":"1//0dpHqDNLQ0GgwF-L9IrPMy46TDkhdRoJn8Jb-3Mj8UFlgTs4w6Uzjrjap0","scope":"https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/drive.file","token_type":"Bearer","expiry_date":15955487544857}
and here is the log;
2020-07-24T21:48:16.387348+00:00 app[web.1]: npm ERR! 2020-07-24T21:48:16.387489+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script. 2020-07-24T21:48:16.387608+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 2020-07-24T21:48:16.395581+00:00 app[web.1]: 2020-07-24T21:48:16.395765+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2020-07-24T21:48:16.395841+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-07-24T21_48_16_389Z-debug.log 2020-07-24T21:48:16.475161+00:00 heroku[web.1]: Process exited with status 1 2020-07-24T21:48:16.512257+00:00 heroku[web.1]: State changed from starting to crashed 2020-07-24T21:48:17.487049+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=td-index.herokuapp.com request_id=a3afa118-611c-403f-843d-9dc7507df2f6 fwd="39.48.55.105" dyno= connect= service= status=503 bytes= protocol=https 2020-07-24T21:48:18.119515+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=td-index.herokuapp.com request_id=029ad113-0a66-4ffc-a9ba-31c95868cc02 fwd="39.48.55.105" dyno= connect= service= status=503 bytes= protocol=https

Multiple directory support

Modify the code so we can add more than one PARENT_FOLDER so it can show multiple TeamDrives and ROOT drive at single app.

For more information check this GD-Index

Error: Invalid argument type.

Got an error while Deploying the app.

2020-07-05T05:18:57.805238+00:00 heroku[web.1]: Starting process with command `npm start`
2020-07-05T05:19:00.117285+00:00 app[web.1]: 
2020-07-05T05:19:00.117302+00:00 app[web.1]: > [email protected] start /app
2020-07-05T05:19:00.117302+00:00 app[web.1]: > NODE_ENV=production node index.js
2020-07-05T05:19:00.117303+00:00 app[web.1]: 
2020-07-05T05:19:00.832063+00:00 app[web.1]: buffer.js:331
2020-07-05T05:19:00.832097+00:00 app[web.1]:   throw new ERR_INVALID_ARG_TYPE(
2020-07-05T05:19:00.832097+00:00 app[web.1]:   ^
2020-07-05T05:19:00.832098+00:00 app[web.1]: 
2020-07-05T05:19:00.832110+00:00 app[web.1]: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
2020-07-05T05:19:00.832111+00:00 app[web.1]:     at Function.from (buffer.js:331:9)
2020-07-05T05:19:00.832111+00:00 app[web.1]:     at Object.<anonymous> (/app/index.js:11:26)
2020-07-05T05:19:00.832112+00:00 app[web.1]:     at Module._compile (internal/modules/cjs/loader.js:1138:30)
2020-07-05T05:19:00.832113+00:00 app[web.1]:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
2020-07-05T05:19:00.832114+00:00 app[web.1]:     at Module.load (internal/modules/cjs/loader.js:986:32)
2020-07-05T05:19:00.832114+00:00 app[web.1]:     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
2020-07-05T05:19:00.832115+00:00 app[web.1]:     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
2020-07-05T05:19:00.832116+00:00 app[web.1]:     at internal/main/run_main_module.js:17:47 {
2020-07-05T05:19:00.832116+00:00 app[web.1]:   code: 'ERR_INVALID_ARG_TYPE'
2020-07-05T05:19:00.832117+00:00 app[web.1]: }
2020-07-05T05:19:00.840471+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-07-05T05:19:00.840675+00:00 app[web.1]: npm ERR! errno 1
2020-07-05T05:19:00.841599+00:00 app[web.1]: npm ERR! [email protected] start: `NODE_ENV=production node index.js`
2020-07-05T05:19:00.841712+00:00 app[web.1]: npm ERR! Exit status 1
2020-07-05T05:19:00.841827+00:00 app[web.1]: npm ERR! 
2020-07-05T05:19:00.841908+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script.
2020-07-05T05:19:00.841990+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-07-05T05:19:00.847469+00:00 app[web.1]: 
2020-07-05T05:19:00.847620+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-07-05T05:19:00.847695+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2020-07-05T05_19_00_843Z-debug.log
2020-07-05T05:19:00.899031+00:00 heroku[web.1]: Process exited with status 1
2020-07-05T05:19:00.935467+00:00 heroku[web.1]: State changed from starting to crashed

I added only CLIENT_ID, CLIENT_SECRET, TOKEN and PARENT_FOLDER environment variables.

And after adding SCOPE variable to https://www.googleapis.com/auth/drive

2020-07-05T05:40:56.468389+00:00 heroku[web.1]: Starting process with command `npm start`
2020-07-05T05:40:58.945457+00:00 app[web.1]: 
2020-07-05T05:40:58.945469+00:00 app[web.1]: > [email protected] start /app
2020-07-05T05:40:58.945470+00:00 app[web.1]: > NODE_ENV=production node index.js
2020-07-05T05:40:58.945470+00:00 app[web.1]: 
2020-07-05T05:40:59.812999+00:00 app[web.1]: undefined:1
2020-07-05T05:40:59.813044+00:00 app[web.1]: https://www.googleapis.com/auth/drive
2020-07-05T05:40:59.813044+00:00 app[web.1]: ^
2020-07-05T05:40:59.813044+00:00 app[web.1]: 
2020-07-05T05:40:59.813045+00:00 app[web.1]: SyntaxError: Unexpected token h in JSON at position 0
2020-07-05T05:40:59.813046+00:00 app[web.1]:     at JSON.parse (<anonymous>)
2020-07-05T05:40:59.813046+00:00 app[web.1]:     at Object.<anonymous> (/app/lib/drive.js:8:21)
2020-07-05T05:40:59.813046+00:00 app[web.1]:     at Module._compile (internal/modules/cjs/loader.js:1138:30)
2020-07-05T05:40:59.813047+00:00 app[web.1]:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
2020-07-05T05:40:59.813047+00:00 app[web.1]:     at Module.load (internal/modules/cjs/loader.js:986:32)
2020-07-05T05:40:59.813047+00:00 app[web.1]:     at Function.Module._load (internal/modules/cjs/loader.js:879:14)
2020-07-05T05:40:59.813048+00:00 app[web.1]:     at Module.require (internal/modules/cjs/loader.js:1026:19)
2020-07-05T05:40:59.813048+00:00 app[web.1]:     at require (internal/modules/cjs/helpers.js:72:18)
2020-07-05T05:40:59.813048+00:00 app[web.1]:     at Object.<anonymous> (/app/routes/api.js:2:15)
2020-07-05T05:40:59.813049+00:00 app[web.1]:     at Module._compile (internal/modules/cjs/loader.js:1138:30)
2020-07-05T05:40:59.824941+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-07-05T05:40:59.825232+00:00 app[web.1]: npm ERR! errno 1
2020-07-05T05:40:59.826309+00:00 app[web.1]: npm ERR! [email protected] start: `NODE_ENV=production node index.js`
2020-07-05T05:40:59.826456+00:00 app[web.1]: npm ERR! Exit status 1
2020-07-05T05:40:59.826642+00:00 app[web.1]: npm ERR! 
2020-07-05T05:40:59.826777+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script.
2020-07-05T05:40:59.826906+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-07-05T05:40:59.836354+00:00 app[web.1]: 
2020-07-05T05:40:59.836548+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-07-05T05:40:59.836669+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2020-07-05T05_40_59_828Z-debug.log
2020-07-05T05:40:59.897409+00:00 heroku[web.1]: Process exited with status 1
2020-07-05T05:40:59.935561+00:00 heroku[web.1]: State changed from starting to crashed

Resumeable downloads

It would be nice to see this. Is it possible to do when the responseType is stream?

In docs, it is said to use the Range header, but I couldn't find a way to do it, can you please do it.

Fix for the deploy ment err clear description

This is not an issue but keep this open so PPL can get sm help

Deploy,

Add vars,

---add auth as simple as possible for testing purposes than save

---add client I'd & secret

---add full token

Save--->

Turn off dyno & turn it back on

I hope this helps

@KAKAROT379

Problem with .tar files while downloading

.tarfiles doesnt starts downloading.showing downloading option and just getting cancelled while we try to download.

IMG_20200711_185025_887
IMG_20200711_185824_420
IMG_20200711_185023_475

Proofs are attached.Kindly fix the bugs.

Thanks in advance

Is it safe to host this on heroku?

this is nice effor, thanks for sharing.

i want to know is it safe to host our td on heroku?
our heroku account will not be banned?
what are limitations if any?

Whats difference between this script and the one we host on dev.workers?

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.