Fix TelemetryPublisherFirestore bug not checking authorization on Unauthorized
This commit is contained in:
parent
ea65ce61e1
commit
c86d851ffd
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ namespace NucuCar.Telemetry.Publishers
|
||||||
Logger?.LogInformation("Published data to Firestore!");
|
Logger?.LogInformation("Published data to Firestore!");
|
||||||
break;
|
break;
|
||||||
case HttpStatusCode.Forbidden:
|
case HttpStatusCode.Forbidden:
|
||||||
|
case HttpStatusCode.Unauthorized:
|
||||||
{
|
{
|
||||||
Logger?.LogError($"Failed to publish telemetry data! {responseMessage.StatusCode}. Retrying...");
|
Logger?.LogError($"Failed to publish telemetry data! {responseMessage.StatusCode}. Retrying...");
|
||||||
await SetupAuthorization();
|
await SetupAuthorization();
|
||||||
|
|
Loading…
Reference in a new issue