Title: 给reg id发送成功但是无法收到消息 · Issue #50 · jpush/jpush-api-python-client · GitHub
Open Graph Title: 给reg id发送成功但是无法收到消息 · Issue #50 · jpush/jpush-api-python-client
X Title: 给reg id发送成功但是无法收到消息 · Issue #50 · jpush/jpush-api-python-client
Description: 日志: DEBUG:jpush:Making POST request to https://api.jpush.cn/v3/push. Headers: user-agent: jpush-api-python-client connection: keep-alive content-type: application/json;charset:utf-8 Body: {"audience": {"registration_id": ["abcdabcd"]}, "...
Open Graph Description: 日志: DEBUG:jpush:Making POST request to https://api.jpush.cn/v3/push. Headers: user-agent: jpush-api-python-client connection: keep-alive content-type: application/json;charset:utf-8 Body: {"audienc...
X Description: 日志: DEBUG:jpush:Making POST request to https://api.jpush.cn/v3/push. Headers: user-agent: jpush-api-python-client connection: keep-alive content-type: application/json;charset:utf-8 Body: {"au...
Opengraph URL: https://github.com/jpush/jpush-api-python-client/issues/50
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"给reg id发送成功但是无法收到消息","articleBody":"日志:\r\n\r\n```\r\nDEBUG:jpush:Making POST request to https://api.jpush.cn/v3/push. Headers:\r\n user-agent: jpush-api-python-client\r\n connection: keep-alive\r\n content-type: application/json;charset:utf-8\r\nBody:\r\n {\"audience\": {\"registration_id\": [\"abcdabcd\"]}, \"platform\": \"all\", \"message\": {\"msg_content\": \"by_reg_id\", \"title\": \"helloworld\"}}\r\nDEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.jpush.cn:443\r\nDEBUG:urllib3.connectionpool:https://api.jpush.cn:443 \"POST /v3/push HTTP/1.1\" 200 43\r\nDEBUG:jpush:Received 200 response. Headers:\r\n Server: nginx\r\n Date: Wed, 11 Dec 2019 14:04:53 GMT\r\n Content-Type: application/json\r\n Content-Length: 43\r\n Connection: keep-alive\r\n X-Rate-Limit-Limit: 600\r\n X-Rate-Limit-Remaining: 599\r\n X-Rate-Limit-Reset: 60\r\n X-Jpush-Timestamp: 1576073093486\r\nBody:\r\n b'{\"sendno\":\"0\",\"msg_id\":\"47287830529285706\"}'\r\n```\r\n\r\n但是用web界面根据reg id发送却能收到。\r\n\r\n代码:\r\n\r\n```python\r\ndef __push_notify_by_reg_id(message, reg_id):\r\n try:\r\n push = jp.create_push()\r\n push.audience = jpush.audience(jpush.registration_id(reg_id))\r\n push.message = jpush.message(message.brief, message.title)\r\n push.platform = jpush.all_\r\n\r\n push.send()\r\n except Exception:\r\n logging.exception(\"failed to push message(%d)\", message.id)\r\n```","author":{"url":"https://github.com/jiajunhuang","@type":"Person","name":"jiajunhuang"},"datePublished":"2019-12-11T14:08:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/50/jpush-api-python-client/issues/50"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eac7181d-d69c-ac42-8c74-a949da739c3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A866:366DBA:15EA837:1D4C40D:6969A41A |
| html-safe-nonce | 08a357ff2ba99efbd48d9221d439ff708d3cf3773e706ca0ccfefa00e52daf66 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODY2OjM2NkRCQToxNUVBODM3OjFENEM0MEQ6Njk2OUE0MUEiLCJ2aXNpdG9yX2lkIjoiMzg5MzI0NTAyNjQ1NTEwMjQ5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 64646495b7ff16059e864b3729110005deda9f114ea1931836a3d48ae9ca0e6c |
| hovercard-subject-tag | issue:536393922 |
| 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/_view_fragments/issues/show/jpush/jpush-api-python-client/50/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8de422de6d59d375032218d12aa18c83641cf77ea82bd1bd1caf04d4800d4212/jpush/jpush-api-python-client/issues/50 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8de422de6d59d375032218d12aa18c83641cf77ea82bd1bd1caf04d4800d4212/jpush/jpush-api-python-client/issues/50 |
| og:image:alt | 日志: DEBUG:jpush:Making POST request to https://api.jpush.cn/v3/push. Headers: user-agent: jpush-api-python-client connection: keep-alive content-type: application/json;charset:utf-8 Body: {"audienc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jiajunhuang |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/jpush/jpush-api-python-client git https://github.com/jpush/jpush-api-python-client.git |
| octolytics-dimension-user_id | 2645408 |
| octolytics-dimension-user_login | jpush |
| octolytics-dimension-repository_id | 13466926 |
| octolytics-dimension-repository_nwo | jpush/jpush-api-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13466926 |
| octolytics-dimension-repository_network_root_nwo | jpush/jpush-api-python-client |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width