We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue Description
I get "unauthorized: master key is required" error when I try to do aggregate ParseQuery as below.
As you can see master key is already set, can't find what may be the issue.
Environment Details
The text was updated successfully, but these errors were encountered: