6

Occasionally (sporadically) when the Google Drive file picker is triggered in our app by a properly authenticated user, the picker fails with a message that they need to sign-in to Google (note old Google logo) - clicking this message's Google sign-in button gives the error message API Developer key is invalid.

We removed the API Developer key from the picker call and now the error message after sign-in reads- Details: The feature you requested is currently unavailable. Please try again later.

Usually the picker works after refreshing the page.

Is this a known bug for the Google Drive picker or is there a workaround?

Google Drive Picker Sign-in error

Google Drive Picker developer key error message

jasas1
  • 101
  • 8

2 Answers2

4

We ended up writing our own drive picker and not using Google's picker at all.

jasas1
  • 101
  • 8
0

First make sure you use Browser key not Server key and try to verify if you follow the steps here in Register your Project. It will give you step by step procedure on how to use API key with your project. It also have code example for you to follow.

I also see this SO question related to your problem. Solutions here is to add .setCallback(pickerCallback) to createPicker function and add new function (pickerCallback). I hope it can help you.

Community
  • 1
  • 1
KENdi
  • 7,576
  • 2
  • 16
  • 31
  • 2
    Picker API was enabled and project registered and we had already done the setCallback etc. The picker works 99% of the time. – jasas1 May 26 '16 at 20:48