Hi, my site has dropdown so that the user can select which params they want to search for in the database. The problem is when the user does a search, the console says that there is an uncught error. This is wrong.. because EVERYTHING is surrounded by a try catch with a print of which error. Here is a screenshot of what i mean:
![](https://static.wixstatic.com/media/a27d24_039ed4f885ad47ebb155c9352b828326~mv2.png/v1/fill/w_647,h_371,al_c,q_85,enc_auto/a27d24_039ed4f885ad47ebb155c9352b828326~mv2.png)
The console log is what the user searches for, but the query is the exact same function. Basically, i can keep pressing the export button(from database) untill it works. The only error i recive is this:
![](https://static.wixstatic.com/media/a27d24_1c8572ffc465429398be4cc98189ea22~mv2.png/v1/fill/w_645,h_568,al_c,q_90,enc_auto/a27d24_1c8572ffc465429398be4cc98189ea22~mv2.png)
But it leads me nowhere... only shows wix's own code. This is the query
wixData.query("LeadsBeta").not(wixData.query("LeadsBeta").hasSome("orgNr", arrayReturned)) .contains("searchCounty", $w("#dropdown6").value) .contains("searchBranch", $w("#dropdown4").value) .between("revenue", inputRevMin, inputRevMax) .between("regDate", inputYearMin, inputYearMax) .ne("orgNr", localOrg) .ne("tel", cmpTelSort) .ne("kontaktperson", cmpContactPersonSort) .ne("besoksadress", cmpVisitLocationSort) .ne("revenue", cmpRevenueSort) .ne("regDate", cmpRegDateSort) .ne("website", cmpWebsiteSort) .ne("email", cmpEmailSort) .ne("resefin", cmpResultsSort) .ne("profit", cmpProfitsSort) .ne("asset", cmpAssetsSort) .limit(leadsInt) .find() .then ((results)=> {*rest of the code here*})
the error occurs inside the query, not after the .then function. To mention again, the query DOES work sometimes, but sometimes it doesnt, i can search for the same thing many times untill it works, and not give me an error. Please can someone help me. Im not a beginner at js but im not a master either.
I solved it, if anyone else is having the same issue, i will explain what the sollution is.
Wix database can be basically as big as you want, atleast it is said to manage that. however my database was over 400 000 rows, because it was too big it kept throwing me an unnamed error. If your recive this unnamed error it is probably because the database is too big. Split it up into more smaller ones.
Hi the url is https://www . superleads . se / mitt-konto
I tried making a whole new database, i thought it had something to do with utf-8 but the issue still remains. I think it might have something to do with the request taking too long?
Please post the URL of your site.