Custom code not working on published website: Failed to load resource: the server responded with a status of 404 ()

I’m trying to integrate Algolia search to my WeWeb project. My code was working just fine during development but when I’m putting it up on WeWeb (via a custom HTML element and linking the scripts and CSS in the page head and body), it shows for a while randomly goes away. The console shows an error:
Failed to load resource: the server responded with a status of 404 ()

It seems to be performing a GET request to https://27470174-58a2-4b8d-9239-2c038d60b9c6.weweb-preview.io/null for some reason

You can check out the published project here: https://27470174-58a2-4b8d-9239-2c038d60b9c6.weweb-preview.io/

Any help or pointers will really be appreciated. I’m also attaching a short screen recording of the issue.

1 Like

Try disabling “refresh on resize” on the html element where you put <div id="searchbox"></div>

2 Likes

@dorilama Thank you so much! It worked :slight_smile:

2 Likes