unsafe built-in function calls in expression: http.send #431
Unanswered
JinXiu2023
asked this question in
OPA and Rego
Replies: 1 comment 4 replies
-
Try this instead, package example
response := res {
res := http.send({"method": "get", "url": "http://xxx.com"})
} I suspect it's a bug related to how the parser turns naked expressions into rules. If this ☝️ works, please file an issue -- your original example should work, too. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It caused the error "unsafe built-in function calls in expression: http.send" when I used the function
http.send()
. There is only one command and I don't know where the error is .I can reproduce the exception by the following code.
And the output is :
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions