Skip to content
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

"Open gist URL" option not opening gist URL #14

Open
josh-works opened this issue Jul 18, 2019 · 4 comments
Open

"Open gist URL" option not opening gist URL #14

josh-works opened this issue Jul 18, 2019 · 4 comments

Comments

@josh-works
Copy link

josh-works commented Jul 18, 2019

First, I love this workflow. I use it all the time, I've got so many notes hanging out as gists. It would be impossible to parse them any other way than this workflow.

I found out how hard it is to parse this today, when I recently updated the workflow, and now I cannot open the gist by url.

In this gif, when I have the the open gist URL option selected, I'm hitting enter but it seems like nothing is happening.

open url

Here's the logs:

[2019-07-18 11:55:12][STDERR: input.scriptfilter] 11:55:12 workflow.py:1695 DEBUG    loading cached data: /Users/joshthompson/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.danielecook.gist/__workflow_latest_version.cpickle
.
11:55:12 workflow.py:2061 DEBUG    ---------- gist (0.8.0) ----------
11:55:12 workflow.py:1468 DEBUG    reading settings from /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/settings.json
11:55:12 workflow.py:2343 DEBUG    update check not due
11:55:12 workflow.py:2461 DEBUG    got password : com.danielecook.gist:GitHub-gist-alfred-token
11:55:12 workflow.py:1585 DEBUG    data `last_update` stored as `cpickle`
11:55:12 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/last_update.cpickle
11:55:12 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:12 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:12 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:12 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:12 workflow.py:1585 DEBUG    data `n_starred` stored as `cpickle`
11:55:12 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_starred.cpickle
11:55:12 workflow.py:1585 DEBUG    data `n_forked` stored as `cpickle`
11:55:12 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_forked.cpickle
11:55:12 workflow.py:1585 DEBUG    data `n_public` stored as `cpickle`
11:55:12 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_public.cpickle
11:55:12 workflow.py:1585 DEBUG    data `n_private` stored as `cpickle`
11:55:12 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_private.cpickle
11:55:12 workflow.py:1585 DEBUG    data `tag_counts` stored as `cpickle`
11:55:12 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/tag_counts.cpickle
11:55:12 workflow.py:1585 DEBUG    data `language_counts` stored as `cpickle`
11:55:12 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/language_counts.cpickle
11:55:12 workflow.py:2254 DEBUG    set last run version: 0.8.0
11:55:12 workflow.py:2103 DEBUG    ---------- finished in 0.056s ----------
[2019-07-18 11:55:16][STDERR: input.scriptfilter] 11:55:15 workflow.py:1695 DEBUG    loading cached data: /Users/joshthompson/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.danielecook.gist/__workflow_latest_version.cpickle
.
11:55:15 workflow.py:2061 DEBUG    ---------- gist (0.8.0) ----------
11:55:15 workflow.py:1468 DEBUG    reading settings from /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/settings.json
11:55:15 workflow.py:2343 DEBUG    update check not due
11:55:15 workflow.py:2461 DEBUG    got password : com.danielecook.gist:GitHub-gist-alfred-token
11:55:15 workflow.py:1585 DEBUG    data `last_update` stored as `cpickle`
11:55:15 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/last_update.cpickle
11:55:15 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:15 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:15 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:15 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:15 workflow.py:1585 DEBUG    data `n_starred` stored as `cpickle`
11:55:15 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_starred.cpickle
11:55:15 workflow.py:1585 DEBUG    data `n_forked` stored as `cpickle`
11:55:15 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_forked.cpickle
11:55:15 workflow.py:1585 DEBUG    data `n_public` stored as `cpickle`
11:55:15 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_public.cpickle
11:55:15 workflow.py:1585 DEBUG    data `n_private` stored as `cpickle`
11:55:15 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_private.cpickle
11:55:15 workflow.py:1585 DEBUG    data `tag_counts` stored as `cpickle`
11:55:15 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/tag_counts.cpickle
11:55:15 workflow.py:1585 DEBUG    data `language_counts` stored as `cpickle`
11:55:15 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/language_counts.cpickle
11:55:15 workflow.py:2254 DEBUG    set last run version: 0.8.0
11:55:15 workflow.py:2103 DEBUG    ---------- finished in 0.084s ----------
[2019-07-18 11:55:16][STDERR: input.scriptfilter] 11:55:16 workflow.py:1695 DEBUG    loading cached data: /Users/joshthompson/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.danielecook.gist/__workflow_latest_version.cpickle
.
11:55:16 workflow.py:2061 DEBUG    ---------- gist (0.8.0) ----------
11:55:16 workflow.py:1468 DEBUG    reading settings from /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/settings.json
11:55:16 workflow.py:2343 DEBUG    update check not due
11:55:16 workflow.py:2461 DEBUG    got password : com.danielecook.gist:GitHub-gist-alfred-token
11:55:16 workflow.py:1585 DEBUG    data `last_update` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/last_update.cpickle
11:55:16 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:16 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_starred` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_starred.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_forked` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_forked.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_public` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_public.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_private` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_private.cpickle
11:55:16 workflow.py:1585 DEBUG    data `tag_counts` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/tag_counts.cpickle
11:55:16 workflow.py:1585 DEBUG    data `language_counts` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/language_counts.cpickle
11:55:16 workflow.py:2254 DEBUG    set last run version: 0.8.0
11:55:16 workflow.py:2103 DEBUG    ---------- finished in 0.072s ----------
[2019-07-18 11:55:16][STDERR: input.scriptfilter] 11:55:16 workflow.py:1695 DEBUG    loading cached data: /Users/joshthompson/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.danielecook.gist/__workflow_latest_version.cpickle
.
11:55:16 workflow.py:2061 DEBUG    ---------- gist (0.8.0) ----------
11:55:16 workflow.py:1468 DEBUG    reading settings from /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/settings.json
11:55:16 workflow.py:2343 DEBUG    update check not due
11:55:16 workflow.py:2461 DEBUG    got password : com.danielecook.gist:GitHub-gist-alfred-token
11:55:16 workflow.py:1585 DEBUG    data `last_update` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/last_update.cpickle
11:55:16 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:16 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_starred` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_starred.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_forked` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_forked.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_public` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_public.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_private` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_private.cpickle
11:55:16 workflow.py:1585 DEBUG    data `tag_counts` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/tag_counts.cpickle
11:55:16 workflow.py:1585 DEBUG    data `language_counts` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/language_counts.cpickle
11:55:16 workflow.py:2254 DEBUG    set last run version: 0.8.0
11:55:16 workflow.py:2103 DEBUG    ---------- finished in 0.086s ----------
[2019-07-18 11:55:16][STDERR: input.scriptfilter] 11:55:16 workflow.py:1695 DEBUG    loading cached data: /Users/joshthompson/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.danielecook.gist/__workflow_latest_version.cpickle
.
11:55:16 workflow.py:2061 DEBUG    ---------- gist (0.8.0) ----------
11:55:16 workflow.py:1468 DEBUG    reading settings from /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/settings.json
11:55:16 workflow.py:2343 DEBUG    update check not due
11:55:16 workflow.py:2461 DEBUG    got password : com.danielecook.gist:GitHub-gist-alfred-token
11:55:16 workflow.py:1585 DEBUG    data `last_update` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/last_update.cpickle
11:55:16 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:16 workflow.py:1585 DEBUG    data `gists` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/gists.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_starred` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_starred.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_forked` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_forked.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_public` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_public.cpickle
11:55:16 workflow.py:1585 DEBUG    data `n_private` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/n_private.cpickle
11:55:16 workflow.py:1585 DEBUG    data `tag_counts` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/tag_counts.cpickle
11:55:16 workflow.py:1585 DEBUG    data `language_counts` stored as `cpickle`
11:55:16 workflow.py:1600 DEBUG    stored data loaded: /Users/joshthompson/Library/Application Support/Alfred 3/Workflow Data/com.danielecook.gist/language_counts.cpickle
11:55:16 workflow.py:2254 DEBUG    set last run version: 0.8.0
11:55:16 workflow.py:2103 DEBUG    ---------- finished in 0.087s ----------

I'll keep fiddling with this, but wanted to log the general problem in case someone else is having this problem.

I last updated the gists three days ago.

If there's other debug info I can provide, please let me know!

Update: This might be a github issue. https://www.githubstatus.com/ is showing degraded performance for API requests, and even though the gists section says ✔️, they are 503'ing and timing out

timeouts

Even trying to make/update this PR is running into lots of errors, per the degraded performance flag.

@danielecook
Copy link
Owner

I’ve got a pretty busy week but I’ll try to figure out what’s going on before the end of next week. In the meantime if you figure this out please let me know!

You might be able to downgrade in the meantime.

@josh-works
Copy link
Author

josh-works commented Jul 19, 2019

Hey @danielecook thanks for the quick response! No rush looking into this, of course!

I tried downgrading, and am still getting the same behavior.

A useful bit of information to add is the "open gist url" works just fine on gists that are not marked as too long to copy to clipboard.

I'm trying to open both of these, but only the second one (without the x, that's not "too long to paste to clipboard") actually opens the gist:

opening both

I'll keep digging, but wanted to log that finding.

@thespacedoctor
Copy link

Hi @danielecook , the issue is here I think:

https://github.com/danielecook/gist-alfred/blob/master/gist.py#L165

switching to valid=True solved it for me

@feifeigood
Copy link

@thespacedoctor , thanks for your share, that works for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants