Coder Social home page Coder Social logo

Comments (6)

wkpark avatar wkpark commented on July 16, 2024

you can check your serviceAccount.json file first.

{
  "type": "service_account",
  "project_id": "XXXX-YYYY",
  "private_key_id": "abced...",
  "private_key": "-----BEGIN PRIVATE KEY-----...",
  ...
}

from pyfcm.

almaz1213 avatar almaz1213 commented on July 16, 2024

@wkpark
json generated by farebase console and the json file is valid json format.

how can my checks fix the error?

from pyfcm.

wkpark avatar wkpark commented on July 16, 2024

@wkpark json generated by farebase console and the json file is valid json format.

how can my checks fix the error?

I can confirm that with an invalid fcm_token, I've got the same error as yours.

params_list =  [{'fcm_token': 'aaaa', 'notification_title': 'Hello World', 'notification_body': 'pyfcm 2.0.2 test from development server. thanks'}] # for async_notify_multiple_devices(params_list=params_list) args, or notify(**params_list[0])

[{'error': {'code': 400, 'message': 'The registration token is not a valid FCM registration token', 'status': 'INVALID_ARGUMENT', 'details': [{'@type': 'type.googleapis.com/google.firebase.fcm.v1.FcmError', 'errorCode': 'INVALID_ARGUMENT'}]}}]

from pyfcm.

almaz1213 avatar almaz1213 commented on July 16, 2024
  1. on the machine with pyfcm 1.5.4 works fine with the same fcm_token. so, it means the problem is not with fcm_token
  2. from firebase console works also

problem in pyfcm 2.0.2 with the new fcm implementation

from pyfcm.

almaz1213 avatar almaz1213 commented on July 16, 2024

i think you should check scopes parameter.....

from pyfcm.

almaz1213 avatar almaz1213 commented on July 16, 2024

request using curl response with the same error. so, it's not in pyfcm end

from pyfcm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.