Strapi error in controller

I created the plugin and the content type in it (configured with strapi generate).

And the controller has the following

  'plugin::import-shopify-products.shopify-product',
)```

When I make GET request to find, I get error
```[2024-09-14 23:39:23.196] error: Cannot destructure property 'filters' of 'query' as it is undefined.
TypeError: Cannot destructure property 'filters' of 'query' as it is undefined.
    at Object.validateQuery [as query] (....../node_modules/@strapi/strapi/node_modules/@strapi/utils/dist/index.js:2485:22)

But when I modify it

  'plugin::import-shopify-products.shopify-product',
  {
    find(ctx) {
      return 'qwerty';
    },
  }
)```

Error is gone and I get "qwerty" in response.
How to fix this error?

<i>This topic has been created from a Discord post (1284618212788670515) to give it more visibility.
It will be on Read-Only mode here.
<a href="https://discord.com/channels/811989166782021633/1284618212788670515/1284618212788670515">Join the conversation on Discord</a></i>