Services Plugins FAQs

IP Geolocation Issue ("reading 'replace'")

Hi,
I use the plugin on bubble.io
It worked for a few hours, but suddenly it runs into a bug. And I can’t get it working anymore.
Not sure if I changed something which had an effect on the plugin.

Here are 3 Errors I get in Debug:

Bug in custom code TypeError: Cannot read properties of undefined (reading 'replace')
    at Object.eval [as success] (PLUGIN_1609292923286x875371992761761800/IP-Geolocation-update--IP-Geolocation-.js:18:44)
    at i (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:2:27983)
    at Object.fireWith [as resolveWith] (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:2:28749)
    at A (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:4:14203)
    at XMLHttpRequest. (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:4:16491)
    at root (PLUGIN_1609292923286x875371992761761800/IP-Geolocation-update--IP-Geolocation-.js:18:44)
Bug in custom code TypeError: Cannot read properties of undefined (reading 'replace')
    at Object.eval [as success] (PLUGIN_1609292923286x875371992761761800/IP-Geolocation-update--IP-Geolocation-.js:18:44)
    at i (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:2:27983)
    at Object.fireWith [as resolveWith] (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:2:28749)
    at A (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:4:14203)
    at XMLHttpRequest. (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:4:16491)
    at root (PLUGIN_1609292923286x875371992761761800/IP-Geolocation-update--IP-Geolocation-.js:18:44)
Bug in custom code TypeError: Cannot read properties of undefined (reading 'replace')
    at Object.eval [as success] (PLUGIN_1609292923286x875371992761761800/IP-Geolocation-update--IP-Geolocation-.js:18:44)
    at i (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:2:27983)
    at Object.fireWith [as resolveWith] (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:2:28749)
    at A (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:4:14203)
    at XMLHttpRequest. (https://textil-index.bubbleapps.io/package/run_debug_js/88e1771a8e1c332c618f0bcca448b51bd00e9bdfd4e950b477fac686e86e7564/xfalse/x18/run_debug.js:4:16491)
    at root (PLUGIN_1609292923286x875371992761761800/IP-Geolocation-update--IP-Geolocation-.js:18:44)

Thanks in advance!

Hi @fayoyo4946,
Thank you for reaching out.

I’ve carefully checked the IP Geolocation Plugin inside a test app, and everything is working. See the screenshot below:

To help us better understand what was going wrong in your app with our plugin, can you please send us more details like the issue/use case description, workflow/setup screenshots, steps to reproduce it, etc.?
This will let us reproduce your setup on our side and find out if there is a plugin issue or a wrong setup.

Thank you and looking forward to your reply.
All the best,

Thanks for the answer.
Somehow it started working again 24 hours later.
This happened today too.

Now its no working again. And I changed nothing
This is my demo: Bubble | No-code apps…?debug_mode=true

maybe that helps.

Hi @fayoyo4946,
Thank you for your reply.

I’ve opened the link above but it’s not clear where should I go next, and where to look for an issue.
Could you please send a short Loom video with a step-by-step guide describing the issue as well as screenshots of the plugin element setup, text elements, and workflows?

Thank you and looking forward to your reply.
All the best,

Hello

I have the same problem in my principale app.

To check if is my app or not, I created a new bubble apps and i reproduce the problem on the plugin.

You can check the demo. Is the latest version.
Bubble | No-code apps (bubbleapps.io)

and the editor : dhe-light | Bubble Editor

BlockquoteBug in custom code TypeError: Cannot read properties of undefined (reading ‘replace’)
at Object.eval [as success] (PLUGIN_1609292923286x875371992761761800/IP-Geolocation-update–IP-Geolocation-.js:18:44)
at i (https://dhe-light.bubbleapps.io/package/run_debug_js/d2c9a253a0df6d4abf477f6cdad239fcb7fe529ea300623fded91b36aabf5545/xfalse/x18/run_debug.js:2:27983)
at Object.fireWith [as resolveWith] (https://dhe-light.bubbleapps.io/package/run_debug_js/d2c9a253a0df6d4abf477f6cdad239fcb7fe529ea300623fded91b36aabf5545/xfalse/x18/run_debug.js:2:28749)
at A (https://dhe-light.bubbleapps.io/package/run_debug_js/d2c9a253a0df6d4abf477f6cdad239fcb7fe529ea300623fded91b36aabf5545/xfalse/x18/run_debug.js:4:14203)
at XMLHttpRequest. (https://dhe-light.bubbleapps.io/package/run_debug_js/d2c9a253a0df6d4abf477f6cdad239fcb7fe529ea300623fded91b36aabf5545/xfalse/x18/run_debug.js:4:16491)
at root (PLUGIN_1609292923286x875371992761761800/IP-Geolocation-update–IP-Geolocation-.js:18:44)

Thank you.
Best regards,

Hi @dhnotes, thanks for your message and shared details.

Provided link shows that the plugin works properly.


It might be possible that it was a temporary issue on the server side or a certain region. Please try to test it from another device or location.

If the issue will persist, please drop a message here with some additional detail (the geographic region where you live).

Regards,

Hello @Serg,

Thanks for your answer and test. I tried with a VPN from other countries and it works wells.
My region is France.

The console error :

Thank you for your help :pray:

Best regards,

Hi @dhnotes, thanks for your reply.
I’ve passed it to the developer team for research. Once any result will become available, I will let you know asap.

Thank you for understanding :pray:

Regards,

Hi @dhnotes, thanks for your patience.

The developer team replaced the service used within the plugin, so now it should work properly and supports even more states :blush:

To check changes, please upgrade your plugin to the latest version (Version 1.13.0: Added more states) and give it a try.

If there will be any other plugin-related questions, please drop a message here.

Regards,

Hi @Serg
Thanks for the update. Everything works perfectly!

There are a lot of states now, that’s really good. :pray: .

Best regards,

2 Likes

@dhnotes glad to hear that. You’re welcome :wink:

If you like our plugin, we would be grateful if you can rate it by going to the Plugins tab in Bubble editor. Find the plugin by name and it gives it as many stars as it deserves

The more feedback we get, the more motivated we are to make things better in Bubble.

Regards,