Website crashes if data_format on amqp channel is not set

While setting up rabbitmq with zato I made an AMPQ definition and an AMPQ Channel for receiving.
This works great but since it the message comes in plain text i changed the data_format from JSON to just the hyphens (aka nothing)
Now i can see the incoming messages in my server logs. and everything works except:

i can no longer enter this page:

my webbrowser shows this traceback:

Traceback (most recent call last): File “/opt/zato/2.0.7/code/zato-web-admin/src/zato/admin/web/views/”, line 299, in call response = self.invoke_admin_service() File “/opt/zato/2.0.7/code/zato-web-admin/src/zato/admin/web/views/”, line 262, in invoke_admin_service return func(self.service_name, self.input) File “/opt/zato/2.0.7/code/zato-web-admin/src/zato/admin/”, line 72, in invoke raise Exception(‘CID: {}\nDetails: {}’.format(zato_env.get(‘cid’), zato_env.get(‘details’))) Exception: CID: K05Y47GT0ZGZVXAWR2RS4NG9PQPD Details: Traceback (most recent call last): File “/opt/zato/2.0.7/code/zato-server/src/zato/server/connection/http_soap/”, line 198, in dispatch payload, worker_store, self.simple_io_config, post_data) File “/opt/zato/2.0.7/code/zato-server/src/zato/server/connection/http_soap/”, line 350, in handle params_priority=channel_item.params_pri) File “/opt/zato/2.0.7/code/zato-server/src/zato/server/service/”, line 401, in update_handle self._invoke(service, channel) File “/opt/zato/2.0.7/code/zato-server/src/zato/server/service/”, line 344, in invoke service.handle() File “/opt/zato/2.0.7/code/zato-server/src/zato/server/service/internal/”, line 271, in handle response = func(id, payload, channel, data_format, transport, serialize=True) File “/opt/zato/2.0.7/code/zato-server/src/zato/server/service/”, line 499, in invoke return self.invoke_by_impl_name(self.server.service_store.name_to_impl_name[name], *args, **kwargs) File “/opt/zato/2.0.7/code/zato-server/src/zato/server/service/”, line 483, in invoke_by_impl_name return self.update_handle(*invoke_args, **kwargs) File “/opt/zato/2.0.7/code/zato-server/src/zato/server/service/”, line 429, in update_handle raise resp_e ZatoException: Expected elem:[data_format] not found in item:[([‘id’, ‘name’, ‘is_active’, ‘queue’, ‘consumer_tag_prefix’, u’def_name’, ‘def_id’, ‘data_format’, u’service_name’, u’service_impl_name’], (1, u’Rabbitreceiver’, True, u’test2’, u’’, u’nolap895sry1’, 2, u’’, u’’, u’rabbit_receiver.MyService’))]

The receiver service is working fine. And when i checked the database, i found the “data_format” column and it is not “NULL”, but some empty string probably. If i change this value to “JSON” then i can enter the page. ( but my receiver can’t receive the message since the message issnt in JSON)

Any help would be much appreciated.


Hello @Borgen,

this is fixed in GitHub, would it be possible for you to apply this patch?


Thank you, will try!