-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Failed to add task but still reported success #22
Comments
Just hit this same problem this week |
I may have some time this weekend to troubleshoot this. |
FWIW, I've solved the underlying problem for myself by using the npm version instead of the .exe, but yeah, worth seeing why it says "Task(s) added" when no tasks were added |
This is where the problem is coming from /**
* Process the request
* @private
*/
function _process(task, count=1, max=1) {
log.spinner.start("Adding New Task(s)...");
config.user(function(user) {
task = _parseTask(task);
// Add Task
user.tasks.add(task, function(err) {
if ( err ) {
log.spinner.error("Could not add new Task #" + count + " (" + err.msg + ")");
}
_processFinished(count, max);
});
});
}
/**
* Request Callback
* @private
*/
function _processFinished(count, max) {
log.spinner.start("Adding Task [" + count + "/" + max + "]...");
if ( count === max ) {
log.spinner.success("Task(s) Added");
return finish();
}
} If there is an error, it displays that there was an error, but once all the tasks have been processed, it still goes on to However, this pattern repeats itself through each of the commands... |
I was adding several tasks using the
rtm a
interactive mode. While I was entering them, my internet went out. Then when finishing with a blank line, it cycled through the tasks, reported a failure and then ended with the success message.New Task: Install new Comcast modem #personal !1 ^today @home =15 minutes
New Task: Install new Nest floodlight #Personal !1 ~tomorrow ^Saturday =1 hour @home
New Task:
✖ Could not add new Task #1 (Network Error: Could not make request to RTM API Server)
✖ Could not add new Task #2 (Network Error: Could not make request to RTM API Server)
✔ Task(s) Added
I was expecting that the final message would have reported an error.
I've not attempted to troubleshoot this yet.
The text was updated successfully, but these errors were encountered: