microsoftgraph / microsoftgraph/msgraph-sdk-php
searchWithQ() returning "General exception while processing"
まだ誰も着手していません。
- 主要言語
- PHP
- スター
- 669
- フォーク
- 150
- 平均マージ
- 15時間 21分
- マージ済み PR(30日)
- 3
説明
I am trying to use the search for DriveItems within a SharePoint drive using the searchWithQ() method of this msgraph-sdk-php package.
$filename = "File_1.txt";
$result = $graphServiceClient->drives()->byDriveId('insert-drive-id-here')->items()->byDriveItemId('child-driveitem-id-here')->searchWithQ($filename)->get()->wait();
The library is returning an ApiException with message "General exception while processing". I cannot find any examples of how to search for DriveItems using this searchWithQ() method, and the Microsoft Graph official example looks incomplete:
<?php
use Microsoft\Graph\GraphServiceClient;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$result = $graphServiceClient->drives()->byDriveId('drive-id')->items()->byDriveItemId('driveItem-id')->searchWithQ('{q}', )->get()->wait();
Is there an official working example of the searchWithQ() functionality?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
エントリポイント searchWithQ() から開始し、示されている PHP 呼び出しによって生成されるリクエストを Microsoft Graph の例と比較します。提示された DriveItems の検索シナリオを使用して ApiException を再現し、その後、SDK の呼び出しと例のどちらが不完全なのかを判断します。原因が特定され、動作する使用例または正確な修正が確立されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100