algolia / algoliasearch-helper-flutter

⚡️ Building block to create instant-search applications with Flutter
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/flutter/
Other
22 stars 15 forks source link

FacetList.eventTracker.clickedFilters throws 422 syntax error #108

Closed sparkmagicllc closed 10 months ago

sparkmagicllc commented 11 months ago

Describe the bug 🐛
Insights Events API request payload body has a syntax error AlgoliaApiException{statusCode: 422, error: {"status":422,"message":"Syntax error near: \"Facet Value\", expected a filter"}}:

To Reproduce 🔍
Steps to reproduce the behavior:

  1. click Facet List and toggle selection of a facet filter value
  2. eventTracker is enabled

Expected behavior 💭

FacetList.eventTracker.clickedFilters(
        eventName: 'testing clicked filter',
        values: ["facet_name:"+Uri.encodeComponent(facet_value)]);

Screenshots 🖥
If applicable, add screenshots to help explain your problem.

Environment:

Peetee06 commented 11 months ago

I just ran into the same issue following the Getting started guide using our own Algolia application. The filters seem to be correctly applied nevertheless.