Skip to content
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

FCM registering problems #34

Open
selfisekai opened this issue Apr 12, 2020 · 0 comments · May be fixed by #55
Open

FCM registering problems #34

selfisekai opened this issue Apr 12, 2020 · 0 comments · May be fixed by #55

Comments

@selfisekai
Copy link

selfisekai commented Apr 12, 2020

throws an error while registering (with scripts/register/index.js), on request to https://fcm.googleapis.com/fcm/connect/subscribe

Error during registration
StatusCodeError: 400 - "{\n  \"error\": {\n    \"code\": 400,\n    \"message\": \"Request contains an invalid argument.\",\n    \"status\": \"INVALID_ARGUMENT\"\n  }\n}\n"
    at new StatusCodeError (/home/self/push-receiver/node_modules/request-promise-core/lib/errors.js:32:15)
    at Request.plumbing.callback (/home/self/push-receiver/node_modules/request-promise-core/lib/plumbing.js:104:33)
    at Request.RP$callback [as _callback] (/home/self/push-receiver/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at Request.self.callback (/home/self/push-receiver/node_modules/request/request.js:186:22)
    at Request.emit (events.js:315:20)
    at Request.<anonymous> (/home/self/push-receiver/node_modules/request/request.js:1163:10)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (/home/self/push-receiver/node_modules/request/request.js:1085:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (_stream_readable.js:1201:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

full FCM server response:

{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT"
  }
}
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

Successfully merging a pull request may close this issue.

1 participant