When I apply this query, it returns no error. But I can't limit by date:
for (var element in list) {
final QueryBuilder<ParseObject> queryTemp =
QueryBuilder<ParseObject>(ParseObject(EventEntity.className));
//No search by date
queryTemp.whereEqualTo(
EventEntity.attendances,
(ParseObject(AttendanceEntity.className)..objectId = element.id)
.toPointer());
listQueries.add(queryTemp);
}
QueryBuilder<ParseObject> eventsOr = QueryBuilder.or(
ParseObject(EventEntity.className),
listQueries,
);
When I apply the same query including the date limits as follows:
for (var element in list) {
final QueryBuilder<ParseObject> queryTemp =
QueryBuilder<ParseObject>(ParseObject(EventEntity.className));
//+++ search by date
final start = DateTime(2023, 06, 25);
final end = DateTime(2023, 06, 27);
queryTemp.whereGreaterThanOrEqualsTo(
EventEntity.day, DateTime(start.year, start.month, start.day));
queryTemp.whereLessThanOrEqualTo(
EventEntity.day, DateTime(end.year, end.month, end.day, 23, 59));
//--- search by date
queryTemp.whereEqualTo(
EventEntity.attendances,
(ParseObject(AttendanceEntity.className)..objectId = element.id)
.toPointer());
listQueries.add(queryTemp);
}
QueryBuilder<ParseObject> eventsOr = QueryBuilder.or(
ParseObject(EventEntity.className),
listQueries,
);
I return this error:
╭-- Parse Response
Class: Event
Function: ParseApiRQ.query
Status Code: -1
Type: Other Cause
Exception: FormatException: Unexpected character (at character 1)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www....
^
╰--
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
New Issue Checklist
Issue Description
can you help me ?
When I apply this query, it returns no error. But I can't limit by date:
When I apply the same query including the date limits as follows:
I return this error:
Steps to reproduce
Actual Outcome
Expected Outcome
Environment
Parse Flutter SDK
5.1.0
3.10.5
3.0.5
POP
Server
4.10.4
Logs