Hi,
we need to create a stable connection to ERT in cloud to download real time data no-stop. We are using Python and the WebSocketAPI but we are experiencing some problems with token refreshing. In particular we are requesting tokens with user and password authentication, refreshing them every 200 seconds (since the seem to have 300 secs expiry time) but sometimes (without an apparent reason) the refresh request fails with BadRequest error.
Since we could not find any documentation online to follow nor other example to follow except for this one (which is the base of the procedure we implemented but it seems to have the problems described above and we do not know how to retrieve the client_secret associated to our client_id to correctly test all the code chunks...), we are not very sure where the problem could be.
Is there any way to get a longer lasting token?
And, more in general, what is the best way to achieve the required result using the above technologies?
Thanks