Skip to content

Error when running aggregate query in version 2.7.1 #4479

Closed
@xedixermawan

Description

@xedixermawan

Hi,
I appreciate if someone can figuring out what is missing in my setup. thanks.

Issue Description

got an error when try to run aggregate request to a collection.
the collection is already filled with some data.

Steps to reproduce

  1. add some data to GameScore collection. just like the parse server example in readme
  2. run:
curl -X GET \
  -H "X-Parse-Application-Id: myAppId" \
  -H "X-Parse-Master-Key: myKey" \
  -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
  -G \
  --data-urlencode 'group:{objectId:'null',total:{$sum:'$score'}}' \
http://localhost:1337/parse/aggregate/GameScore
  1. error message :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /parse/aggregate/GameScore</pre>
</body>
</html>

Expected Results

the result of aggregate data.

Actual Outcome

error above

Environment Setup

  • Server

    • parse-server version : 2.7.1
    • Operating System: OSX
    • Hardware: Macbook Pro
    • Localhost or remote server? localhost
  • Database

    • MongoDB version: 3.4.10
    • Storage engine:
    • Hardware: local Macbook Pro
    • Localhost or remote server? localhost

Logs/Trace

Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions