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

error 404 when using useSortBy hook with typesense #192

Open
weiklr opened this issue Jan 5, 2024 · 1 comment
Open

error 404 when using useSortBy hook with typesense #192

weiklr opened this issue Jan 5, 2024 · 1 comment

Comments

@weiklr
Copy link

weiklr commented Jan 5, 2024

Hi,

This is similar to #189, where i'm using a instantsearch hook useSortBy (i'm on instantsearch 7.4.1) .

my items are:

    {
      label: 'Most recent',
      value: `CARROT2024_RECEIPT`,
    },
    {
      label: 'Oldest',
      value: 'CARROT2024_RECEIPT/sort/created_at:asc',
    },
    {
      label: 'Name Asc',
       value: 'CARROT2024_RECEIPT/sort/filename:asc',
    },
    {
      label: 'Name Desc',
      value: 'CARROT2024_RECEIPT/sort/filename:desc',
    },

When i try to format the sortBy items based on the discussion in #189, i saw that call to typesense was made with the right sort by option when i try to sort by file name desc. However i encountered a 404 error as well.

image

and i have the following 404 error instead.

_layout.tsx:223 Error: 404 - Not found.
    at TypesenseInstantsearchAdapter2._validateTypesenseResult (typesense-instantsearch-adapter.js?v=30ae35b4:8128:19)
    at typesense-instantsearch-adapter.js?v=30ae35b4:8024:30
    at Array.map (<anonymous>)
    at TypesenseInstantsearchAdapter2._callee$ (typesense-instantsearch-adapter.js?v=30ae35b4:8023:66)
    at tryCatch (typesense-instantsearch-adapter.js?v=30ae35b4:69:21)
    at Generator.<anonymous> (typesense-instantsearch-adapter.js?v=30ae35b4:161:22)
    at Generator.next (typesense-instantsearch-adapter.js?v=30ae35b4:96:25)
    at asyncGeneratorStep (typesense-instantsearch-adapter.js?v=30ae35b4:374:28)
    at _next (typesense-instantsearch-adapter.js?v=30ae35b4:392:13)
overrideMethod @ console.js:213
Show 38 more frames
Show less

Any advice on this is greatly appreciated.

Metadata

Typesense Version: 0.25.1

@BossBele
Copy link

BossBele commented Mar 19, 2024

Check this out:
#189

Reference to documentation:
#189 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants