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

Times out #2

Open
wongjustin99 opened this issue Oct 23, 2017 · 6 comments
Open

Times out #2

wongjustin99 opened this issue Oct 23, 2017 · 6 comments

Comments

@wongjustin99
Copy link

On a couple of computers, one El Capitan, one Sierra, I get an AppleScript timeout on both.

script:64:109: execution error: Reminders got an error: AppleEvent timed out. (-1712)

Is there a way to fix this or extend the timeout?

@lucasbento lucasbento added the bug label Oct 24, 2017
@lucasbento
Copy link
Owner

@wongjustin99: can you tell me which command timed out? every command on applescript has a maximum execution time of 2 minutes, it's weird that the cli is exceeding it.

@wongjustin99
Copy link
Author

I was trying reminders --list.

Here's a fuller stack trace:

➜   reminders-cli git:(master) ✗  reminders --list
⠸ Loading reminders^CError: /usr/local/lib/node_modules/reminders-cli/dist/commands/../scripts/get_reminders.applescript:64:109: execution error: Reminders got an error: AppleEvent timed out. (-1712)

    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/reminders-cli/node_modules/applescript/lib/applescript.js:49:13)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

@wongjustin99
Copy link
Author

wongjustin99 commented Oct 24, 2017

I just ran the dev version and added a 1-hour timeout instead and that got it to work. I think something about your get_reminders.applescript is timing out with a lot of reminders.

@lucasbento
Copy link
Owner

@wongjustin99: hmm, how many reminders do you have? Did you see how long it takes to list all of them after you updating the timeout?

@wongjustin99
Copy link
Author

wongjustin99 commented Oct 25, 2017 via email

@lucasbento
Copy link
Owner

Yeah, gotta improve the loop perf, I'll try to have a look on it once I have some free time.

Thank you for reporting it, @wongjustin99!

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

No branches or pull requests

2 participants