If a RAK gw has a built in NS this is simply enabled from the RAK web gui… and would place your gateway outside TTN and therefore out of scope for this forum. We are happy to help setting up on TTN, but if running stand alone you would then need to take questions to the RAK forum…
Make sure in the Basic Station configuration that there are no hidden spaces before and after port number, URI etc - as this will through it off, also make sure you have wss:// at the beginning of the URI, such as wss://au1.cloud.thethings.network OR wss://eu1.cloud.thethings.network for example.
Also I am not sure if this is an error in the RAK guide but the the section for the Client Token looks wrong to me - but I am not sure of the consequence of the difference, I’ve seen it mentioned on another post (that spans few years for RAK):
I believe the Client Token section should be formatted like:
Authorization: Bearer NNSXS.xxxxxxxxxx//
instead of just:
See if that helps, by pressing save/update I believe the Basics Station restarts - see what it then says in the TTN console after making this change.
I’m seeing the same errors as @htshusum on my RAK7258. Months ago I moved my RAK7258 from TTN v2 to v3 (also switched from packet forwarder to basic station) and everything was working. Today I logged into TTN v3 to see my gateway disconnected with the same errors on the TTN console and the RAK7258 logs. Did TTN change something?
I tried switching from LNS to CUPS, same errors.
Switched to Packet Forwarder, now my RAK7258 connects to TTN v3.
No idea what broke with TTN Basic Station. Temporary outage? Certificate expired/changed?
Found the problem, I had the wrong URI (server address). I was using nam1.cloud.thethings.network since I’m in North America. But it appears that currently the only server for authenticating Basic Station is eu1.cloud.thethings.network. I found this by looking at the TTN Console Overview webpage, at the bottom it lists all the servers you should use for your region and the Identity Server is eu1.cloud.thethings.network.