I came across a situation whereby the ably-js library failed to authenticate because of an expired token, yet instead of simply moving to the FAILED state because there was no means to correct this, it tried to use the fallback hosts. However, when doing that, it attempted to connect to hosts that do not exist. So I believe we have two issues here.
I came across a situation whereby the ably-js library failed to authenticate because of an expired token, yet instead of simply moving to the FAILED state because there was no means to correct this, it tried to use the fallback hosts. However, when doing that, it attempted to connect to hosts that do not exist. So I believe we have two issues here.
FYI, the first request responds with:
The internet up check is then made, however the next request made is:
This is wrong - look at the host. However, a fallback should not have been used in the first place.
A further internet up check i smade, is this necessary, surely one has just been made so we try all the fallback hosts?
The next request is made to a valid fallback:
Which too resonds with expired token, and then the lib tries the root host again:
And the cycle continues.