Skip to content
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

metadata query error with some jsonstring #1274

Open
anesson-cs opened this issue Jul 25, 2024 · 1 comment
Open

metadata query error with some jsonstring #1274

anesson-cs opened this issue Jul 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@anesson-cs
Copy link
Collaborator

When search is done with a POST request, metadata are queried with a jsonstring. In some cases, double quotes are required to force typing of the query value like '{{"cdr_type": "{cdr_type}"}}' for wekeo. In this example and with SATELLITE_SEA_ICE_CONCENTRATION product type, cdr_type must be a list of string. This string is automatically built with double quotes, but this creates nested double quotes that are blocked in format_query_params() while using orjson.loads().

A way to prevent this error that blocks metadata mapping process must be find for this case and all ones similar to it.

@anesson-cs anesson-cs added the bug Something isn't working label Jul 25, 2024
@sbrunato
Copy link
Collaborator

Did you try to remove double quotes ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants