API Developer Key invalid

This seemed to just start coming up did anything change recently with the new versions? Nothing in the logs. GitHub Issue https://github.com/baptisteArno/typebot.io/issues/1163
GitHub
The API developer key is invalid. · Issue #1163 · baptisteArno/type...
This just started to pop up I was not having any issues. May be related to cloudron but im not sure its such an odd error. Nothing in the logs.
No description
78 Replies
Baptiste
Baptiste16mo ago
Now the Google Sheets block uses the Drive Picker API to be more compliant with privacy
Baptiste
Baptiste16mo ago
GitHub
Release v2.21.0 · baptisteArno/typebot.io
Breaking changes The Google Sheets block config was updated and its configuration changed. The Google Picker API needs to be enabled in the Google Cloud console. You also need to enable it in your...
CptPlastic
CptPlasticOP16mo ago
It worked I missed adding new API
No description
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
zeehasham
zeehasham15mo ago
@Baptiste can you guide on this please.
CptPlastic
CptPlasticOP15mo ago
I don't think you can use localhoat to get to googles API. You may have to set up actual domains. I could be wrong though as I've never tested running locally.
zeehasham
zeehasham15mo ago
I dont see any such reported issues on community
Baptiste
Baptiste15mo ago
GitHub
The API developer key is invalid. · Issue #1163 · baptisteArno/type...
This just started to pop up I was not having any issues. May be related to cloudron but im not sure its such an odd error. Nothing in the logs.
zeehasham
zeehasham15mo ago
We have this enabled already but still having this problem
Baptiste
Baptiste15mo ago
Mathitux
Mathitux9mo ago
Hello @CptPlastic and @MasterIBM, sorry to make an old post coming back, but im having the same issue - Picker API enabled - Sheet API enabled - All 3 variables filled (and valid, because i also use the Google Auth with success) I successfuly add the account, but when i need to select the sheet, i got the "The API developer key is invalid."
CptPlastic
CptPlasticOP9mo ago
Did you try regenerating your key
Mathitux
Mathitux9mo ago
Yes, generated 3 differents keys
CptPlastic
CptPlasticOP9mo ago
Mine expired before and I ended up seeing this. Hmm I’m not sitting in front of my computer but when I am I’ll look at how my setup is and screenshot it for you. It’s been awhile since I had to touch that part of my configuration
Mathitux
Mathitux9mo ago
Thanks 😄
CptPlastic
CptPlasticOP9mo ago
No description
Mathitux
Mathitux9mo ago
Where do you see this ? Im on the credentials page but my key isnt restricted to anything
CptPlastic
CptPlasticOP9mo ago
Then should be good to go Here is my env setup
CptPlastic
CptPlasticOP9mo ago
No description
Mathitux
Mathitux9mo ago
Yep i got everything right on that file, but still the error message
CptPlastic
CptPlasticOP9mo ago
If you have all three permissions set it should work. Are you selfhosting the latest version of the main branch? One other thing i thought of was the URL you have set is that an Actual domain? I know the have to be FQDN to work right with googles API
Mathitux
Mathitux9mo ago
Set where ?
Mathitux
Mathitux9mo ago
No description
Mathitux
Mathitux9mo ago
The key isnt even restricted for now
CptPlastic
CptPlasticOP9mo ago
GitHub
The API developer key is invalid. · Issue #1163 · baptisteArno/type...
This just started to pop up I was not having any issues. May be related to cloudron but im not sure its such an odd error. Nothing in the logs.
CptPlastic
CptPlasticOP9mo ago
google picker api
Mathitux
Mathitux9mo ago
No description
Mathitux
Mathitux9mo ago
It's enabled yes
CptPlastic
CptPlasticOP9mo ago
whats it say when you click manage
Mathitux
Mathitux9mo ago
No description
Mathitux
Mathitux9mo ago
That it's enabled and usable by the key that i use on typebot
CptPlastic
CptPlasticOP9mo ago
should work if thats the key and your domain is fully qualified Google Sheets API Google Picker API Google Drive API you might check to make sure all those are enabled
Mathitux
Mathitux9mo ago
Sadly they are :/
CptPlastic
CptPlasticOP9mo ago
can you do me a fav and screenshot your .env file you can scrub the keys I just want to see something
Mathitux
Mathitux9mo ago
Yep
No description
CptPlastic
CptPlasticOP9mo ago
hmm looks fine spaces are odd but should not matter
Mathitux
Mathitux9mo ago
yep, im desesperate :/
CptPlastic
CptPlasticOP9mo ago
where do you host this at?
Mathitux
Mathitux9mo ago
An OVH dedicated server
CptPlastic
CptPlasticOP9mo ago
and are you able to console into the container?
Mathitux
Mathitux9mo ago
Yep If you mean checking the logs, there is nothing on it
CptPlastic
CptPlasticOP9mo ago
no i mean like console into the running container and go to this path root@92c249e7-5c52-40a4-af02-5f4c24d4ed8c:/app/code/builder/apps/builder# ls public should see that folder
Mathitux
Mathitux9mo ago
node_modules package.json public server.js src yep
CptPlastic
CptPlasticOP9mo ago
go in it look for _ENV.json
Mathitux
Mathitux9mo ago
__ENV.js you mean ?
CptPlastic
CptPlasticOP9mo ago
yep
Mathitux
Mathitux9mo ago
window.__ENV = {"NEXT_PUBLIC_GOOGLE_API_KEY":"XXX","NEXT_PUBLIC_VIEWER_URL":"https://candidature.XXX.io"}
CptPlastic
CptPlasticOP9mo ago
but it shows your key right
Mathitux
Mathitux9mo ago
Yep
CptPlastic
CptPlasticOP9mo ago
damn
Mathitux
Mathitux9mo ago
No description
Mathitux
Mathitux9mo ago
And im on the latest
CptPlastic
CptPlasticOP9mo ago
the only thing I can think of is google bnlocking you for some reason im on the same version also
Mathitux
Mathitux9mo ago
Well, the Oauth work well, i can connect through google on the builder So i don't think that google did blocked me
CptPlastic
CptPlasticOP9mo ago
so when you select new account for the sheets block do you see
CptPlastic
CptPlasticOP9mo ago
No description
Mathitux
Mathitux9mo ago
Yes
Mathitux
Mathitux9mo ago
No description
Mathitux
Mathitux9mo ago
That way After i authenticate
CptPlastic
CptPlasticOP9mo ago
than it says something like com already has some access See the 4 services that nsnmindlabs.com has some access to. something like that
Mathitux
Mathitux9mo ago
Mmh no it simply validate the connexion and redirect me on the builder When i click on "accept"
CptPlastic
CptPlasticOP9mo ago
hmmmmmmm thats where the hickup is then that key is not passing any permissions at least it would appear that way
Mathitux
Mathitux9mo ago
No description
Mathitux
Mathitux9mo ago
Well, as you can see here, when i go to the google profile; i can see that my app do have the permissions for it on my account
CptPlastic
CptPlasticOP9mo ago
Its not in english so its hard for me to read
Mathitux
Mathitux9mo ago
My bad It says "Your app has somes right on your google account"
CptPlastic
CptPlasticOP9mo ago
I feel like this is something silly with the way your auth is setup
Mathitux
Mathitux9mo ago
And then specify the google dreive read edit and delete, and the same thing for google sheet
CptPlastic
CptPlasticOP9mo ago
what rights are they
Mathitux
Mathitux9mo ago
- View your profile information - View, modify, create and delete all your Google Sheets spreadsheets - View, modify, create and delete only the specific Google Drive files you use with this application
CptPlastic
CptPlasticOP9mo ago
but when you select a sheet its invalid you have a google sheet in your googledrive right
Mathitux
Mathitux9mo ago
Yep
CptPlastic
CptPlasticOP9mo ago
im at a loss then without actually logging in and seeing your set up im not sure what else to try
Mathitux
Mathitux9mo ago
If you are available i can screenshare you, but i don't want to take any more of your time
CptPlastic
CptPlasticOP9mo ago
it should just simply work from what you shown ok one sec ok ready whenever you are
Mathitux
Mathitux9mo ago
Let's go Oh there is no vocal channels here
CptPlastic
CptPlasticOP8mo ago
@Mathitux glad we fixed that issue yesterday. Here is some information about scopes. https://developers.google.com/identity/protocols/oauth2/scopes Looks like scopes don't get added by default anymore to consent screens so I can see people running into this more.
Mathitux
Mathitux8mo ago
Yep, clearly Thanks again for your time on this

Did you find this page helpful?