Skip to content

[Bug]: @coveo/headless - Sequencing multiple controller operations throws a signal abort error #5140

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

Open
MelyukhovD opened this issue Apr 4, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@MelyukhovD
Copy link

Which product are you using?

Headless

product version

3.19.1

bug description

We have controls to switch between different static filters, and the logic behind them is as follows:

Image
  1. Reset Page to "1"
  2. Apply filter
  3. Submit query (optional line, can be removed, bug is still there)

Doing these things in quick sequence results in the following errors:
Image

From a behavior standpoint, everything works as intended, so we're wondering if these errors should be thrown or if it's a bug. If they should indeed be thrown, how would we go about avoiding them while performing those 3 operations.

Steps to reproduce

Pretty much what I described above.
Make a single control perform 3 distinct actions from different coveo controllers, and the error(s) should appear, once per additional action after the first one.

Relevant log output

@MelyukhovD MelyukhovD added the bug Something isn't working label Apr 4, 2025
@louis-bompart louis-bompart added question Further information is requested and removed bug Something isn't working labels Apr 4, 2025
@MelyukhovD MelyukhovD changed the title [Bug]: Sequencing multiple controller operations throws a signal abort error [Bug]: @coveo/headless - Sequencing multiple controller operations throws a signal abort error Apr 4, 2025
@louis-bompart
Copy link
Collaborator

louis-bompart commented Apr 4, 2025

Hi @MelyukhovD , this is working as intended:
You are doing three operations that each trigger a different query.

You must go one level deeper and dispatch actions instead of using the controller.
See: https://docs.coveo.com/en/headless/latest/usage/#dispatch-actions

To find which controllers methods do what, I suggest you purview the source code of thoses.

@louis-bompart louis-bompart self-assigned this Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants