Jump to content

Recommended Posts

Hey @Corina and everyone else,

 

I finally got around to look into the issue – and hopefully fix it with release 1.0.3. Please give it another try.

 

Attention Confluence Cloud users: Please make sure to use an api token as password (more info: https://confluence.atlassian.com/cloud/api-tokens-938839638.html), as passwords won't work anymore.

 

Also make sure to login through a browser in case you have an authentication error. Confluence may display a CAPTCHA.

 

Let me know it that helped.

 

Cheers,

-Stefan

Share this post


Link to post

Hi @Stefan Kleineikenscheidt

 

I couldn't get the workflow running with version 1.0.3.

 

I checked that I use the proper confluence_baseurl and confluence_username. And I use the api token for the confluence_password. Logout/Login didn't help either (there was no CAPTCHA). Any ideas?

 

Below the logfiles:

Starting debug for 'Confluence Quick Search v1.0.3'

[2018-10-11 16:21:16][ERROR: input.scriptfilter] Code 1: 16:21:15 workflow.py:1884 DEBUG    loading cached data: /Users/<username>/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.k15t.labs.alfredapp.confluence.quicksearch/__workflow_update_status.cpickle
16:21:15 workflow.py:2461 DEBUG    update_data: {u'available': False}
16:21:15 workflow.py:2247 DEBUG    ---------- Confluence Quick Search v1.0.3 (1.0.3) ----------
16:21:15 workflow.py:1657 DEBUG    reading settings from /Users/<username>/Library/Application Support/Alfred 3/Workflow Data/com.k15t.labs.alfredapp.confluence.quicksearch/settings.json
16:21:15 workflow.py:2531 DEBUG    update check not due
16:21:15 workflow.py:2650 DEBUG    got password : com.k15t.labs.alfredapp.confluence.quicksearch:confluence_password
16:21:15 alfred-confluence.py:59 INFO     ~~ Checking config..
16:21:15 alfred-confluence.py:60 INFO     ~~   baseUrl: <mybaseurl>
16:21:15 alfred-confluence.py:61 INFO     ~~   username: <myusername>
16:21:15 alfred-confluence.py:62 INFO     ~~   password: <mytoken>
16:21:16 alfred-confluence.py:67 INFO     ~~   Status code: 500
16:21:16 alfred-confluence.py:68 INFO     ~~   ... Failed.
16:21:16 workflow.py:2266 ERROR    HTTP Error 500: Internal Server Error
Traceback (most recent call last):
  File "/Users/<username>/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.<somedigits>/lib/workflow/workflow.py", line 2259, in run
    func(self)
  File "alfred-confluence.py", line 128, in main
    r.raise_for_status()
  File "/Users/<username>/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.<somedigits>/lib/workflow/web.py", line 405, in raise_for_status
    raise self.error
HTTPError: HTTP Error 500: Internal Server Error
16:21:16 workflow.py:2289 DEBUG    ---------- finished in 0.389s ----------
[2018-10-11 16:21:16][WARNING: input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 64.)'. Row 2, Col 165: 'XML declaration allowed only at the start of the document' in XML:
<?xml version="1.0" encoding="utf-8"?>
<items><item valid="no"><title>Authentication failed.</title><subtitle>CAPTCHA issues? Try to logout and login again in your browser.</subtitle></item></items><?xml version="1.0" encoding="utf-8"?>
<items><item valid="no"><title>Error in workflow 'Confluence Quick Search v1.0.3'</title><subtitle>HTTP Error 500: Internal Server Error</subtitle><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item></items>

 

Share this post


Link to post

Hello!

New user of Alfred, I'm trying to use your workflow. But I got an error: "No confluence base URL set" although I did put a correct one following your how to guide.

Here's the debug log:

[2018-12-31 14:46:41][ERROR: input.scriptfilter] Code 1: 14:46:40 workflow.py:1884 DEBUG    loading cached data: /Users/tbienvenot/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.k15t.labs.alfredapp.confluence.quicksearch/__workflow_update_status.cpickle
14:46:40 workflow.py:2461 DEBUG    update_data: {u'available': False, u'version': u'1.0.3', u'download_url': u'https://github.com/skleinei/alfred-confluence/releases/download/1.0.3/alfred-confluence.alfredworkflow'}
14:46:40 workflow.py:2247 DEBUG    ---------- Confluence Quick Search v1.0.3 (1.0.3) ----------
14:46:40 workflow.py:1657 DEBUG    reading settings from /Users/tbienvenot/Library/Application Support/Alfred 3/Workflow Data/com.k15t.labs.alfredapp.confluence.quicksearch/settings.json
14:46:40 workflow.py:2531 DEBUG    update check not due
14:46:40 alfred-confluence.py:59 INFO     ~~ Checking config..
14:46:40 workflow.py:2266 ERROR    cannot concatenate 'str' and 'int' objects
Traceback (most recent call last):
  File "/Users/tbienvenot/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.64DBA4D3-917A-40F6-A301-ACAFBE8F79E2/lib/workflow/workflow.py", line 2259, in run
    func(self)
  File "alfred-confluence.py", line 119, in main
    checkConfig(config)
  File "alfred-confluence.py", line 60, in checkConfig
    log.info('~~   baseUrl: ' + config['baseUrl'])
TypeError: cannot concatenate 'str' and 'int' objects
14:46:40 workflow.py:2289 DEBUG    ---------- finished in 0.062s ----------
[2018-12-31 14:46:41][WARNING: input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 64.)'. Row 2, Col 162: 'XML declaration allowed only at the start of the document' in XML:
<?xml version="1.0" encoding="utf-8"?>
<items><item valid="no"><title>No Confluence Base URL set.</title><subtitle>Type confluence_baseurl &lt;baseUrl&gt; and hit enter.</subtitle></item></items><?xml version="1.0" encoding="utf-8"?>
<items><item valid="no"><title>No Confluence Base URL set.</title><subtitle>Type confluence_baseurl &lt;baseUrl&gt; and hit enter.</subtitle></item><item valid="no"><title>No Confluence Username set. Please run confluence_username</title><subtitle>Type confluence_username &lt;username&gt; and hit enter.</subtitle></item></items><?xml version="1.0" encoding="utf-8"?>
<items><item valid="no"><title>No Confluence Base URL set.</title><subtitle>Type confluence_baseurl &lt;baseUrl&gt; and hit enter.</subtitle></item><item valid="no"><title>No Confluence Username set. Please run confluence_username</title><subtitle>Type confluence_username &lt;username&gt; and hit enter.</subtitle></item><item valid="no"><title>No Confluence Password set. Please run confluence_password</title><subtitle>Type confluence_password &lt;password&gt; and hit enter.</subtitle></item></items><?xml version="1.0" encoding="utf-8"?>
<items><item valid="no"><title>Error in workflow 'Confluence Quick Search v1.0.3'</title><subtitle>cannot concatenate 'str' and 'int' objects</subtitle><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item></items>
[2018-12-31 14:46:41][ERROR: input.scriptfilter] Code 1: 14:46:41 workflow.py:1884 DEBUG    loading cached data: /Users/tbienvenot/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.k15t.labs.alfredapp.confluence.quicksearch/__workflow_update_status.cpickle
14:46:41 workflow.py:2461 DEBUG    update_data: {u'available': False, u'version': u'1.0.3', u'download_url': u'https://github.com/skleinei/alfred-confluence/releases/download/1.0.3/alfred-confluence.alfredworkflow'}
14:46:41 workflow.py:2247 DEBUG    ---------- Confluence Quick Search v1.0.3 (1.0.3) ----------
14:46:41 workflow.py:1657 DEBUG    reading settings from /Users/tbienvenot/Library/Application Support/Alfred 3/Workflow Data/com.k15t.labs.alfredapp.confluence.quicksearch/settings.json
14:46:41 workflow.py:2531 DEBUG    update check not due
14:46:41 alfred-confluence.py:59 INFO     ~~ Checking config..
14:46:41 workflow.py:2266 ERROR    cannot concatenate 'str' and 'int' objects
Traceback (most recent call last):
  File "/Users/tbienvenot/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.64DBA4D3-917A-40F6-A301-ACAFBE8F79E2/lib/workflow/workflow.py", line 2259, in run
    func(self)
  File "alfred-confluence.py", line 119, in main
    checkConfig(config)
  File "alfred-confluence.py", line 60, in checkConfig
    log.info('~~   baseUrl: ' + config['baseUrl'])
TypeError: cannot concatenate 'str' and 'int' objects
14:46:41 workflow.py:2289 DEBUG    ---------- finished in 0.042s ----------

Thanks for your help!

 

Tom

Share this post


Link to post

Hi there!
Anybody else gets error message: Error in workflow  `Confluence Quick Serach v1.0.3`

Any hint what's wrong? I get the error message since yesterday 17 of january.

 

Best, 

Corina

Share this post


Link to post

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
×