"unauthorized: master key is required" error on aggregate ParseQuery despite the master key is set
まだ誰も着手していません。
評価
調査の方向性
Start at the ParseQuery::aggregate entry point and trace how the configured master key is passed for aggregate requests. Compare that path with the other ParseQuery methods and reproduce the report using the supplied PHP 7.2, SDK 1.5.1, and pipeline example. Done means the aggregate request's authorization behavior is understood and covered by a regression test.
索引モデルが issue の本文から書いたものです。
説明
Issue Description
I get "unauthorized: master key is required" error when I try to do aggregate ParseQuery as below.
ParseClient::initialize('appId', null, 'masterKey');
ParseClient::setServerURL('https://example.com', 'mountPath');
$pipeline = [
'group' => [
'userAttached' => $userId,
'total' => [ '$sum' => 1]
]
];
$query = new ParseQuery("Financials");
$query->equalTo("company_id", $companyId);
$query->equalTo("type", "income");
try {
$resultSum = $query->aggregate($pipeline);
print_r($resultSum);
} catch (ParseException $ex) {
echo $ex->getMessage();
}
As you can see master key is already set, can't find what may be the issue.
Environment Details
- Your PHP Version: 7.2.24-0ubuntu0.18.04.6
- Your Parse PHP SDK Version: 1.5.1
- Your Operating System: Ubuntu 18.04.2 LTS
- 主要言語
- PHP
- スター
- 808
- フォーク
- 340
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
parse-community/parse-php-sdk のほかの issue
-
Support PHP 8.4 and 8.5対応中かも @zeliard91 が 24 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 72/100
parse-community/parse-php-sdk#529 · コメント 1 件 ·
-
Queries on array values broken since 2.3.1対応中かも @gut-puncture が 152 日前に担当しました。 オープンbounty:$20 type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
parse-community/parse-php-sdk#516 · コメント 5 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
parse-community/parse-php-sdk#465 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
parse-community/parse-php-sdk#457 · コメント 1 件 ·
-
parse query for phpオープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
parse-community/parse-php-sdk#456 · コメント 1 件 ·
parse-community/parse-php-sdk の issue をすべて見る
似ている issue
-
Python 3.15 support対応中かも @amnesiaof が今日担当しました。 オープンL: python L: python:uv
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dependabot/dependabot-core#16524 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
crazy-goat/rabbit-stream#830 ·
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信
-
Перевод устарел
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100