-
Notifications
You must be signed in to change notification settings - Fork 12
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
Issues/189: add ability to supply submit_sm SMSC fields during submit_sm call #193
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
er_sm', 'log_id': '', 'command_status': 0, 'state': 'Success'}
{'timestamp': '2019-12-05 19:19:37,056', 'event': 'naz.Client.deliver_sm_resp', 'stage': 'start', 'log_id': '7x5em1nr8z5uxt5o7', 'smpp_command': 'deliver_sm_resp'}
{'timestamp': '2019-12-05 19:19:37,057', 'event': 'naz.Client.deliver_sm_resp', 'stage': 'end', 'error': "'utf-8' codec can't decode byte 0x80 in position 4: invalid start byte", 'log_id': '7x5em1nr8z5uxt5o7', 'smpp_command': 'deliver_sm_resp'}
Traceback (most recent call last):
File "/home/komuw/mystuff/naz/naz/client.py", line 961, in deliver_sm_resp
pdu=full_pdu,
File "/home/komuw/mystuff/naz/examples/example_klasses.py", line 103, in enqueue
await _redis.lpush(self.queue_name, message.to_json())
File "/home/komuw/mystuff/naz/naz/protocol.py", line 383, in to_json
pdu=self.pdu.decode(self.ENCODING),
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 4: invalid start byte
{'timestamp': '2019-12-05 19:19:37,059', 'event': 'naz.Client.deliver_sm_resp', 'stage': 'end', 'log_id': '7x5em1nr8z5uxt5o7', 'smpp_command': 'deliver_sm_resp'}
{'timestamp': '2019-12-05 19:19:37,059', 'event': 'naz.Client.receive_data', 'stage': 'end'}
{'timestamp': '2019-12-05 19:19:37,060', 'event': 'naz.Clien when you inject a |
full_pdu = b'\x00\x00\x00\x11\x80\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00A\x00'
full_pdu.decode('utf8')
*** UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 4: invalid start byte |
komuw
changed the title
Issues/189
Issues/189: add ability to supply submit_sm SMSC fields during submit_sm call
Dec 6, 2019
We no longer(as of this PR) send any bytes to the broker. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you for contributing to naz.
Every contribution to naz is important.
Contributions are under the MIT License.
Answer the following questions,
What(What have you changed?)
Why(Why did you change it?)
References: