I haven’t been able to get the SearchBox native feature to work in my app – as I type in preview mode, no results show.
As an example, here I’m looking for geographic places (I’ve already setup my Google APIs per Bubble’s documentation)
But in preview, the search box just doesn’t respond:
I think this issue is specifically related to the SearchBox in general because I’ve also used it to try to build a user lookup tool in this app and have the same problem (no results).
Jici
June 16, 2023, 9:26pm
2
Check browser console log for any Google key error. Most of the time, this isbrelated to Google API key. Payment bot set, API not enabled…
The error I’m getting:
I’ve double checked that this API key is set up exactly as Bubble’s tutorial says to do it.
The only thing I see on the Google side that doesn’t match the tutorial is an OAuth prompt:
It’s not clear to me if this is a blocking error (or even how this applies to my use-case).
Jici
June 16, 2023, 10:23pm
4
I think you will have more details looking at the browser console logs instead of Bubble debugger. This is possible that API allowed for the key is not correct
Have you checked that your API key actually has the services enabled?
Jici
June 17, 2023, 12:04am
7
I don’t think this error is related to your issue. Can you share url to the page where you have the checkbox?
I’ve enabled the 5 geo-related APIs the tutorial mentions and none of them are showing any requests or errors:
Is there somewhere else you’d check?
Jici
June 17, 2023, 12:06am
9
You can see 0 requests… did you enter your API key in Settings tabs?
Jici
June 17, 2023, 12:07am
11
Did you enable payment in Google Cloud console?
Yep, payments are enabled
Jici
June 17, 2023, 12:17am
13
Do you have any plugin that could have a conflict with searchbox?
I’ve kept my plugins pretty light, but here’s what I do have (none seem to be an obvious culprit to me):
1 Like
Jici
June 17, 2023, 12:40am
15
For now everything look fine for me. Contact Bubble support to see if there’s something on their side.
Try rolling your google key and using a new one. Also try creating a call in api connector to a geocode api with same key to verify it’s working.
It is kind of odd your google acc shows no calls to the api.
Alright, I changed two things at the same time and it’s working now.
Here’s what I did:
In setting up my Client key website restrictions, I included “www” before my domain. I removed this (e.g., https://www.websitename.com changed to https://websitename.com )
I had installed “Places API (New)” instead of “Places API”. I just added the later.
system
Closed
August 25, 2023, 9:07pm
18
This topic was automatically closed after 70 days. New replies are no longer allowed.