This message was deleted.
# opal
s
This message was deleted.
f
Hey @Sumesh Sukumaran - is this the only error you are getting from the PDP when running the webhook?
s
Yeah this error and some warnings
Do I need to configure polling and webhook simultaneously?
a
Hi @Sumesh Sukumaran is the webhook secret defined in the docker compose the same one you use in github?
Also, we would need the full OPAL server logs to understand what went wrong. Typically 503 means that OPAL server did not yet clone the policy repo or could not clone it.
s
Yeah @Asaf Cohen I am using the same secret in both the places.
a
(you can send the logs privately to us if you prefer)
the issue is a race condition between the opal server and opal client
since you started them at the very same time, OPAL server took time to clone the policy repo, and in the meanwhile correctly returned 503. if you would start OPAL client 20 seconds after OPAL server it would not happen
🤘 1
i know this because this line in the logs shows after the 503 error:
Copy code
opal_common.git.repo_cloner             | INFO  | Clone succeeded
s
Thanks @Asaf Cohen. Yeah now its working when I restarted the OPAL client 👍
❤️ 1