Jump to content

Todoist Workflow


Recommended Posts

Hi - Can someone help.

I downloaded and installed both the workflow and node.js, and I have Alfred v3.7.

Every time I try to run 'create' workflow it comes up with following notification :

Quote

 

Could not Update the Workflow

Cannot read property 'length' of null

 

 

And when I try the 'search' workflow,  I first get :

Quote

 

X How unfortunate

Error: Missing Todoist API token, Add a token u...

 

 

Followed by :

Quote

 

Could not Update the Workflow

Cannot read property 'length' of null

 

 

Link to post
  • Replies 180
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

ALFRED TODOIST WORKFLOW Add and search Todoist tasks straight from Alfred. It uses Todoist v8 REST API. Getting started For this workflow to work you need version 3.x of Alfred and a p

Hi guys,   Make sure you have downloaded v3.0.2 and redownload it if you have changed any of the scripts, that's not the intended way.   In the Alfred bar, type the following and replace the token

I guess that wasn't clear enough, I meant the alfred 'normal' search bar. You shouldn't have to mess around with any settings, see below:     Martien   PS. You are right I did mean 3.1.2

Posted Images

On 8/26/2020 at 4:27 PM, Luddite said:

I've installed Node.js and set the API token and it was registered as successful. However, whenever I run any command, like creating a task or searching for tasks, there was a notification from Alfred “Couldn't update workflow. Can't read property 'length' of null”.

 

What version of the workflow are you on?

Link to post
3 hours ago, Naseer said:

Hi - Can someone help.

I downloaded and installed both the workflow and node.js, and I have Alfred v3.7.

Every time I try to run 'create' workflow it comes up with following notification :

 

And when I try the 'search' workflow,  I first get :

 

Followed by :

 

 

What version of the workflow are you on?

Link to post
On 8/29/2020 at 6:18 AM, Naseer said:

Hi - Can someone help.

I downloaded and installed both the workflow and node.js, and I have Alfred v3.7.

Every time I try to run 'create' workflow it comes up with following notification :

 

And when I try the 'search' workflow,  I first get :

 

Followed by :

 

Hi I am getting the same notifications when I try and create a task with alfred. I have version 4.1.1 of alfred and version 5.8.3 of the todoist workflow. 

Link to post
  • 1 month later...
On 8/29/2020 at 9:35 PM, Martien Oranje said:

 

What version of the workflow are you on?

Sorry that I didn't reply to you sooner. I'm using the latest Todoist workflow, 5.8.3 and Alfred version 4.0.9. I got that notification, but I was still able to add and retrieve tasks as normal.

Link to post
  • 2 weeks later...

Hi Martien, 


I am new to all this and I'm struggling to make it work...

 

Using the v.6.0.0- beta.1 workflow and latest version of Node JS: LTS Version: 14.15.0

I added the API token and that worked fine. But when trying to add a task, I get the following error: 

 

Starting debug for 'Alfred Workflow Todoist'

