0
我一直在嘗試不同的字符串組合,以使其無效。希望有人能幫助。我正在使用Azure SDK發送服務總線消息。IronPython Azure發送服務總線消息 - 斷言錯誤
GUID = '40100b19-1335-468d-bf18-fca6b15c8f0c'
Current_Lineup = '{"Flex": 11247, "DST": 530, "RB2": 9680, "RB1": 9448, "QB": 10699, "WR2": 9964, "WR3": 9427, "WR1": 11676, "TE": 11521}'
sbs = ServiceBusService('blahblah' , 'blahblahblah', 'owner')
msgbody = 'msg-body'
utf8msg = msgbody.encode('utf8')
bytemsg = bytes(utf8msg)
msg = Message(bytemsg, custom_properties={"MessageId":GUID,"Whitelist":Current_Lineup,"Type":"roster"})
## msg = Message(b'msg-body')
## msg = Message(b'msg-body', custom_properties={"MessageId":GUID,"Whitelist":Current_Lineup,"Type":"roster"})
sbs.send_topic_message('statustopic',msg)
似乎Azure SDK不喜歡我正在發送的消息正文。使用CPython就像一個冠軍。使用IronPython,它會隨着AssertionError而死。
任何幫助將不勝感激!