Defect: Exceptions when completing service bus messages posted via functions admin endpoints

オープン
#188 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/azure-functions-nodejs-extensions のほかの issue

Azure/azure-functions-nodejs-extensions の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。