-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query format at OPAL_DATA_CONFIG_SOURCES #694
Comments
Hey @HonorBn, thank you for reporting this issue 💎 The error suggests a serialization problem, potentially due to an empty data update represented by {}. To better assist, could you provide details on your OPAL_DATA_CONFIG_SOURCES configuration and any other relevant configs? Looking forward to your response! |
Hey @HonorBn :) |
Hi, @danyi1212, @maya-barak. I'd like to know more than what is in the docs. The query format seems to have to be the result of a Select statement with columns named uid, attrs, and parents. And here is my ConfigMap. |
It is possible that the issue is the Now knowing that you ingest it into Cedar, I've found exactly what raised the deserialization error. In Cedar Agent (Stateful Web Server for Cedar) we directly use the @omer9564 might have some further insights about how Cedar Agent ingests data. The serialization error is raised from this method due to the invalid values in the Request's JSON body, which was generated from the SQL Query result. Hope that will give you a lead in resolving that issue. |
@danyi1212 I know that Cedar Agent collects data using JSON format. |
Maybe the Postgres provider is loading the SQL Query result as String and not as JSON, so when it provides it to Cedar Agent it gets the error. I would recommend running the OPAL locally and debugging it, checking what exactly is returned from the Postgres query and what is sent in the data update. Let me know if you’d like code references or any further help troubleshooting this. |
Hello.
I met an error when using postgres fetch provider.
ValueError: OPA Client: unexpected status code: 400, error: {'reason': 'You have malformed a bad request', 'description': 'The content in the request does not match the specifications: entities deserialization error: invalid type: string "{}", expected a map', 'code': 400}
I think the query may be wrong, but I couldn't find right format.
Is there any guide?
Or what is the correct sql format including that of attrs and parents if they are empty or filled?
Thank you.
The text was updated successfully, but these errors were encountered: