Hosting a Perspective Project

We are trying to setup a Perspective project to be available out on the web and we are running into a problem with the page getting stuck at Authenticating…

The weird thing is it is happening on Chrome and Firefox, but not Edge. Go figure. The browser console does not show any error and network tab shows xhr status 101 switching protocol and a status 200 OK over and over again.

In the gateway wrapper I see the following

INFO | jvm 1 | 2020/01/22 15:44:05 | D [P.WebSocketChannel ] [23:44:05]: tab-id=226cc068

INFO | jvm 1 | 2020/01/22 15:44:05 | D [P.WebSocketChannel ] [23:44:05]: Websocket has established connection.

INFO | jvm 1 | 2020/01/22 15:44:05 | I [p.ClientSession ] [23:44:05]: Socket connected to session. pageId=226cc068 session-project=PhoenixMobileSNBC

INFO | jvm 1 | 2020/01/22 15:44:08 | E [g.TagStatusRoutes ] [23:44:08]: Bad quality result returned from browse: route-group=status, route-path=/tags/rt/:tagPath

INFO | jvm 1 | 2020/01/22 15:44:08 | W [g.D.Route ] [23:44:08]: Error handling route. route-group=status, route-path=/tags/rt/:tagPath, route=/tags/rt/:tagPath

INFO | jvm 1 | 2020/01/22 15:44:08 | java.lang.NullPointerException: null

Thanks for the help.

It looks like you might have a Session startUp script or View startUp script which is browsing tags, and then encountering a null value in the returned results, or possibly failing to even locate a tag (or tags) at the specified path.

We do have a session startup script that configures a tag, but we are not browsing the tag tree. The thing that is very interesting about this problem is it only happens when accessing the Perspective page outside our network. If we go to the Perspective page from within our network we do not get this error. Any ideas what would cause the this error remotely, but not locally?

I would need to see the full information of the NullPointer, but I believe the “Bad quality” and “Error handling route” errors are unrelated to your failure to advance beyond authentication, as those seem to be problems with logic around a tag. The actual NullPointer line does not provide me enough information to act on. Is there any more info you can obtain from that line in the logs? Is there a magnifying glass or “+” icon to the right? In a browser which is encountering this issue, is there anything in the browser console when this issue occurs?

I have restarted the gateway and now that tag error has gone away. I think that was unrelated to the issue I am having. Here is what the wrapper looks like now when trying to access the page remotely. Nothing is showing in the browser console.

INFO | jvm 1 | 2020/01/23 11:02:50 | I [p.ClientSession ] [19:02:50]: Socket connected to session. pageId=205aafbc session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:03:00 | I [p.ClientSession ] [19:03:00]: Socket connected to session. pageId=1cdb71e2 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:03:10 | I [p.ClientSession ] [19:03:10]: Socket connected to session. pageId=3501b193 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:03:20 | I [p.ClientSession ] [19:03:20]: Socket connected to session. pageId=3d3bdca9 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:03:30 | I [p.ClientSession ] [19:03:30]: Socket connected to session. pageId=18e75121 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:03:40 | I [p.ClientSession ] [19:03:40]: Socket connected to session. pageId=1ef27d76 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:03:50 | I [p.ClientSession ] [19:03:50]: Socket connected to session. pageId=2a2eec58 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:04:00 | I [p.ClientSession ] [19:04:00]: Socket connected to session. pageId=2d6356c session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:04:10 | I [p.ClientSession ] [19:04:10]: Socket connected to session. pageId=1e7e04ed session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:04:20 | I [p.ClientSession ] [19:04:20]: Socket connected to session. pageId=2982fc6a session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:04:30 | I [p.ClientSession ] [19:04:30]: Socket connected to session. pageId=2f67ca31 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:04:40 | I [p.ClientSession ] [19:04:40]: Socket connected to session. pageId=da9ee16 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:04:50 | I [p.ClientSession ] [19:04:50]: Socket connected to session. pageId=22ccca00 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:05:01 | I [p.ClientSession ] [19:05:00]: Socket connected to session. pageId=345a55b6 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:05:10 | I [p.ClientSession ] [19:05:10]: Socket connected to session. pageId=1d903b16 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:05:20 | I [p.ClientSession ] [19:05:20]: Socket connected to session. pageId=2990456 session-project=PhoenixMobileLogin
INFO | jvm 1 | 2020/01/23 11:05:34 | I [p.ClientSession ] [19:05:34]: Socket connected to session. pageId=3f2f1bd4 session-project=PhoenixMobileLogin