measure-sh / measure

Measure is an open source tool to monitor mobile apps.
https://measure.sh
Apache License 2.0
546 stars 27 forks source link

"previous" should be `false` with offset 0 in '/sessions' API #1497

Closed anupcowkur closed 2 weeks ago

anupcowkur commented 3 weeks ago

previous should be false at this point since we are at offset 0. Results are null here. Could have something to do with that.

Request:

curl 'http://localhost:8080/apps/e963e98a-aca9-4bab-bd62-70a74801384e/sessions?from=2024-11-06T14%3A30%3A44.730Z&to=2024-11-06T15%3A00%3A44.730Z&timezone=Asia%2FCalcutta&filter_short_code=a696feda8432dc6fb923c850a37a5173&crash=1&anr=1&limit=5&offset=0' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzA5Nzc4MTcsImlhdCI6MTczMDg5MTQxNywiaXNzIjoibWVhc3VyZSIsInN1YiI6ImM0ZDViMjc2LTMyYjItNDQ1YS1hZDg3LTVmZjg5MjI3NmRiNCIsInRlYW0iOiJhYWE0YThmYy1kNjFlLTQwODYtYmUwNy0wMmQ3MDAwZjJhYWIifQ.SuefMuSqNLp6FaEI6zPucUo7STZNS4XxfsCbzaFob9o' \
  -H 'Connection: keep-alive' \
  -H 'DNT: 1' \
  -H 'Origin: http://localhost:3000' \
  -H 'Referer: http://localhost:3000/' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-site' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36' \
  -H 'sec-ch-ua: "Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"'

Response:

  {"meta":{"next":false,"previous":true},"results":null}

Screenshot:

Screenshot 2024-11-06 at 8 32 10 PM