Getting the "task was cancelled" error
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
調査の方向性
ファイルやテストは指定されていません。レポートに示されている FirebaseMessaging.SendAsync の呼び出しと、その後の result.Result へのアクセスから始め、Azure のプライベートプランの動作をローカル環境および利用可能な例外ログやネットワークログと比較してください。キャンセルの原因が SDK なのか Azure ネットワークなのかを特定し、再現可能な診断を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Environment
- Operating System version: Windows (Azure instance)
- Firebase SDK version: 2.3.0
- Firebase Product: FirebaseAdmin
- .NET version: 3.1 (net core)
Description of the problem:
I'm using FirebaseAdmin (nuget) to send some push notification inside an Azure function. In the local environment it's working perfectly, the SDK is returning the PUSH notifications IDs, but when I run it in a PRIVATE Azure plan, the SDK returns the following error:
"A task was cancelled".
That's all. There's is no other message or stack.
Steps to reproduce:
I don't know. I think this is a firewall blocking but I need more logs from the SDK to be completely sure.
Relevant Code:
try
{
logger.LogInformation("NS. Step 1. Firebase configuration credentials: " + _messageConfig);
var fcm = FirebaseAdmin.Messaging.FirebaseMessaging.GetMessaging(app);
logger.LogInformation("NS. Step 2. Firebase Messaging instance creates: " + _messageConfig);
Message message = new Message()
{
Data = new Dictionary<string, string>
{
{"OrderNbr",pushNotification.OrderNbr},
{"CdNbr", pushNotification.CdNbr.ToString()},
{"StoreNbr",pushNotification.StoreNbr.ToString()},
{"type",pushNotification.type.ToString()}
},
Notification = new FirebaseAdmin.Messaging.Notification
{
ImageUrl = "https://firebasestorage.googleapis.com/v0/b/lookapp-dev-77465.appspot.com/o/LOOK_APP_little.jpg?alt=media&token=3eadd967-f158-4ad8-8469-62a1fad91311",
Title = pushNotification.title,
Body = pushNotification.description
},
Token = String.IsNullOrEmpty(pushNotification.deviceTokenAndroid) ? pushNotification.deviceTokenIOS : pushNotification.deviceTokenAndroid
};
logger.LogInformation("NS. Step 3. Message created, sending....");
var result = fcm.SendAsync(message);
logger.LogInformation("NS. Step 4. Result from firebase (notification id):" + result.Result);
return result.Id;
}
catch (Exception ex)
{
logger.LogError(ex, $"Error sending firebase message");
throw;
}
Notes
I just want to know what kind of issue produces this error.
Should I manage the firewall to enable any URL?
Thanks in advance
- 主要言語
- C#
- スター
- 408
- フォーク
- 147
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 10
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/firebase-admin-dotnet のほかの issue
-
AbstractFirebaseAuth.cs has a typo (accound/account)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンneeds-triage
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
firebase/firebase-admin-dotnet#334 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
GetProjectId returns null on Compute Engine / Cloud Run with application default credentials対応中かも @lahirumaramba が 1 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
firebase/firebase-admin-dotnet#588 ·
メンテナーはふだん 1 日以内に返信
-
Sending FCM notification with Fids Return NotRegistered再び着手できるかも @yvonnep165 が 78 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
firebase/firebase-admin-dotnet#534 · コメント 5 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Sending MulticastMessage does not work after replacing Tokens with Fids再び着手できるかも @Doris-Ge が 106 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンapi: messaging
firebase/firebase-admin-dotnet#530 · コメント 2 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
firebase/firebase-admin-dotnet#526 ·
メンテナーはふだん 1 日以内に返信
firebase/firebase-admin-dotnet の issue をすべて見る
似ている issue
-
area/resource-registry status/triage
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
Altinn/altinn-auth#4821 ·
メンテナーはふだん 1 日以内に返信
-
a11y community:contribution
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
microsoft/fluentui-blazor#5590 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
JetBrains/resharper-unity#2510 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Documentation#2838 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AvaloniaUI/Avalonia#22697 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信