Stores products displaying with Category Error

Hi everyone. So what I wanted to do is to create a function that retrieves products based on a category in the wix Stores. I’ve been looking for how to do this, and the only option I’ve found is to create a function of this function. In this case, when registering the product, I give a given ribbon name. But when I run the function, I get an error and I have tried to solve the problem, but all my alternatives have no success. This is the error I get

The error is there