-
Notifications
You must be signed in to change notification settings - Fork 249
Description
Describe the bug
I have configured my opal server and opal client to work with scopes.
When I publish a data update event through the server's rest APIs I get an event payload that is not correct and does not cause the client to update.
if I manually modify the payload and publish the event on the broadcast channel then the client updates.
To Reproduce
my client environment

the data update request body posted on /scopes/myscope/data/update

the data update event payload (from broadcast channel)

the error on client
opal_client.data.rpc | INFO | Received notification of event: myscope:data:policy_data
opal_client.data.updater | INFO | Updating policy data, reason: it's my business
opal_client.data.updater | INFO | Triggering data update with id: 258732c3adad403d80f4b6bdc1ed9329
opal_client.data.updater |DEBUG | Data entry url='' config={} topics=['data:policy_data'] dst_path='/posts' save_method='PUT' data=[..] has no topics matching the data topics, skipping
websockets.legacy.protocol |DEBUG | > TEXT '{"request": null, "response": {"result": "None"...4f43824e40272f85fb69"}}' [118 bytes]
because client listens "myscope:data:policy_data". The two topics section in event payload are not equal.
If I publish a fixed payload with both topics "myscope:data:policy_data" on broadcast channel the client can update the data correctly
Do you have any suggestions?
Thanks
OPAL version
- Version: [e.g. 0.1.0]