[2020-10-30 18:23:28][input.scriptfilter] Queuing argument 'c'
[2020-10-30 18:23:28][input.scriptfilter] Queuing argument 'ca'
[2020-10-30 18:23:28][input.scriptfilter] Queuing argument 'car'
[2020-10-30 18:23:28][input.scriptfilter] Queuing argument 'car '
[2020-10-30 18:23:28][input.scriptfilter] Queuing argument 'car w'
[2020-10-30 18:23:28][input.scriptfilter] Script with argument '(null)' finished
[2020-10-30 18:23:28][input.scriptfilter] {
  "items": [
    {
      "title": "ADD TASK: c",
      "subtitle": "INBOX",
      "icon": {
        "path": "icon.png"
      },
      "arg": "{\"name\":\"create\",\"args\":{\"content\":\"c\",\"label_ids\":[],\"due_lang\":\"en\"}}",
      "type": "default",
      "valid": true
    }
  ]
}
[2020-10-30 18:23:28][input.scriptfilter] Queuing argument 'car ws'
[2020-10-30 18:23:29][input.scriptfilter] Queuing argument 'car wsh'
[2020-10-30 18:23:29][input.scriptfilter] Script with argument '(null)' finished
[2020-10-30 18:23:29][input.scriptfilter] {
  "items": [
    {
      "title": "ADD TASK: car w",
      "subtitle": "INBOX",
      "icon": {
        "path": "icon.png"
      },
      "arg": "{\"name\":\"create\",\"args\":{\"content\":\"car w\",\"label_ids\":[],\"due_lang\":\"en\"}}",
      "type": "default",
      "valid": true
    }
  ]
}
[2020-10-30 18:23:29][input.scriptfilter] Script with argument '(null)' finished
[2020-10-30 18:23:29][input.scriptfilter] {
  "items": [
    {
      "title": "ADD TASK: car wsh",
      "subtitle": "INBOX",
      "icon": {
        "path": "icon.png"
      },
      "arg": "{\"name\":\"create\",\"args\":{\"content\":\"car wsh\",\"label_ids\":[],\"due_lang\":\"en\"}}",
      "type": "default",
      "valid": true
    }
  ]
}
[2020-10-30 18:23:29][input.scriptfilter] Queuing argument 'car ws'
[2020-10-30 18:23:30][input.scriptfilter] Queuing argument 'car w'
[2020-10-30 18:23:30][input.scriptfilter] Queuing argument 'car wa'
[2020-10-30 18:23:30][input.scriptfilter] Queuing argument 'car was'
[2020-10-30 18:23:30][input.scriptfilter] Queuing argument 'car wash'
[2020-10-30 18:23:30][input.scriptfilter] Script with argument '(null)' finished
[2020-10-30 18:23:30][input.scriptfilter] {
  "items": [
    {
      "title": "ADD TASK: car ws",
      "subtitle": "INBOX",
      "icon": {
        "path": "icon.png"
      },
      "arg": "{\"name\":\"create\",\"args\":{\"content\":\"car ws\",\"label_ids\":[],\"due_lang\":\"en\"}}",
      "type": "default",
      "valid": true
    }
  ]
}
[2020-10-30 18:23:30][input.scriptfilter] Script with argument '(null)' finished
[2020-10-30 18:23:30][input.scriptfilter] {
  "items": [
    {
      "title": "ADD TASK: car wash",
      "subtitle": "INBOX",
      "icon": {
        "path": "icon.png"
      },
      "arg": "{\"name\":\"create\",\"args\":{\"content\":\"car wash\",\"label_ids\":[],\"due_lang\":\"en\"}}",
      "type": "default",
      "valid": true
    }
  ]
}
[2020-10-30 18:23:38][input.scriptfilter] Processing output of 'action.script' with arg '{"name":"create","args":{"content":"car wash","label_ids":[],"due_lang":"en"}}'
[2020-10-30 18:23:39][ERROR: action.script] [ERROR] TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.set store [as store] (/Users/mac/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.07BACD74-A025-495B-91B4-39F0CBCDE377/alfred-workflow-todoist.js:29:182781)
    at Bh.qh [as deserialize] (/Users/mac/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.07BACD74-A025-495B-91B4-39F0CBCDE377/alfred-workflow-todoist.js:29:183485)
    at Bh.get store [as store] (/Users/mac/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.07BACD74-A025-495B-91B4-39F0CBCDE377/alfred-workflow-todoist.js:15:123392)
    at new e.exports (/Users/mac/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.07BACD74-A025-495B-91B4-39F0CBCDE377/alfred-workflow-todoist.js:15:119010)
    at new Bh (/Users/mac/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.07BACD74-A025-495B-91B4-39F0CBCDE377/alfred-workflow-todoist.js:29:183702)
    at /Users/mac/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.07BACD74-A025-495B-91B4-39F0CBCDE377/alfred-workflow-todoist.js:29:210701
    at tp (/Users/mac/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.07BACD74-A025-495B-91B4-39F0CBCDE377/alfred-workflow-todoist.js:29:210995)
    at /Users/mac/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.07BACD74-A025-495B-91B4-39F0CBCDE377/alfred-workflow-todoist.js:29:329760
    at wv (/Users/mac/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.07BACD74-A025-495B-91B4-39F0CBCDE377/alfred-workflow-todoist.js:29:329967)
[2020-10-30 18:23:39][action.script] Processing output of 'utility.debug' with arg ''
[2020-10-30 18:23:39][utility.debug] '', {
    "node_flags" = "";
    "node_path" = "";
}

 

What am I missing here? 

 

Any help would be appreciated!

 

Thanks,

Boris

 

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...