Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop working #1

Open
BADABUMBA opened this issue Oct 29, 2021 · 8 comments
Open

Stop working #1

BADABUMBA opened this issue Oct 29, 2021 · 8 comments

Comments

@BADABUMBA
Copy link

After an error, the script stops working
image
This error sometimes happens. Is it possible that after it the script would pause and return to work again?

@Ratiboriy
Copy link

yes, have same situation

@Ratiboriy
Copy link

i use Tampermonkey and script work without issues

@frankduque
Copy link

To fix this you can use:

for (let i = 0; i < PAUSE_TASK; ++i) { let modalErro = document.querySelectorAll(".modal-error.open")[0]; if (modalErro) { await new Promise((res) => setTimeout(res, 10000)); location.reload(); } await new Promise((res) => setTimeout(res, 1000)); }

Instead of:

await new Promise((res) => setTimeout(res, PAUSE_BUTTON));
This will check if the error modal appears while it wait. If any kind of error happens it reloads the page.

@Ratiboriy
Copy link

To fix this you can use:

for (let i = 0; i < PAUSE_TASK; ++i) { let modalErro = document.querySelectorAll(".modal-error.open")[0]; if (modalErro) { await new Promise((res) => setTimeout(res, 10000)); location.reload(); } await new Promise((res) => setTimeout(res, 1000)); }

Instead of:

await new Promise((res) => setTimeout(res, PAUSE_BUTTON)); This will check if the error modal appears while it wait. If any kind of error happens it reloads the page.

Hi, have you fix script to new update?

@frankduque
Copy link

Working on improving it atm.

@Ratiboriy
Copy link

Great, can you teach me how it posible?

@frankduque
Copy link

I'm gonna update you here as soon as it works.

@frankduque
Copy link

Can't find a way to trigger the click on this part of the map.
Any ideas?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants