Azure-Samples / Azure-Samples/communication-services-javascript-quickstarts

Direct Routing JS sample broken: Unsupported API version / 405 errors

オープン
#346 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
108
フォーク
207
PR マージ指標
30日以内にマージされた PR はありません

説明

**Observed errors:**
- First, `UnsupportedApiVersion` is thrown because the sample uses API version `2021-05-01-preview`, which is no longer supported. Supported versions for my ACS resource are `2023-03-01`, `2023-04-01-preview`, and `2024-11-15-preview`.
- After attempting adjustments, the sample throws `405 Method Not Allowed` because the JavaScript SDK `@azure/communication-phone-numbers` does not support SIP Routing endpoints (`/trunks` and `/routes`).

**Problem:**
The sample cannot run in Node.js as-is due to the JS SDK not supporting SIP Routing and the outdated API version.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Direct Routing JavaScript sample を見つけ、@azure/communication-phone-numbers、/trunks エンドポイントと /routes エンドポイント、および構成されている API バージョンの使用状況を確認します。SIP Routing をサポートしている Azure Communication Services API のバージョンとアクセスパスを確認します。Node.js sample がサポートされていないバージョンを使用しなくなり、報告された 405 エラーを回避できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, javascript, node.js
領域
api, backend
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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