Uncaught SyntaxError

Demonwolf

n3wb
Joined
Jul 9, 2019
Messages
2
Reaction score
0
Location
South Africa
We are having an issue with BlueIris 4.8.6.3 when being accessed from Android mobile devices.

An unexpected error has occured in /ui3.htm (v 70 / 4.8.6.3).

Uncaught SyntaxError: Unexpected token < at http://censored_hostname/login.htm?page=/libs-ui3.js?v=70-4.8.6.3 [1:1]

SyntaxError: expected expression, got '<' at http://censored_hostname/ui3/ui3.js?v=70-4.8.6.3 [1:0]
I have tried Chrome, Firefox, Opera and the default Samsung browser with only slight variations of the same error. I have no issues from a PC connecting into the system using Chrome.

Anyone have any idea where I can start looking?
 

Demonwolf

n3wb
Joined
Jul 9, 2019
Messages
2
Reaction score
0
Location
South Africa
Just adding screenshots given to me by one of my users. First I thought it was an issue with their browser, so I asked them to use a different browser.

WhatsApp Image 2019-07-08 at 15.06.43.jpeg WhatsApp Image 2019-07-08 at 15.34.16.jpeg
 

piconut

BIT Beta Team
Joined
Feb 17, 2015
Messages
176
Reaction score
63
Location
Austin, TX
I'm having a similar problem trying to access Blue Iris on a Google Pixel Phone. Works fine on a Samsung tablet and on the PC. Here is the error message:

 
Joined
Apr 3, 2019
Messages
6
Reaction score
0
Location
Sao Paulo
Hi,
Sorry because the language is not my native language.
This error remains today (5.2.4.4)
Before, I would like to congratulate you for the excellent work. I'm a fan of UI3 and I always recommend BI because of it.
I have had problems with UI3 for a long time. Many versions of BlueIris have been updated since version 4.x, always with the same error.
The problem occurs with my 4G mobile connection on my Samsung S8 Android 9. When I connect via my home Wi-Fi network, everything is fine.
However, if I connect Windows 10 to my phone via wifi tethering (using the bridge with the 4G connection), the error also occurs on IE, Edge and Chrome on the PC.
Apparently some proxy problem or something else on the mobile operator.
However I would like to ask you to look at the debug, as there may be a solution for my case and for these other users that I found here:

I have already updated to version 123 of UI3, but my latest version of BI is 5.2.4.4.

The errors shown are below:
An unexpected error has occured in /ui3.htm (v 123 / 5.2.4.4) ...

Uncaught SyntaxError: Unexpected token '<' at http: /censored_hostname/ui3/ui3-local-overrides.js? V = 123-5.2.4.4 [1: 1]

This Session is invalid

I already thank you for reading this far and if possible an answer.

Best regards,
 

Attachments

SouthernYankee

IPCT Contributor
Joined
Feb 15, 2018
Messages
5,170
Reaction score
5,320
Location
Houston Tx
hopefully @bp2008 will answer

1)Are you using your phone as a hotspot or tether of a laptop when on 4G ?
2)Can you login to BI from your phone directly when on 4G ?
3)Can you login from your phone when at home on wifi ?
 
Joined
Apr 3, 2019
Messages
6
Reaction score
0
Location
Sao Paulo

piconut

BIT Beta Team
Joined
Feb 17, 2015
Messages
176
Reaction score
63
Location
Austin, TX
Thank you for pursuing this because I'm also getting the same error on Android phone only (although still running the last version of v4). Works fine in Chrome on Windows PC.
 
Joined
Apr 3, 2019
Messages
6
Reaction score
0
Location
Sao Paulo
Hi @piconut

What country are you from and what is your mobile operator?
I think I managed to get around the problem (palliative) using secure HTTPS connection (Stunnel).
Just follow this tutorial that works exactly as described (in my case I have a sub-domain):

 

piconut

BIT Beta Team
Joined
Feb 17, 2015
Messages
176
Reaction score
63
Location
Austin, TX
I'm in the United States but the problem even exists when on my home wifi (using a Samsung Galaxy 10), so it's not my mobile carrier.
 
Joined
Aug 17, 2022
Messages
2
Reaction score
0
I am experiencing the same issue with version release 5.6.0.6 on my local PC. the issue just showed up this morning, I have been running BI for a week or two with no issues. I just installed stunnel a day ago and just upgraded to 5.6.0.6 from the previous most current version of BI yesterday, I don't get the error when I use https (vial stunnel) only with http. So. summarizing, it was working fine yesterday, changes I made were adding stunnel yesterday and doing the upgrade BI alerted me to yesterday.
 
Joined
Apr 3, 2019
Messages
6
Reaction score
0
Location
Sao Paulo
I am experiencing the same issue with version release 5.6.0.6 on my local PC. the issue just showed up this morning, I have been running BI for a week or two with no issues. I just installed stunnel a day ago and just upgraded to 5.6.0.6 from the previous most current version of BI yesterday, I don't get the error when I use https (vial stunnel) only with http. So. summarizing, it was working fine yesterday, changes I made were adding stunnel yesterday and doing the upgrade BI alerted me to yesterday.
Hello everybody,
I think this problem occurs because some carriers (especially mobile) use CGNAT and therefore their IP is changed by the carrier in TCP packets.
That's why HTTPS works for me since the 2020 post above.
 
Joined
Aug 17, 2022
Messages
2
Reaction score
0
Hello everybody,
I think this problem occurs because some carriers (especially mobile) use CGNAT and therefore their IP is changed by the carrier in TCP packets.
That's why HTTPS works for me since the 2020 post above.
update- this seems to be an issue with chrome on a single workstation. Edge works fine, and chrome works fine on other workstations and on my android phone. I cleared the cleared browser data and restarted chrome in the offending workstation, that seemed to correct the issue.
 
Top