- Issue created by @aluzzardi
- 🇧🇷Brazil aluzzardi Pelotas, RS
I did not found the exactly motive for this issues, I add a quick change on the AssetCategoryFilter class, if the value is empty I add the string all, here the patch.
- 🇮🇳India chandu7929 Pune
I attempted to replicate the issue but was unable to do so. Could you please share the database log generated when you visit the media library page and encounter the error? While this error can occur if a user is not authenticated with Widen, I don't believe that is the case here.
- 🇧🇷Brazil aluzzardi Pelotas, RS
Hi,
Here the logs from the request:
API responded with status: 400. If the issue persist contact the site admin. Error message: Client error: `GET https://api.widencollective.com/v2/assets/search?query=+cat%3A%28%29+ft%3A%28image%29+rd%3A%28%5Bbefore+08%2F06%2F2025%5D%29+AND+ed%3A%28%28isEmpty%29+OR+%5Bafter+08%2F05%2F2025%5D%29&sort=-created_date&limit=12&offset=0&expand=asset_properties%2Cembeds%2Cfile_properties%2Cmetadata%2Csecurity%2Cthumbnails` resulted in a `400 Bad Request` response: @ "error": true, "response_code": 400, "error_message": "Search syntax error near \")\"", "stack_trace": null
Client error: `GET https://api.widencollective.com/v2/assets/search?query=+cat%3A%28%29+ft%3A%28image%29+rd%3A%28%5Bbefore+08%2F06%2F2025%5D%29+AND+ed%3A%28%28isEmpty%29+OR+%5Bafter+08%2F05%2F2025%5D%29&sort=-created_date&limit=12&offset=0&expand=asset_properties%2Cembeds%2Cfile_properties%2Cmetadata%2Csecurity%2Cthumbnails` resulted in a `400 Bad Request` response: @ "error": true, "response_code": 400, "error_message": "Search syntax error near \")\"", "stack_trace": null
With the patch to force the filter to start with all, the error does not happen.
I added an image for after the patch.The issue might be related to my user on Widen have permissions on multiple folders that are used to 2 different sites, and the module maybe does not handle that properly.