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

Add some debugging options for 'when it doesn't work' #8

Open
wrtsprt opened this issue Apr 25, 2018 · 0 comments
Open

Add some debugging options for 'when it doesn't work' #8

wrtsprt opened this issue Apr 25, 2018 · 0 comments

Comments

@wrtsprt
Copy link

wrtsprt commented Apr 25, 2018

I added the URL correctly I think, and the access token (all scopes enabled) as well (adding quotes around it b/c it would crash otherwise), but I get a no-projects found. I am looking at the logs, but I can't really see what's happening.

[2018-04-25 07:15:43][STDERR: input.scriptfilter] 07:15:42 workflow.py:2247 DEBUG    ---------- GitLab (1.4.0) ----------
07:15:42 workflow.py:1657 DEBUG    reading settings from /Users/rap/Library/Application Support/Alfred 3/Workflow Data/com.lukewaite.alfred-gitlab/settings.json
07:15:42 workflow.py:2531 DEBUG    update check not due
07:15:42 workflow.py:2650 DEBUG    got password : com.lukewaite.alfred-gitlab:gitlab_api_key
07:15:42 workflow.py:1884 DEBUG    loading cached data: /Users/rap/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.lukewaite.alfred-gitlab/__workflow_update_status.cpickle
07:15:42 workflow.py:2461 DEBUG    update_data: {u'available': False}
07:15:42 background.py:188 DEBUG    [update] command cached: /Users/rap/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.lukewaite.alfred-gitlab/update.argcache
07:15:42 background.py:192 DEBUG    [update] passing job to background runner: [u'/usr/bin/python', '/Users/rap/Dropbox/apps-sync/alfred/Alfred.alfredpreferences/workflows/user.workflow.493FBFEB-5C36-4CFC-8595-F1E6FF888476/workflow/background.pyc', 'update']
07:15:43 workflow.py:2247 DEBUG    ---------- GitLab (1.4.0) ----------
07:15:43 background.py:197 DEBUG    [update] background job started
07:15:43 workflow.py:2440 DEBUG    set last run version: 1.4.0
07:15:43 workflow.py:2289 DEBUG    ---------- finished in 0.132s ----------

If the API returns error codes, maybe those could be shown to the user.

I noticed that adding the URL shows an Alfred error, though the log statements don't really tell my what's wrong:

[2018-04-25 07:29:04][ERROR: action.script] 07:29:04 workflow.py:2247 DEBUG    ---------- GitLab (1.4.0) ----------
07:29:04 workflow.py:1657 DEBUG    reading settings from /Users/rap/Library/Application Support/Alfred 3/Workflow Data/com.lukewaite.alfred-gitlab/settings.json
07:29:04 workflow.py:2531 DEBUG    update check not due
07:29:04 gitlab.py:40 INFO     Setting API URL to https://gitlab.yourcompanyhere.com/api/v4/projects
07:29:04 workflow.py:2440 DEBUG    set last run version: 1.4.0
07:29:04 workflow.py:2289 DEBUG    ---------- finished in 0.004s ----------
[2018-04-25 07:29:04][action.script] Processing output of 'output.notification' with arg ''

I even edited the code now to paste our URL into the script instead of the default one and I still don't get any projects.

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

1 participant