deanishe / alfred-mailto

Send emails to recipients and groups from Alfred
http://www.deanishe.net/alfred-mailto/
MIT License
64 stars 7 forks source link

Can't load contacts or compose a new email #16

Open Natedude opened 2 years ago

Natedude commented 2 years ago

I am on macOS 10.14.6 and Alfred 4.3.2. When I type '@' it shows this Screen Shot 2021-10-07 at 3 12 55 PM

Here is the debug log. First it starts with

[15:15:07.385] MailTo[Script Filter] Queuing argument ''
[15:15:07.606] MailTo[Script Filter] Script with argv '' finished
[15:15:07.607] STDERR: MailTo[Script Filter] .
15:15:07 workflow.py:2055 DEBUG    ---------- MailTo (2.3.1) ----------
15:15:07 workflow.py:1462 DEBUG    reading settings from /Users/nathanhildum/Library/Application Support/Alfred/Workflow Data/net.deanishe.alfred-mailto/settings.json
15:15:07 workflow.py:2339 DEBUG    update check not due
15:15:07 mailto.py:136 DEBUG    args : Namespace(action=u'search', query=u'')
15:15:07 workflow.py:1689 DEBUG    loading cached data: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/all_apps.cpickle
15:15:07 workflow.py:1689 DEBUG    loading cached data: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/system_default_app.cpickle
15:15:07 mailto.py:154 DEBUG    Searching contacts
15:15:07 workflow.py:1689 DEBUG    loading cached data: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/__workflow_update_status.cpickle
15:15:07 workflow.py:2269 DEBUG    update_data: {u'available': False}
15:15:07 contacts.py:43 DEBUG    Updating contacts cache ...
15:15:07 background.py:233 DEBUG    [update-contacts] command cached: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/update-contacts.argcache
15:15:07 background.py:237 DEBUG    [update-contacts] passing job to background runner: [u'/usr/bin/python', '/Users/nathanhildum/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.1ED390A7-D548-4525-9772-EEBA72E66601/workflow/background.pyc', u'update-contacts']

and then it repeats this as long as I let it try to update

15:15:07 workflow.py:2055 DEBUG    ---------- MailTo (2.3.1) ----------
15:15:07 background.py:243 DEBUG    [update-contacts] background job started
15:15:07 workflow.py:2248 DEBUG    set last run version: 2.3.1
15:15:07 workflow.py:2097 DEBUG    ---------- finished in 0.092s ----------
[15:15:07.612] MailTo[Script Filter] {"items": [{"valid": false, "subtitle": "", "icon": {"path": "icons/reload.icns"}, "title": "Updating contacts \u2026"}, {"valid": false, "subtitle": "Please wait a second or two", "icon": {"path": "icons/warning.icns"}, "title": "Contacts not yet cached"}, {"arg": "compose", "valid": true, "subtitle": "\u21a9 to compose a new email or start typing to add recipients", "icon": {"path": "icons/compose.icns"}, "title": "Compose a new email"}], "rerun": 0.5}
[15:15:08.109] MailTo[Script Filter] Queuing argument ''
[15:15:08.328] MailTo[Script Filter] Script with argv '' finished
[15:15:08.330] STDERR: MailTo[Script Filter] .
15:15:08 workflow.py:2055 DEBUG    ---------- MailTo (2.3.1) ----------
15:15:08 workflow.py:1462 DEBUG    reading settings from /Users/nathanhildum/Library/Application Support/Alfred/Workflow Data/net.deanishe.alfred-mailto/settings.json
15:15:08 workflow.py:2339 DEBUG    update check not due
15:15:08 mailto.py:136 DEBUG    args : Namespace(action=u'search', query=u'')
15:15:08 workflow.py:1689 DEBUG    loading cached data: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/all_apps.cpickle
15:15:08 workflow.py:1689 DEBUG    loading cached data: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/system_default_app.cpickle
15:15:08 mailto.py:154 DEBUG    Searching contacts
15:15:08 workflow.py:1689 DEBUG    loading cached data: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/__workflow_update_status.cpickle
15:15:08 workflow.py:2269 DEBUG    update_data: {u'available': False}
15:15:08 contacts.py:43 DEBUG    Updating contacts cache ...
15:15:08 background.py:233 DEBUG    [update-contacts] command cached: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/update-contacts.argcache
15:15:08 background.py:237 DEBUG    [update-contacts] passing job to background runner: [u'/usr/bin/python', '/Users/nathanhildum/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.1ED390A7-D548-4525-9772-EEBA72E66601/workflow/background.pyc', u'update-contacts']

Also, if I select 'Compose a new email', a notification pops up describing the error and the log shows this

15:18:30 workflow.py:2055 DEBUG    ---------- MailTo (2.3.1) ----------
15:18:30 background.py:243 DEBUG    [update-contacts] background job started
15:18:30 workflow.py:2248 DEBUG    set last run version: 2.3.1
15:18:30 workflow.py:2097 DEBUG    ---------- finished in 0.091s ----------
[15:18:31.010] MailTo[Script Filter] {"items": [{"valid": false, "subtitle": "", "icon": {"path": "icons/reload.icns"}, "title": "Updating contacts \u2026"}, {"valid": false, "subtitle": "Please wait a second or two", "icon": {"path": "icons/warning.icns"}, "title": "Contacts not yet cached"}, {"arg": "compose", "valid": true, "subtitle": "\u21a9 to compose a new email or start typing to add recipients", "icon": {"path": "icons/compose.icns"}, "title": "Compose a new email"}], "rerun": 0.5}
[15:18:31.130] MailTo[Script Filter] Processing complete
[15:18:31.130] MailTo[Script Filter] Passing output 'compose' to Run Script
[15:18:31.277] ERROR: MailTo[Run Script] .
15:18:31 workflow.py:2055 DEBUG    ---------- MailTo (2.3.1) ----------
15:18:31 workflow.py:1462 DEBUG    reading settings from /Users/nathanhildum/Library/Application Support/Alfred/Workflow Data/net.deanishe.alfred-mailto/settings.json
15:18:31 workflow.py:2339 DEBUG    update check not due
15:18:31 mailto.py:136 DEBUG    args : Namespace(action=u'compose', query=u'')
15:18:31 mailto.py:372 DEBUG    Composing email ...
15:18:31 mailto.py:377 DEBUG    Composing email to u''
15:18:31 workflow.py:1689 DEBUG    loading cached data: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/all_apps.cpickle
15:18:31 workflow.py:1689 DEBUG    loading cached data: /Users/nathanhildum/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/net.deanishe.alfred-mailto/system_default_app.cpickle
15:18:31 workflow.py:2074 ERROR    No contacts available
Traceback (most recent call last):
  File "/Users/nathanhildum/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.1ED390A7-D548-4525-9772-EEBA72E66601/workflow/workflow.py", line 2067, in run
    func(self)
  File "mailto.py", line 140, in run
    return getattr(self, method_name)()
  File "mailto.py", line 380, in do_compose
    url = client.build_url(emails)
  File "/Users/nathanhildum/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.1ED390A7-D548-4525-9772-EEBA72E66601/client.py", line 219, in build_url
    raise ValueError('No contacts available')
ValueError: No contacts available
15:18:31 workflow.py:2097 DEBUG    ---------- finished in 0.022s ----------
[15:18:31.285] MailTo[Run Script] Processing complete
[15:18:31.286] MailTo[Run Script] Passing output '{"items": [{"valid": false, "subtitle": "No contacts available", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'MailTo'"}]}' to Post Notification

Is there anything on my end I can do to resolve this?

Thanks