Skip to content

Cant send push to specific user #561

Closed
@gateway

Description

@gateway

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!

  • You're running version >=1.0.18 of Parse Dashboard.
  • [ x] You're running version >=2.2.18 of Parse Server.
  • [ x] You've searched through existing issues. Chances are that your issue has been reported or resolved before.

Environment Setup

Heroku

Steps to reproduce

  1. Get a user object id and verify they are in the _Installation class
  2. Go to push and create a new audience
  3. Select iOS (in my case)
  4. Select user equals and then the users object id

image

Logs/Trace

Basic:
Oct 20 10:33:51 blah-stage app/web.1: info: warning: error while sending push code=107, message=You cannot use [object Object] as a query parameter.

VERBOSE

Oct 20 10:40:23 test-stage heroku/router:  at=info method=POST path="/parse/push" host=test-stage.herokuapp.com request_id=475549a9-df33-451a-be0b-8381c99014b4 fwd=“xxx” dyno=web.1 connect=0ms service=95ms status=200 bytes=569 
Oct 20 10:40:24 test-stage app/web.1:  verbose: REQUEST for [POST] /parse/push: { 
Oct 20 10:40:24 test-stage app/web.1:    "where": { 
Oct 20 10:40:24 test-stage app/web.1:      "user": { 
Oct 20 10:40:24 test-stage app/web.1:        "email": “xxx@xxx.com", 
Oct 20 10:40:24 test-stage app/web.1:        "username": "gate1", 
Oct 20 10:40:24 test-stage app/web.1:        "displayName": "gate1", 
Oct 20 10:40:24 test-stage app/web.1:        "_email_verify_token": “xxx”, 
Oct 20 10:40:24 test-stage app/web.1:        "emailVerified": false, 
Oct 20 10:40:24 test-stage app/web.1:        "_email_verify_token_expires_at": "2016-10-20T22:22:21.699Z", 
Oct 20 10:40:24 test-stage app/web.1:        "createdAt": "2016-10-20T17:22:21.416Z", 
Oct 20 10:40:24 test-stage app/web.1:        "updatedAt": "2016-10-20T17:24:57.587Z", 
Oct 20 10:40:24 test-stage app/web.1:        "currentBuild": "26", 
Oct 20 10:40:24 test-stage app/web.1:        "currentVersion": "1.3", 
Oct 20 10:40:24 test-stage app/web.1:        "ACL": { 
Oct 20 10:40:24 test-stage app/web.1:          "*": { 
Oct 20 10:40:24 test-stage app/web.1:            "read": true 
Oct 20 10:40:24 test-stage app/web.1:          }, 
Oct 20 10:40:24 test-stage app/web.1:          "cp3bYRbpLf": { 
Oct 20 10:40:24 test-stage app/web.1:            "read": true, 
Oct 20 10:40:24 test-stage app/web.1:            "write": true 
Oct 20 10:40:24 test-stage app/web.1:          } 
Oct 20 10:40:24 test-stage app/web.1:        }, 
Oct 20 10:40:24 test-stage app/web.1:        "objectId": "cp3bYRbpLf", 
Oct 20 10:40:24 test-stage app/web.1:        "__type": "Object", 
Oct 20 10:40:24 test-stage app/web.1:        "className": "_User" 
Oct 20 10:40:24 test-stage app/web.1:      }, 
Oct 20 10:40:24 test-stage app/web.1:      "deviceType": { 
Oct 20 10:40:24 test-stage app/web.1:        "$in": [ 
Oct 20 10:40:24 test-stage app/web.1:          "ios" 
Oct 20 10:40:24 test-stage app/web.1:        ] 
Oct 20 10:40:24 test-stage app/web.1:      } 
Oct 20 10:40:24 test-stage app/web.1:    }, 
Oct 20 10:40:24 test-stage app/web.1:    "data": { 
Oct 20 10:40:24 test-stage app/web.1:      "alert": "aaaa" 
Oct 20 10:40:24 test-stage app/web.1:    } 

Oct 20 10:40:24 test-stage app/web.1:  } method=POST, url=/parse/push, host=test-stage.herokuapp.com, connection=close, origin=https://aaaaa.herokuapp.com, user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36, content-type=text/plain, accept=*/*, referer=https://xxx.herokuapp.com/apps/xxx%20Stage/push/new, accept-encoding=gzip, deflate, br, accept-language=en-US,en;q=0.8, x-request-id=475549a9-df33-451a-be0b-8381c99014b4, x-forwarded-for=xxx, x-forwarded-proto=https, x-forwarded-port=443, via=1.1 vegur, connect-time=0, x-request-start=1476985223351, total-route-time=0, content-length=725, email=xxx@xxx.com, username=gate1, displayName=gate1, _email_verify_token=xxxx, emailVerified=false, _email_verify_token_expires_at=2016-10-20T22:22:21.699Z, createdAt=2016-10-20T17:22:21.416Z, updatedAt=2016-10-20T17:24:57.587Z, currentBuild=26, currentVersion=1.3, read=true, read=true, write=true, objectId=cp3bYRbpLf, __type=Object, className=_User, $in=[ios], alert=aaaa 

Oct 20 10:40:24 test-stage app/web.1:  verbose: RESPONSE from [POST] /parse/push: { 
Oct 20 10:40:24 test-stage app/web.1:    "headers": { 
Oct 20 10:40:24 test-stage app/web.1:      "X-Parse-Push-Status-Id": "tcFRtePo84" 
Oct 20 10:40:24 test-stage app/web.1:    }, 
Oct 20 10:40:24 test-stage app/web.1:    "response": { 
Oct 20 10:40:24 test-stage app/web.1:      "result": true 
Oct 20 10:40:24 test-stage app/web.1:    } 
Oct 20 10:40:24 test-stage app/web.1:  } X-Parse-Push-Status-Id=tcFRtePo84, result=true 
Oct 20 10:40:24 test-stage app/web.1:  info: warning: error while sending push code=107, message=You cannot use [object Object] as a query parameter.

Note: If you get a browser JS error please run npm run dev. This will provide source maps and a much more useful stack trace.

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