"ReferenceError: Can't find variable: "xxxx"
-
Hello,
My script is running really smooth in one thread, But when trying to run it in multiple threads, i'm getting random errors each run. Mostly "ReferenceError: Can't find variable: "xxxx" for different variables and in different timings.
I can't understand what's wrong as it runs very smooth when run script only in one thread !!! \
Any help is really appreciated ..
-
@Hannaa It sounds like you may not be handling errors properly in your script. If you run a script with multiple threads (e.g. 40 threads) that attempts to solve a captcha using your own requests to an API, and you haven't implemented proper error handling, it could crash if the API returns an error indicating it was unable to solve the captcha. This would be considered a fatal error. On the other hand, if you are searching for something and the required element is not found, it could lead to a less severe error, but still cause issues in your script
Could you please search for the ID and send me a screenshot of the specific function? I will look into it and tell you a possible solution.
-
@NotWegant As you exactly expected, there were unhandled errors within some API calls.
Thnx for your reply ..