Title: GitHub · Where software is built
Open Graph Title: firebase/quickstart-python
X Title: firebase/quickstart-python
Description: Contribute to firebase/quickstart-python development by creating an account on GitHub.
Open Graph Description: Contribute to firebase/quickstart-python development by creating an account on GitHub.
X Description: Contribute to firebase/quickstart-python development by creating an account on GitHub.
Opengraph URL: https://github.com/firebase/quickstart-python
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"firebase topic condition not expression doesn't work","articleBody":"I have a lib https://github.com/jiamo/pfcm to use firebase cloud message.\r\n\r\n```\r\ndef test_pfcm_send_topic_include_not2():\r\n message_title = \"topic\"\r\n message_body = \"{} body of message\".format(datetime.datetime.now())\r\n\r\n fsmapi = FcmAPI(project_name, private_file)\r\n pfcm = Pfcm(fsmapi)\r\n topic = \"!('test' in topics)\"\r\n results = pfcm.send_msg(\r\n topic_condition=topic,\r\n message_title=message_title,\r\n message_body=message_body)\r\n\r\n for result in results:\r\n print(result)\r\n assert not \"error\" in result\r\n\r\n```\r\n\r\nGot error:\r\n\r\n```\r\nF{\r\n \"error\": {\r\n \"code\": 400,\r\n \"message\": \"Request contains an invalid argument.\",\r\n \"status\": \"INVALID_ARGUMENT\",\r\n \"details\": [\r\n {\r\n \"@type\": \"type.googleapis.com/google.rpc.BadRequest\",\r\n \"fieldViolations\": [\r\n {\r\n \"field\": \"message.condition\",\r\n \"description\": \"Invalid condition expression provided.\"\r\n }\r\n ]\r\n },\r\n {\r\n \"@type\": \"type.googleapis.com/google.firebase.fcm.v1.FcmError\",\r\n \"errorCode\": \"INVALID_ARGUMENT\"\r\n }\r\n ]\r\n }\r\n}\r\n\r\n\r\n```\r\nprint the playload json: I already send email to firebase support(They said they are confirm it and need to wait to fix but don't know when)\r\n\r\n```\r\n'{\"message\": {\"notification\": {\"title\": \"topic\", \"body\": \"2018-03-27 12:24:23.399014 body of message\"}, \"condition\": \"!(\\'test\\' in topics) \u0026\u0026 (\\'test2\\' in topics)\"}}'\r\n```\r\n\r\n","author":{"url":"https://github.com/jiamo","@type":"Person","name":"jiamo"},"datePublished":"2018-03-08T09:27:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/11/quickstart-python/issues/11"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:2f925959-cdb9-3b8a-23b3-8a65ac28ae34 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3E2:109792:37259B:47ED38:6991DE19 |
| html-safe-nonce | 43be39013c3fefc2dd2fc783d665fd7d07848aa879be7e3183e1d9f928ae945c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0UyOjEwOTc5MjozNzI1OUI6NDdFRDM4OjY5OTFERTE5IiwidmlzaXRvcl9pZCI6IjI3NTA0MDgxNjk0ODY0MDkyNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 952cf7f8bd1c95a77fd0d74e24ca2b237ef67ca435c15edcd7b2eefb81c2211f |
| hovercard-subject-tag | repository:86372150 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/firebase/quickstart-python/issues/11 |
| twitter:image | https://opengraph.githubassets.com/2100b14d14e4593f497a6c48d5e01457bd962860d30db8a3416a662c9b1b1553/firebase/quickstart-python |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2100b14d14e4593f497a6c48d5e01457bd962860d30db8a3416a662c9b1b1553/firebase/quickstart-python |
| og:image:alt | Contribute to firebase/quickstart-python development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-cache |
| go-import | github.com/firebase/quickstart-python git https://github.com/firebase/quickstart-python.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 86372150 |
| octolytics-dimension-repository_nwo | firebase/quickstart-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 86372150 |
| octolytics-dimension-repository_network_root_nwo | firebase/quickstart-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width