-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
bugThis points to a verified bug in the codeThis points to a verified bug in the code
Description
Checklist
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
The code is hardcodes search instead of q as the search criteria name, docs: https://auth0.com/docs/api/management/v2/logs/get-logs
now:
if (!request.getSearch().isAbsent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "search", request.getSearch().orElse(null), false);
}
fails with:
BadRequestError, statusCode: 400, body: {
"statusCode" : 400,
"error" : "Bad Request",
"message" : "The query 'undefined' cannot be parsed. Please revise the query or visit https://auth0.com/docs/logs/log-search-query-syntax for help.",
"code" : "query_syntax_error"
}}
Reproduction
- Use the logs search api:
LogsClient logsClient = managementApi.logs();
String searchQuery = request.toSearchQuery(org.getId());
ListLogsRequestParameters.Builder paramsBuilder =
ListLogsRequestParameters.builder()
.search(searchQuery)
.sort("date:-1");
Additional context
No response
auth0-java version
latest (3.3.0)
Java version
21
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis points to a verified bug in the codeThis points to a verified bug in the code