Services Plugins FAQs

Multiple Errors Thrown - Algolia 2.0 Simple Search v3.16

Hey @alexandru, appreciate you guys creating the Algolia Simple Search plugin! Should be exactly what I need once I get it going.

However, I set the plugin up exactly like your demo, but couldn’t seem to get it working no matter what I tried. I checked up the console (Google Chrome --> inspect element --> console) and found that the plugin was throwing multiple errors - I’ve copied the log below.

One of the errors mentions missing api_key and app_id fields in the plugin settings, but we’ve double and triple checked that the fields are indeed not empty and that the credentials are correct, so we’re a bit puzzled as to why we’re seeing this error.

We’re on a bit of a deadline so would really appreciate your take on how we can get this fixed and running - thanks in advance for your help!

x11:6 require is not defined
at https://cdnjs.cloudflare.com/ajax/libs/algoliasearch/4.8.3/algoliasearch.cjs.min.js:1:30
at root (https://cdnjs.cloudflare.com/ajax/libs/algoliasearch/4.8.3/algoliasearch.cjs.min.js:1:30)

{origin: "native error", UNCAUGHT: "caught by window.onerror", code: "1611802509652x324264582557254800"}
a.log @ x11:6
(anonymous) @ x11:15
r.<computed> @ x11:15
window.onerror @ x11:15
error (async)
r.install_browser_error_handler @ x11:15
213../box @ x11:15
i @ x11:6
(anonymous) @ x11:6
214../client/debugger @ x11:15
i @ x11:6
e @ x11:6
(anonymous) @ x11:6
x11:6 Element AlgoliaSimpleSearch A - The plugin Algolia Search V2.0 / element Algolia Simple Search threw the following error: TypeError: Cannot read property 'createNodeHttpRequester' of undefined
    at algoliasearch (https://cdnjs.cloudflare.com/ajax/libs/algoliasearch/4.8.3/algoliasearch.cjs.min.js:1:593)
    at eval (PLUGIN_Algolia-Search-V2-0-initialize--Algolia-Simple-Search-.js:17:20) (please report this to the plugin author)
 {original_error: TypeError: Cannot read property 'createNodeHttpRequester' of undefined
    at algoliasearch (https:…, element_instance: e, action: null, code: "1611802509972x603926942845691300"}
a.log @ x11:6
(anonymous) @ x11:15
r.<computed> @ x11:15
r.owner_error @ x11:15
(anonymous) @ x11:15
C @ x11:15
(anonymous) @ x11:15
t @ x11:15
setTimeout (async)
t @ x11:15
e.wait_for_visible @ x11:15
N.p.initialize @ x11:15
t.initialize @ x11:6
(anonymous) @ x11:15
Xe.autorun_top @ x11:15
e.initialize @ x11:15
e.draw @ x11:15
e.draw_children @ x11:15
e.draw @ x11:15
e.draw_children @ x11:15
e.draw @ x11:15
t.display @ x11:6
_ @ x11:15
(anonymous) @ x11:15
t.notify @ x11:15
e._was_updated @ x11:15
t._dec @ x11:15
t.notify @ x11:15
e._was_updated @ x11:15
t.turn @ x11:15
(anonymous) @ x11:15
j @ x11:2
k @ x11:2
setTimeout (async)
(anonymous) @ x11:2
i @ x11:2
fireWith @ x11:2
fire @ x11:2
i @ x11:2
fireWith @ x11:2
ready @ x11:2
R @ x11:3
x11:6 Element AlgoliaSimpleSearch A - Check the "app_id" & "api_key" fields in the plugins tab, these fields cannot be empty!
 {element_instance: e, code: "1611802509977x711913820816936400"}
a.log @ x11:6
(anonymous) @ x11:15
r.<computed> @ x11:15
r.owner_error @ x11:15
u.reportDebugger @ x11:15
eval @ PLUGIN_Algolia-Search-V2-0-update--Algolia-Simple-Search-.js:12
(anonymous) @ x11:15
C @ x11:15
(anonymous) @ x11:15
Xe.run_without_catching_not_ready @ x11:15
(anonymous) @ x11:15
e._run_if_not_destroying @ x11:15
e.run_me @ x11:15
e @ x11:15
Xe.autorun @ x11:15
e.autorun @ x11:15
(anonymous) @ x11:15
t @ x11:15
setTimeout (async)
t @ x11:15
e.wait_for_visible @ x11:15
N.p.initialize @ x11:15
t.initialize @ x11:6
(anonymous) @ x11:15
Xe.autorun_top @ x11:15
e.initialize @ x11:15
e.draw @ x11:15
e.draw_children @ x11:15
e.draw @ x11:15
e.draw_children @ x11:15
e.draw @ x11:15
t.display @ x11:6
_ @ x11:15
(anonymous) @ x11:15
t.notify @ x11:15
e._was_updated @ x11:15
t._dec @ x11:15
t.notify @ x11:15
e._was_updated @ x11:15
t.turn @ x11:15
(anonymous) @ x11:15
j @ x11:2
k @ x11:2
setTimeout (async)
(anonymous) @ x11:2
i @ x11:2
fireWith @ x11:2
fire @ x11:2
i @ x11:2
fireWith @ x11:2
ready @ x11:2
R @ x11:3
s?debug_mode=true:105 GET https://www.googletagmanager.com/gtm.js?id= net::ERR_ABORTED 400
(anonymous) @ s?debug_mode=true:105
(anonymous) @ s?debug_mode=true:106
x11:15 page is loaded after 0.536 seconds
x11:6 Element AlgoliaSimpleSearch A - Check the "app_id" & "api_key" fields in the plugins tab, these fields cannot be empty!
 {element_instance: e, code: "1611802510607x193728032899677980"}
a.log @ x11:6
(anonymous) @ x11:15
r.<computed> @ x11:15
r.owner_error @ x11:15
u.reportDebugger @ x11:15
eval @ PLUGIN_Algolia-Search-V2-0-update--Algolia-Simple-Search-.js:12
(anonymous) @ x11:15
C @ x11:15
(anonymous) @ x11:15
Xe.run_without_catching_not_ready @ x11:15
(anonymous) @ x11:15
e._run_if_not_destroying @ x11:15
e.run_me @ x11:15
St @ x11:15
setTimeout (async)
zt @ x11:15
qe @ x11:15
invalidate @ x11:15
e.invalidate @ x11:15
evaluate @ x11:15
run_me @ x11:15
St @ x11:15
setTimeout (async)
zt @ x11:15
qe @ x11:15
e.invalidate @ x11:15
e.invalidate @ x11:15
e.write @ x11:15
e.val @ x11:15
e.state @ x11:15
a @ x11:6
(anonymous) @ x11:6
(anonymous) @ x11:15
Xe.autorun_top @ x11:15
e.message @ x11:15
(anonymous) @ x11:6
setTimeout (async)
(anonymous) @ x11:6
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
DevTools failed to load SourceMap: Could not load content for https://cdn.jsdelivr.net/npm/instantsearch.production.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
x11:6 Element AlgoliaSimpleSearch A - Check the "app_id" & "api_key" fields in the plugins tab, these fields cannot be empty!
 {element_instance: e, code: "1611802512816x448506028452112800"}
a.log @ x11:6
(anonymous) @ x11:15
r.<computed> @ x11:15
r.owner_error @ x11:15
u.reportDebugger @ x11:15
eval @ PLUGIN_Algolia-Search-V2-0-update--Algolia-Simple-Search-.js:12
(anonymous) @ x11:15
C @ x11:15
(anonymous) @ x11:15
Xe.run_without_catching_not_ready @ x11:15
(anonymous) @ x11:15
e._run_if_not_destroying @ x11:15
e.run_me @ x11:15
St @ x11:15
setTimeout (async)
zt @ x11:15
qe @ x11:15
invalidate @ x11:15
e.invalidate @ x11:15
evaluate @ x11:15
run_me @ x11:15
St @ x11:15
setTimeout (async)
zt @ x11:15
qe @ x11:15
invalidate @ x11:15
e.invalidate @ x11:15
e.write @ x11:15
e.val @ x11:15
e.state @ x11:15
a @ x11:6
_ @ x11:6
(anonymous) @ x11:6
(anonymous) @ x11:15
Xe.autorun_top @ x11:15
e.message @ x11:15
i @ x11:6
f @ x11:31
v @ x11:31
m @ x11:31
setTimeout (async)
bo @ x11:31
h @ x11:31
y @ x11:31
(anonymous) @ x11:6
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
x11:15 
x11:15 This web application is entirely built without code on Bubble
x11:15 
x11:15 Visit https://bubble.io to build your own apps

Hi, @daichi.alias!

Thanks for reaching out and youк kind words!

It’s quite weird. But could you please provide a screenshot of the plugin settings where the Keys are set? You may blur them partially.

Best, Julia.

Hey @julia.minacova, thanks for the quick response! I took the screenshot requested, attached below. Any idea what the problem might be?

Hi, @daichi.alias!

As far as I can see from your screenshot the X-Algolia-Appplication-Id (shared headers) is different as X-Algolia-Appplication-Id (shared headers)- dev.

Please changу the value from 02cc108…to 0PODP for the X-Algolia-Appplication-Id (shared headers) and give it another try.

Hope this helps!
Best, Julia.