Replies: 1 comment 3 replies
-
I'm not really sure what the problem can be, but based on your description my impression is that you need to debug your python3 and python2 that write to the queue to figure out what is their difference. The queue itself shouldn't care that you are using Python 2.7 as long as you write a correct payload. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@miguelgrinberg , I am producing the same message structure which sends from server to client via message queue from the python27 file so that the client can emit it in the same way.
If I produce the structure for eg.,
{'method': 'emit', 'event': 'message', 'data': 'hello- message from socket server', 'namespace': '/check', 'room': None, 'skip_sid': None, 'callback': None}
in Kafka python3. I can see the event is triggering the client.I tried the same with Python27 as per my requirement. I see it is not working. From python27 I tried to produce the value with json.dumps(), pickle.dumps(). both are not working.
As per the library in python3 , I see it is using pickle.dumps(). I could see this worked for me as per the conversion from python27.
I don't want to change the inbuilt library method structure. Is there any argument to make this possible without changing the kafka_manager.py file?
Beta Was this translation helpful? Give feedback.
All reactions