This message was deleted.
# opal
s
This message was deleted.
j
so every time the
url
is not sent, i get a validation error
a
Hi @Jeevan 🙂 You can use the url or the data, but not both. So if you use the data, it acts as override. but it's completely optional. Use the url if you want the OPAL client to fetch the data from the url
oh, sure - you can use any url there, OPAL will not look at it if the data attr is provided
this was done for backwards compatibility with previous opals
j
Thanks Asaf for jumping in. So when I just send an empty URL i get
asyncio.exceptions.TimeoutError
on OPAL Clients 😕
a
mmm, can you send https://google.com and show us the logs? to the best of my knowledge the url should not be fetched.
@Ori Shavit can you maybe shed some more light as the feature owner?
j
haha, i did send the exact same thing. sharing the logs
Copy code
dummy-textqna-opal-client-1  | asyncio.exceptions.TimeoutError
dummy-textqna-opal-client-1  | 2022-12-13T06:29:11.609787+0000 | opal_client.data.updater                |ERROR  | Failed to fetch url <https:google.com>, got exception: 
dummy-textqna-opal-client-1  | 2022-12-13T06:29:11.610027+0000 | opal_client...base_policy_store_client  |ERROR  | OPA transaction failed, transaction id=7cde82f7976446f99e79358be45ef678, actions=[], error=None
a
Cool, i'm stepping into a meeting but @Ori Shavit will get back to you in a few hours. This might be a bug, if so we will fix it right away
j
arigato Asaf !
to provide more context: A custom postgres fetcher is being used on OPAL-CLient
a
oh ok this is interesting, can you also sent the instruction of data update you sent?
j
sure
a
And dou itashimashite @Jeevan 😉
😄 1
j
Copy code
{
    "entries": [
        {
            "url": "", // added to avoid validation error
            "data": {
                "active": false
            },
            "topics": [
                "policy_data"
            ],
            "dst_path": "/organizations/org_1/members/mem_1",
            "save_method": "patch",
            "reason": "water"
        }
    ]
}
the data looks like this
Copy code
{
  "organization": {
    "org_1": {
      "mem_1": {
        "active": true
      }
    }
  }
}
o
Hi @Jeevan, I'm taking a look now
j
thanks Ori ✌️
hi guys, i think the opal server which is deployed is of older version. really sorry for the false alarm
o
No problem 🙂 is it working for you with the latest version?
j
testing the same, will ping here for sure
so when a version release happens, is master branch used to deploy the new images?
in case of
permitio/opal
o
yes
j
it is working
again, sorry for the false alarm
❤️ 1
o
Great to hear that it's working 🙂