Title: Problem when sending parts too long and listen exception · Issue #160 · python-smpplib/python-smpplib · GitHub
Open Graph Title: Problem when sending parts too long and listen exception · Issue #160 · python-smpplib/python-smpplib
X Title: Problem when sending parts too long and listen exception · Issue #160 · python-smpplib/python-smpplib
Description: Hi, Thank you very much for the library. Sometime the function smpplib.gsm.make_parts can't split correctly the message in parts, exemple of sms : "EMOTICON BUG 🤼 🏃 🏇 🏋 🏹 🛶 🤸 🤹 🛹 🥏 🎳 🏊 🏄 🤽 🎿 ⛸ ⛷ 🏂 🛷 🥌 🏌" It's an unlikely case for my need...
Open Graph Description: Hi, Thank you very much for the library. Sometime the function smpplib.gsm.make_parts can't split correctly the message in parts, exemple of sms : "EMOTICON BUG 🤼 🏃 🏇 🏋 🏹 🛶 🤸 🤹 🛹 🥏 🎳 🏊 🏄 🤽 🎿 ⛸ ⛷ 🏂 ...
X Description: Hi, Thank you very much for the library. Sometime the function smpplib.gsm.make_parts can't split correctly the message in parts, exemple of sms : "EMOTICON BUG 🤼 🏃 🏇 🏋 🏹 🛶 🤸 🤹 🛹 🥏 🎳 🏊 🏄 🤽...
Opengraph URL: https://github.com/python-smpplib/python-smpplib/issues/160
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problem when sending parts too long and listen exception","articleBody":"Hi,\r\n\r\nThank you very much for the library.\r\n\r\nSometime the function smpplib.gsm.make_parts can't split correctly the message in parts, exemple of sms : \r\n\r\n\"EMOTICON BUG 🤼 🏃 🏇 🏋 🏹 🛶 🤸 🤹 🛹 🥏 🎳 🏊 🏄 🤽 🎿 ⛸ ⛷ 🏂 🛷 🥌 🏌\"\r\n\r\nIt's an unlikely case for my need, I left out the encoding management for this type of message. \r\n\r\nBut this creates another problem. With this kind of message the method read_once call by listen raise a PDUError.\r\nAnd in this PDUError , there is not all the PDU information and especially the **sequence**.\r\n\r\n\r\n```\r\n def read_once(self, ignore_error_codes=None, auto_send_enquire_link=True):\r\n \"\"\"Read a PDU and act\"\"\"\r\n try:\r\n try:\r\n pdu = self.read_pdu()\r\n except socket.timeout:\r\n if not auto_send_enquire_link:\r\n raise\r\n self.logger.debug('Socket timeout, listening again')\r\n pdu = smpp.make_pdu('enquire_link', client=self)\r\n self.send_pdu(pdu)\r\n return\r\n\r\n if pdu.is_error():\r\n raise exceptions.PDUError('({}) {}: {}'.format(\r\n pdu.status,\r\n pdu.command,\r\n consts.DESCRIPTIONS.get(pdu.status, 'Unknown status')),\r\n int(pdu.status),\r\n )\r\n```\r\n\r\n\r\nIt's possible to add the PDU object in the PDUError or just the sequence. I need the sequence to link the error to the messages I send.\r\nOtherwise the message remains in an unknow status.\r\n\r\n\r\nBest Regards.","author":{"url":"https://github.com/ectalactus","@type":"Person","name":"ectalactus"},"datePublished":"2021-07-28T22:31:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/160/python-smpplib/issues/160"}
| 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:405eafd2-41ae-dc0e-646e-3ffdafbdbaba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B89A:3F6966:20F5D7E:2DE55F6:696FEE64 |
| html-safe-nonce | 74da10cf18b3dda0813af1cfa9218418a1e3d6a390016aee81db7127e08a4b28 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODlBOjNGNjk2NjoyMEY1RDdFOjJERTU1RjY6Njk2RkVFNjQiLCJ2aXNpdG9yX2lkIjoiOTIxOTg1MTk2NTAzMjI5NjAzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 10da5abdba5143f0dbb15f01b48368a0ff2948657fcdb59c488ef50a605d5377 |
| hovercard-subject-tag | issue:955282698 |
| 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/python-smpplib/python-smpplib/160/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7f6814eedcb8a55c50bdf6d1c900df992985296f04a4225f14f2bcd0f196754/python-smpplib/python-smpplib/issues/160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7f6814eedcb8a55c50bdf6d1c900df992985296f04a4225f14f2bcd0f196754/python-smpplib/python-smpplib/issues/160 |
| og:image:alt | Hi, Thank you very much for the library. Sometime the function smpplib.gsm.make_parts can't split correctly the message in parts, exemple of sms : "EMOTICON BUG 🤼 🏃 🏇 🏋 🏹 🛶 🤸 🤹 🛹 🥏 🎳 🏊 🏄 🤽 🎿 ⛸ ⛷ 🏂 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ectalactus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b218dbdee134592a2dbfabd454a1070986f1fbedb8334bf06b8f2ccc3449130 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-smpplib/python-smpplib git https://github.com/python-smpplib/python-smpplib.git |
| octolytics-dimension-user_id | 45378833 |
| octolytics-dimension-user_login | python-smpplib |
| octolytics-dimension-repository_id | 9441405 |
| octolytics-dimension-repository_nwo | python-smpplib/python-smpplib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9441405 |
| octolytics-dimension-repository_network_root_nwo | python-smpplib/python-smpplib |
| 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 | bcaac379a58a3ed99a1b0502e2a8f5cfd3a7b54b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width