EEncodingError after switching EventReceiver to JSON Message

For some reasons I’ve to switch an EventReceiver from BIN to JSON and running into an EEncodingError now. This seems similar to:
https://talk.remobjects.com/t/js-unicode-encoding-problem-after-update-to-9-2-101-1295/13101
but I’m using TROWinInetHTTPChannel. The Error occures after RegisterEventHandler.
What’s to do?

Hi,

can you create a simple testcase that reproduces this issue?
you can attach it here or post directly to support@

No code except of:

ROEventReceiver.RegisterEventHandler(EID_ServerCallBack,self);

involved. I’ll send my project to support@

You had two errors in testcase:

  • you have used the same channel for bin and json messages, as a result, json message was processed as a bin on server side because it was sent to http://localhost:8099/bin. fixed via adding a personal channel for event receiver with url - http://localhost:8099/json
  • JSON message should have the same settings on server side and client side. fixed via copying Json message from server-side and pasting to client-side

Txs evgeny – some times it’s easier then expected.