transloadit / uppy

The next open source file uploader for web browsers :dog:
https://uppy.io
MIT License
29.18k stars 2.01k forks source link

poor google drive documentation #1300

Closed mikestaub closed 4 years ago

mikestaub commented 5 years ago

I followed the docs but still was unable to see my google drive files, I saw this in my server logs:

uppy: 2019-02-19T04:08:31.493Z [error] provider.drive.teamDrive.error [object Object]
uppy: 2019-02-19T04:08:31.493Z [debug] provider.auth.check drive failed authorizarion test err:[object Object]

When I modified the library to JSON.stringify() the error object, I saw this:

{"error":{"errors":[{"domain":"usageLimits","reason":"accessNotConfigured","message":"Access Not Configured. Drive API has not been used in project 27000000 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/drive.googleapis.com/overview?project=274881616448 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.","extendedHelp":"https://console.developers.google.com/apis/api/drive.googleapis.com/overview?project=2700000000"}],"code":403,"message":"Access Not Configured. Drive API has not been used in project 27000000000 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/drive.googleapis.com/overview?project=27000000000 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."}

You must enable the API from the google dev console to use this with your app. This was not obvious.

ifedapoolarewaju commented 5 years ago

@mikestaub how were you able to pass the Google key and secret without enabling the API from the dev console?

mikestaub commented 5 years ago

I was not able to. The problem is the documentation makes not note about enable the API from the google dev console.

ifedapoolarewaju commented 4 years ago

this is now fixed at #2345