danielecook / gist-alfred

An alfred workflow for accessing gists
MIT License
118 stars 10 forks source link

Hangs on "downloading latest gists" #7

Closed jlorince closed 6 years ago

jlorince commented 7 years ago

I just installed on alfred 3, set up my username and token, and 20min later it still says "Downloading latests gists, this may take a bit".

I only have a couple gists at the moment, so I have trouble believe it's really taking this long to download. gg reload also doesn't show up as an option...

Ideas?

JiDai commented 6 years ago

Same problem here :(

danielecook commented 6 years ago

How many gists do you folks have?

On Tue, Nov 21, 2017 at 3:10 PM, Jordi Dosne notifications@github.com wrote:

Same problem here :(

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danielecook/gist-alfred/issues/7#issuecomment-346161894, or mute the thread https://github.com/notifications/unsubscribe-auth/ABdzpz_5GFAZUJEkAWh4Xhy-nAhIb-_oks5s4zwugaJpZM4OdMXL .

-- Daniel Cook

JiDai commented 6 years ago

7

JiDai commented 6 years ago

But I got an error in com.danielecook.gist.log :

22:16:25 workflow.py:1990 ERROR    'NoneType' object has no attribute 'read'
Traceback (most recent call last):
  File "/Users/jd/Dropbox/Conf/Alfred.alfredpreferences/workflows/user.workflow.B313DD03-B6D2-4B3F-AE61-9613A7FA18BD/workflow/workflow.py", line 1983, in run
    func(self)
  File "/Users/jd/Dropbox/Conf/Alfred.alfredpreferences/workflows/user.workflow.B313DD03-B6D2-4B3F-AE61-9613A7FA18BD/update_gists.py", line 55, in main
    gists = get_gist()
  File "/Users/jd/Dropbox/Conf/Alfred.alfredpreferences/workflows/user.workflow.B313DD03-B6D2-4B3F-AE61-9613A7FA18BD/update_gists.py", line 19, in get_gist
    r = web.post(url="https://api.github.com/gists/starred?page={p}".format(p=p),headers=headers).json()
  File "/Users/jd/Dropbox/Conf/Alfred.alfredpreferences/workflows/user.workflow.B313DD03-B6D2-4B3F-AE61-9613A7FA18BD/workflow/web.py", line 252, in json
    return json.loads(self.content, self.encoding or 'utf-8')
  File "/Users/jd/Dropbox/Conf/Alfred.alfredpreferences/workflows/user.workflow.B313DD03-B6D2-4B3F-AE61-9613A7FA18BD/workflow/web.py", line 284, in content
    self._content = self.raw.read()
AttributeError: 'NoneType' object has no attribute 'read'
JiDai commented 6 years ago

Ok it works, I deleted Alfred2 Library folders