Comments (2)
Currently there are three main categories of errors returned by OPA:
-
Rego/AST errors. These are parse and compile errors that occur when processing raw strings containing modules and queries. These are actionable errors that users can use to fix their policy.
-
Evaluation errors. These are conflicts or types errors encountered during evaluation. For example. if a count(x, y) is evaluated and x is a boolean, count will return an error. These are also actionable errors that typically indicate an error in the policy.
-
Storage errors. These are errors in the storage layer that usually indicate an internal failure of some kind. These are less actionable but are often useful for debugging.
It would be useful to include a page in the documentation that covers each category and explains what each error code means. In addition, we should be. able to provide tips for how to debug the issue.
from opa.
Closing this for now.
from opa.
Related Issues (20)
- AST: `text` element in location for annotations just says `#METADATA`
- Strange null results for multi-expression-query in case of `false` HOT 4
- docs: Missing monitoring metric `go_memstats_gc_cpu_fraction`
- regression: coverage change from 0.63.0+ HOT 4
- WithPartialEval losses r.Runtime HOT 1
- OPA panics in nested use of `every` HOT 3
- wasm: entrypoints for rules with "/" in their package parts are broken HOT 1
- OPA high latency - potential cause: bad memory allocations HOT 1
- Add annotation to AST package node HOT 1
- Not clear why metadata attribute `entrypoint` requires `scope: rule` HOT 1
- Allow `opa inspect` to inspect a single file HOT 2
- Loading JSON array as data reports "bad document type" — should be more specific
- `--authorization=basic` breaks gzipped request decompression HOT 1
- Cease pushing of opa-envoy rootless images
- OPA inspect command failing after version upgrade on mock-tests for remote/external function dependencies HOT 3
- Unexpected recursion error on dotted rule head containing vars
- custom bucket sizes in opa-envoy-plugin HOT 1
- Errors from builtins in tests are not reported as documented HOT 9
- Update docs to show correct prometheus metrics exports HOT 1
- Add `strings.count(string, substring)` built-in function HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opa.