Hey there ๐
patheticgeek / gdrive-index Goto Github PK
View Code? Open in Web Editor NEWAn index server for Google Drive
An index server for Google Drive
Hey there ๐
I followed everything as instructed but i got this error
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
Code Not Working
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
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
Hi,
I just deployed repo on Heroku and tried to set up it, but Heroku gives Application error.
Logs here https://gist.github.com/UsamaKarim/bfd064ce582b18b88584ff467805fede
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.
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
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?
Update the docs so we can use it.
According to the issue #3 the error is fixed after adding the AUTH
env var.
That mean the AUTH
env var is mandatory.
Make it optional.
Cannot Find folder id ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.