Skip to content

Cant send push to specific user #561

New issue

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

Closed
1 task done
gateway opened this issue Oct 20, 2016 · 5 comments
Closed
1 task done

Cant send push to specific user #561

gateway opened this issue Oct 20, 2016 · 5 comments

Comments

@gateway
Copy link
Contributor

gateway commented Oct 20, 2016

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": “[email protected]", 
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 protected], 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.

@dvanwinkle
Copy link
Contributor

@gateway I just confirmed this. I am working on a fix now.

dvanwinkle pushed a commit to dvanwinkle/parse-dashboard that referenced this issue Oct 31, 2016
@dvanwinkle
Copy link
Contributor

@gateway Issue should be fixed in #570. Please check it out and confirm. Thanks!

dvanwinkle pushed a commit to dvanwinkle/parse-dashboard that referenced this issue Oct 31, 2016
@gateway
Copy link
Contributor Author

gateway commented Oct 31, 2016

@dvanwinkle cool, ill check it out tomorrow and verify!

steven-supersolid pushed a commit that referenced this issue Nov 2, 2016
* #561: Fixes issue with installation conditions that are pointers not sending correctly

* #561: Changelog update
@natanrolnik
Copy link
Contributor

natanrolnik commented Feb 12, 2017

@gateway is it working for you?

@stale
Copy link

stale bot commented Jan 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the state:wont-fix Won’t be fixed with a clearly stated reason label Jan 10, 2019
@stale stale bot closed this as completed Jan 17, 2019
@dplewis dplewis added pr submitted and removed state:wont-fix Won’t be fixed with a clearly stated reason labels Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants