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 comment
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 comment
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 comment
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 comment
  • 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 comment
  • 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 comment
  • 10 months later...

Hello Martien,

 

I wondered if you might have an insight into this.  

I have v5.8.3 and Alfred 4 on:

macOS Big Sur


For every keyup event I type after `todo` I get an argv '(null)' finished, and alfred sends me a image.png.c5884487f7a9ba4bd9ebf1062755bfa3.png

 

This is the error output:

[12:02:16.019] Alfred Workflow Todoist[Script Filter] Queuing argument 'ofjkjkf'
[12:02:16.159] Alfred Workflow Todoist[Script Filter] Script with argv '(null)' finished
[12:02:16.173] Alfred Workflow Todoist[Script Filter] {"items":[{"uid":"693e9af84d3dfcc71e640e005bdc5e2e","title":"CREATE: ofjkj","subtitle":"INBOX","icon":{"path":"icon.png"},"arg":"{\"content\":\"ofjkj\",\"priority\":1}","type":"default","valid":true}]}
[12:02:16.489] Alfred Workflow Todoist[Script Filter] Script with argv '(null)' finished
[12:02:16.503] Alfred Workflow Todoist[Script Filter] {"items":[{"uid":"693e9af84d3dfcc71e640e005bdc5e2e","title":"CREATE: ofjkjkf","subtitle":"INBOX","icon":{"path":"icon.png"},"arg":"{\"content\":\"ofjkjkf\",\"priority\":1}","type":"default","valid":true}]}
[12:02:16.726] Alfred Workflow Todoist[Script Filter] Processing complete
[12:02:16.742] Alfred Workflow Todoist[Script Filter] Passing output '{"content":"ofjkjkf","priority":1}' to Run Script
[12:02:18.014] Alfred Workflow Todoist[Run Script] Processing complete
[12:02:18.031] Alfred Workflow Todoist[Run Script] Passing output 'ALFRED WORKFLOW TODOIST: ✓ Happy days!

Task added

' to Debug
[12:02:18.032] Alfred Workflow Todoist[Debug] 'ALFRED WORKFLOW TODOIST: ✓ Happy days!

Task added

', {
  node_flags = ""
  node_path = "/Users/{user}/.nvm/versions/node/v15.5.0/bin:"
}

 

Thanks

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...