Defect: Exceptions when completing service bus messages posted via functions admin endpoints
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 54/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start by tracing how the functions admin endpoint creates Service Bus messages and how the extension handles actions.complete(message); the issue names no source files or tests. Check whether admin-posted messages should receive lock metadata, and whether completion should handle the zero lock token. Done when the cause is addressed and the reported exception no longer occurs for this case.
索引モデルが issue の本文から書いたものです。
説明
When posting messages to a function's admin endpoint, i.e.:
http://localhost:7071/admin/functions/{myServiceBusFunction}
With a just request body as input.
That results in default values being populated for multiple message metadata fields, including:
"enqueuedTime": "0001-01-01T00:00:00+00:00",
"enqueuedTimeUtc": "0001-01-01T00:00:00",
"expiresAt": "9999-12-31T23:59:59.9999999+00:00",
"expiresAtUtc": "9999-12-31T23:59:59.9999999",
"lockToken": "00000000-0000-0000-0000-000000000000",
The lock token value of: "00000000-0000-0000-0000-000000000000" results in an exception when calling the actions.complete(message) function from the service bus extension.
System.Private.CoreLib: Exception while executing function: Functions.myServiceBusFunction. System.Private.CoreLib: Result: Failure Type: Exception: 9 FAILED_PRECONDITION: LockToken 00000000-0000-0000-0000-000000000000 not found. Stack: Error: 9 FAILED_PRECONDITION: LockToken 00000000-0000-0000-0000-000000000000 not found. at callErrorFromStatus (file:///C:/project_folder/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/call.ts:84:17) at Object.onReceiveStatus (file:///C:/project_folder/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/client.ts:360:36) at Object.onReceiveStatus (file:///C:/project_folder/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/client-interceptors.ts:466:34) at Object.onReceiveStatus (file:///C:/project_folder/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/client-interceptors.ts:424:48) at file:///C:/project_folder/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/resolving-call.ts:206:24 at processTicksAndRejections (node:internal/process/task_queues:85:11) for call at at ServiceClientImpl.makeUnaryRequest (file:///C:/project_folder/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/client.ts:325:42) at ServiceClientImpl.<anonymous> (file:///C:/project_folder/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/make-client.ts:189:15) at file:///C:/project_folder/packages/func/dist/functions/webpack:/@azure/functions-extensions-servicebus/src/servicebus/ServiceBusMessageActions.ts:67:25 at new Promise (<anonymous>) at ServiceBusMessageActions.<anonymous> (file:///C:/project_folder/packages/func/dist/functions/webpack:/@azure/functions-extensions-servicebus/src/servicebus/ServiceBusMessageActions.ts:65:16) at Generator.next (<anonymous>) at file:///C:/project_folder/packages/func/dist/functions/chunk-3CMJ3PCI.mjs:28225:77 at new Promise (<anonymous>) at __awaiter (file:///C:/project_folder/packages/func/dist/functions/chunk-3CMJ3PCI.mjs:28207:20) at ServiceBusMessageActions.complete (file:///C:/project_folder/packages/func/dist/functions/chunk-3CMJ3PCI.mjs:28274:22).
Not sure if this should be considered a defect in how @azure/functions-extensions-servicebus is processing the "00000000-0000-0000-0000-000000000000" value when completing messages or if the defect is that the metadata value is being inserted into messages in the first place.
The extra metadata doesn't get inserted when messages are posted to / coming from Service Bus itself.
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 8
- 平均マージ
- 1時間 6分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/azure-functions-nodejs-extensions のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 53/100
Azure/azure-functions-nodejs-extensions#189 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
Azure/azure-functions-nodejs-extensions#184 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 64/100
-
[Feature] Add @azure/functions-extensions-kafka package for KafkaRecord binding対応中かも @TsuyoshiUshio が 223 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Azure/azure-functions-nodejs-extensions#61 · コメント 6 件 · リアクション 2 件 ·
Azure/azure-functions-nodejs-extensions の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
Add: Alfa Dramasオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Maduki-tech/bautackt#4 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信