johnthepink Posted November 30, 2020 Author Share Posted November 30, 2020 @Tee Elemthanks for the report. I think I have reproduced your issue and I will try to take a look soon. What version of Ruby are you running? To find out open the Terminal app, type: ruby -v and press enter. Link to comment
Tee Elem Posted November 30, 2020 Share Posted November 30, 2020 Thanks John! I get ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20] Link to comment
johnthepink Posted December 13, 2020 Author Share Posted December 13, 2020 @Tee Elem sorry for the delay. I just got around to taking a look. I have uploaded a new version of the workflow to Packal (2.1.6) which should address the issue you were seeing. https://www.packal.org/workflow/basecamp Let me know if that fixes it for you! Details about the fix can be found here: https://github.com/johnthepink/alfred2-basecamp/pull/12 Link to comment
Tee Elem Posted December 24, 2020 Share Posted December 24, 2020 That did it John! Thanks very much for your help with this. Link to comment
Matt D Posted January 5, 2021 Share Posted January 5, 2021 Hmmm, I can't seem to get this working. I've double checked my setup and I believe it's correct, but it's not returning any results. This is all I see in the debugger. Any ideas? [14:13:29.229] Basecamp[Script Filter] Queuing argument 'c' [14:13:29.333] Basecamp[Script Filter] Queuing argument 'ch' [14:13:29.443] Basecamp[Script Filter] Queuing argument 'chk' [14:13:29.469] Basecamp[Script Filter] Script with argv '(null)' finished [14:13:29.470] Basecamp[Script Filter] <?xml version="1.0"?><items/> [14:13:29.683] Basecamp[Script Filter] Script with argv '(null)' finished [14:13:29.698] Basecamp[Script Filter] <?xml version="1.0"?><items/> Link to comment
johnthepink Posted January 5, 2021 Author Share Posted January 5, 2021 Don't see any errors there. It looks like possibly it worked but didn't find anything that matched "chk"? You may also want to try clearing cache by starting you command with a "!". Like: "bc !chk" Matt D 1 Link to comment
Matt D Posted January 5, 2021 Share Posted January 5, 2021 Ah, that did it! Clearing the cache worked. Thank you! Link to comment
Matt D Posted January 20, 2021 Share Posted January 20, 2021 Hey @johnthepink, for some reason started to get the below error when running this today. E, [2021-01-20 15:35:05 #97525] ERROR -- me.johnpinkerton.alfred2-basecamp: A fatal error has occurred. You may seek help in the Alfred supporting site, forum or raise an issue in the bug tracking site. #<TypeError: no implicit conversion of Hash into Array> ./main.rb:47:in `block in get_project_json' ./main.rb:45:in `loop' ./main.rb:45:in `get_project_json' ./main.rb:71:in `block in load_projects' ./main.rb:70:in `map' ./main.rb:70:in `load_projects' ./main.rb:125:in `block in <main>' /Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.25D9EEEB-06AF-4775-A4C8-2B8D2D12E1B3/bundle/ruby/2.6.0/gems/alfred-workflow-1.8.0/lib/alfred.rb:29:in `with_friendly_error' ./main.rb:12:in `<main>' Link to comment
johnthepink Posted January 20, 2021 Author Share Posted January 20, 2021 Seems like it is having trouble parsing the response from Basecamp's server. Maybe try getting a new token and ensuring that the basecamp ids you specified are correct and/or still active? Link to comment
Matt D Posted January 22, 2021 Share Posted January 22, 2021 That did it. Thanks @johnthepink! I wonder what caused it to go bad? Link to comment
johnthepink Posted January 22, 2021 Author Share Posted January 22, 2021 I believe the Basecamp token does expire after a bit, I don't remember exactly how long. There may be a way to refresh that token automatically, or provide some better feedback about what is happening in the future. Link to comment
tombarys Posted October 22, 2021 Share Posted October 22, 2021 Hi, this is great workflow! Is there a way to search through all Basecamp? (like „Find“ in the BC app?). Thanks Link to comment
johnthepink Posted October 25, 2021 Author Share Posted October 25, 2021 @tombarys good question! I don't think they provide an API endpoint for that: https://github.com/basecamp/bc3-api#api-endpoints. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now