alfred-redmine icon indicating copy to clipboard operation
alfred-redmine copied to clipboard

Error: 401 Unauthorized

Open informatikTirol opened this issue 7 years ago • 5 comments

Hi, i was able to login, but then i get "Error: 401 Unauthorized"

Here ist the log: [redmine] 2017/06/20 08:12:42 GETing from URL: https://myurl/issues.json?limit=100&watcher_id=me [redmine] 2017/06/20 08:12:42 GETing from URL: https://myurl/users/current.json [redmine] 2017/06/20 08:12:42 using api key: myapikey [redmine] 2017/06/20 08:12:42 GETing from URL: https://myurl/issue_statuses.json [redmine] 2017/06/20 08:12:42 using api key: myapikey [redmine] 2017/06/20 08:12:42 using api key: myapikey [redmine] 2017/06/20 08:12:42 GETing from URL: https://myurl/projects.json?limit=100 [redmine] 2017/06/20 08:12:42 using api key: myapikey [redmine] 2017/06/20 08:12:42 GETing from URL: https://myurl/time_entries.json?limit=100&spent_on=%3E%3C2017-06-13%7C2017-06-20&user_id=me [redmine] 2017/06/20 08:12:42 using api key: myapikey 2017/06/20 08:12:42 Got issue statuses 2017/06/20 08:12:42 Got users [alfred] 2017/06/20 08:12:42 Skipping disabled command 'login' [alfred] 2017/06/20 08:12:42 Error: 401 Unauthorized

With IOS Apps like RemineMgr, which is using the same api key, it is working ok.. I have Redmine 3.3.2.stable and Alfred 3 running.. THX

informatikTirol avatar Jun 20 '17 06:06 informatikTirol

Is there some part of the site your account doesn't have access to, or maybe a feature that's not turned on (like time entries)? The workflow periodically updates its cache by downloading the set of issue statuses, your user data, the projects list, and your time entries. From the log it looks like it got the issue statuses and user data, but then got a 401 for either the projects or time entries.

I can make the workflow more robust regarding failed requests, but it'd be nice to know why they're failing. :)

jason0x43 avatar Jun 20 '17 13:06 jason0x43

I have an admin account, hence i have nonconstraining access.
I also tried with a limited user account, didn' work either. I may give you access to my redmine installation with a temporary use if you like, just send me a private mail...

informatikTirol avatar Jun 20 '17 14:06 informatikTirol

and in some projects time entries are disabled... I have 144 projects in redmine, every project uses a subset of the features.. And my redmine installation has the Full Stack Plugins Bundle form www.redmineup.com installed.

informatikTirol avatar Jun 21 '17 03:06 informatikTirol

That might be helpful, or if you know of a demo server somewhere with REST API access (Redmine's own demo server doesn't appear to have that enabled). I currently only have my own organization's Redmine account to test against, and things seem to be working there. I'll at least push out an update that handles 401's better, though.

jason0x43 avatar Jun 29 '17 17:06 jason0x43

send me a message to ..., then i will send you login credentials

informatikTirol avatar Jul 03 '17 07:07 informatikTirol