Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

Ping AOS before making requests #106

@AndreasHassing

Description

@AndreasHassing

The AOSClient currently retries its actions on timeout - which is fine for the most part. But instead of showing the user a confusing error message like:

System.Threading.Tasks.TaskCanceledException: The operation was canceled.
---> System.IO.IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
---> System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request.

we should ping the AOS first to ensure it is warm before trying to perform ALM requests.

I'm not sure, but I expect an authenticated app can ping the AOS at the POST /ping endpoint and expect a 200 - OK to mean that the AOS is up and running.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions