アーティクル - CS336280

Vuforia Experience Service は、大きな JSON ペイロードを処理するときに http 406 ステータスを返します

修正日: 26-Feb-2024   


注記:ここに記載されている情報は、お客様の利便性向上のため機械翻訳ソフトを使用しています。PTCは、ここに記載されている情報の翻訳の正確性について、一切の責任を負いませんので、ご了承ください。英語の原文を参照するには、こちら。この機械翻訳に関する詳細は、こちら。
お知らせいただき、ありがとうございます。この機械翻訳をレビューします。

適用対象

  • Vuforia Studio 8.5.5 to 9.17.0
  • Vuforia Experience Service 8.5.15 to 9.17.0
  • ThingWorx Platform 8.4 to 9.3
  • For Vuforia Studio developers who are not aware of the presence of Vuforia Experience Service, this is a server side of application where stores Experiences published from Vuforia Studio; once it's published, the end users will be able to view the Augmented Reality Experience using Vuforia View
  • Please contact responsible person or implementation partner to implement the workaround in the resolution
  • Issue is relevant for HoloLens 2, IOS (verified on IOS IPad Pro 3 device) , Realwear device and Android platform.

説明

  • カメラ ウィジェットを使用して写真を撮影し、その写真を Thingworx のリポジトリに保存するために必要です
  • 画像をデータベースに保存するには、リポジトリ ThingSaveImageサービスを使用します。
  • Vuforia Studio のカメラ ウィジェット経由でキャプチャした画像を Thingworxリポジトリに保存できません
  • カメラウィジェット画像データプロパティをThingWorx からのFile Repository ThingSaveImageサービスコンテンツプロパティバインドした後、base64 でエンコードされた文字列 (テキスト) が http 406 応答で転送に失敗します
  • ThingWorx 自体は、base64 でエンコードされた文字列であってもSaveImage サービスで正しく実行されます。JSON サンプルは次のとおりです。
{
    "path":"/test/123.jpg",
    "content":<base64-encoded string>
}
  • Vuforia Experience Service ログで http 406 応答エラーが報告されました:
:ffff:<IP アドレス> - - [日付] "POST /Thingworx/Things/<モノ名>/Services/<サービス名> HTTP/1.1" 406 - " http://localhost:3000/resource/<エクスペリエンス名> >/dist/index-desktop.html " "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML、Gecko など) Chrome/84.0.4147.105 Safari/537.36" 20008 ミリ秒 <ES サーバー>:<ESポート> 90943 [日付] - ms - ms - ms - ms
  • 正しい JSON 本文を含む以下の URL を使用すると、Postman は http 406 ステータス コードで失敗します。
http://<ES ホスト>:<ES ポート>/Thingworx/Things/<モノ名>/Services/<サービス名>
  • ThingWorx ApplicationLog.log には以下のメッセージが含まれています。
YYYY-MM-DD HH:MM:SS.MS+0900 [L: ERROR] [O: c.t.w.Things] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-80-exec-5] Unable To Parse JSON Request
YYYY-MM-DD HH:MM:SS.MS+0900 [L: ERROR] [O: c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-80-exec-5] Invalid request: Unable To Parse JSON Request
YYYY-MM-DD HH:MM:SS.MS+0900 [L: WARN] [O: c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ???] [S: ] [P: ] [T: http-nio-80-exec-5] Connection should be closed but message received anyway. Attempting to force close. Message: V1MessageHeader [messageType=3, requestId=92521, endpointId=0, sessionId=51083549, flags=0]
YYYY-MM-DD HH:MM:SS.MS+0900 [L: WARN] [O: c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ???] [S: ] [P: ] [T: http-nio-80-exec-5] Server WebSocket closed unexpectedly and has already been unregistered from Server Endpoint [ws session id: 6] null
  • ThingWorx との間でデータを送受信できますが、Vuforia View から ThingWorx に画像を送信しようとすると失敗します。

最新バージョンはこちらを参照ください CS336280