[H-GEN] my sunny portal PV API stopped working - thoughts?
Russell Stuart
russell-humbug at stuart.id.au
Mon Dec 12 10:09:24 AEST 2022
On 12/12/22 12:09, Peter Robinson wrote:
> Exception HTTP error performing authentication request: 410 Gone
>
> This seems to mean the server (page) is deleted - some searching has
> not come up with anything useful.
Assuming the 408 means what the standard says (and it's likely too), is
an idle timeout for HTTP/1.1 + connections (which everything is
nowadays) the client has left open in case they want to reuse it. The
server might close it if it has too many clients holding such
connections open and its threatening to overload them. If server does
close it, it does so with the implicit expectation that if the client
still wants to talk to them they will open another one. If the server
is behind a load balancer the new connection will probably go to another
server, so problem solved.
This means your client should just handle it quietly, by retrying after
creating a new connection, without making a fuss by say reporting it to
the user. My guess is your client isn't doing that.
Your client probably isn't doing that because it's a new "feature" SMA
has added to their servers to manage the load they are under. So it's
never happened before. Why code for something that's never happened?
If you're the person who didn't code for it, the answer is simple: just
retry. If you aren't, you will have wait for the author's of the API
you are using to update their app / library.
More information about the General
mailing list