johnthepink Posted March 27, 2016 Author Share Posted March 27, 2016 Davduf, Are you still getting the same error? #<URI::InvalidURIError: bad URI(is not URI?): https://basecamp.com/[dufresne@davduf.net]/api/v1/projects.json> That makes me think it's a problem with your settings. Your email with brackets shouldn't end up in the URL. That should actually be a basecamp company id. Do you mind pasting what you have as the settings with your password xxxxxx-ed out? Link to comment
Davduf Posted March 27, 2016 Share Posted March 27, 2016 Hère is my new log file E, [2016-03-27 12:20:45 #1300] 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. #<JSON::ParserError: 757: unexpected token at '<!DOCTYPE html> <html> <!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]--> <!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]--> <!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]--> <head> <meta charset="utf-8"> <link rel="dns-prefetch" href="https://3.basecamp-static.com/bcxhq"> <link rel="dns-prefetch" href="https://launchpad.37signals.com"> <link rel="dns-prefetch" href="https://billing.37signals.com"> <link rel="preconnect" href="https://3.basecamp-static.com/bcxhq"> <link rel="preconnect" href="https://dash.37signals.com"> <link rel="preconnect" href="https://in.getclicky.com"> <link type="text/css" rel="stylesheet" href="/assets/main-1279809b3930aedba0099e38912b62f84e71dbe6e0d199e23bea3955c674d9db.css"> <script type="text/javascript" src="/assets/main-fda5cbb22e5de96aaa7a96ff2fac8301278eeaf82e77aa700caac93334b1d5c5.js"></script> <link rel="apple-touch-icon" href="/favicon-ios.png"/> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" sizes="256x256" /> <link rel="icon" sizes="192x192" href="/assets/general/basecamp-favicon-192-2a193f66e2797ce3abb0a944969fe2fa4db010c13613bd3d400208b3e62b6862.png" /> <link type="text/plain" rel="author" href="/humans.txt" /> <title>Whoops, that page isn’t here!</title> <meta name="description" content="Trusted by millions, Basecamp is the leading web-based project management and collaboration tool. To-dos, files, messages, schedules, and milestones." /> <meta name="theme-color" content="#0066cc"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" id="viewport-iphone5" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <script src="https://apis.google.com/js/platform.js?onload=setupGoogleSignIn"async></script> <meta name="google-signin-client_id" content="341981671303-g568phroodi4guli3inqb7gnsvbvqnlk.apps.googleusercontent.com" /> <meta name="google-signin-scope" content="profile email openid" /> <meta name="d9d68575850a468800f9376d0cfab27f5d898ba3" content="dd17d033afbe4e1a90863d89a8b60e1cc0f912e7" /> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Organization", "name": "Basecamp", "url": "https://basecamp.com", "logo": "https://help.basecamp.com/images/logo-bc.png", "sameAs": [ "https://twitter.com/basecamp", "https://www.linkedin.com/company/37signals", "https://www.youtube.com/user/37signals", "https://instagram.com/basecamp/", "https://www.facebook.com/37signals", "https://plus.google.com/+basecamp" ] } </script> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://basecamp.com", "name": "Basecamp", "potentialAction": { "@type": "SearchAction", "target": "https://basecamp.com/help/search?q={search_term_string}", "query-input": "required name=search_term_string" } } </script> <script type="text/javascript">var clicky_site_ids=clicky_site_ids||[];clicky_site_ids.push(66551338);(function(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src="//static.getclicky.com/js?forceCacheBuster=true";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e)})()</script> <noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/66551338ns.gif" /></p></noscript> </head> <body class="sheet-layout "> <nav class="global-nav" role="navigation" id="top"> <a class="global-nav__logo" href="/"><span>Basecamp</span></a> <div class="global-nav__links"> <ul class="global-nav__list global-nav__list--small"> <li class="global-nav__list-item"><a href="/3/features">Features</a></li> <li class="global-nav__list-item"><a href="/3/pricing">Pricing</a></li> <li class="global-nav__list-item"><a href="/support">Support</a></li> </ul> <ul class="global-nav__list global-nav__list--medium"> <li class="global-nav__list-item"><a href="/3/features">Features</a></li> <li class="global-nav__list-item"><a href="/3/pricing">Pricing</a></li> <li class="global-nav__list-item"><a href="/3/clientside">The Clientside</a></li> <li class="global-nav__list-item"><a href="/about">About</a></li> <li class="global-nav__list-item"><a href="/support">Support</a></li> </ul> <ul class="global-nav__list global-nav__list--large"> <li class="global-nav__list-item"><a href="/3/features">Features</a></li> <li class="global-nav__list-item"><a href="/3/pricing">Pricing</a></li> <li class="global-nav__list-item"><a href="/3/clientside">Using Basecamp with Clients</a></li> <li class="global-nav__list-item"><a href="/about">About us</a></li> <li class="global-nav__list-item"><a href="/support">Support</a></li> </ul> <ul class="global-nav__list global-nav__list--signin"> <li class="global-nav__list-item"><a class="button button-signin" href="/signup">Sign up</a></li> <li class="global-nav__list-item global-nav__signin"><a class="button button-signin" href="https://3.basecamp.com/hello">Login</a></li> </ul> </div> </nav> <main class="sheet-layout__wrapper"> <div class="sheet-layout__content sheet--with-shadow"> <p><figure class="centered"> <img src="/assets/general/warning-38e5a8a75a09f9858001b45d0a11468edfec284aea8bb2533466ce23fcb8fa3e.jpg" class="image-size-17" alt="That page isn’t here."> </figure></p> <h1>Sorry, that page isn’t here.</h1> <p>You didn’t do anything wrong. We may have moved the page you’re looking for somewhere else.</p> <h4>Did you follow a link from here?</h4> <p>If you reached this page from another part of basecamp.com, <a href="/support">please let us know so we can correct our mistake</a>.</p> <h4>Did you follow a link from another site?</h4> <p>Links from other sites can sometimes be outdated or misspelled. <a href="/support">Let us know</a> where you came from and we can try to contact the other site in order to fix the problem.</p> <h4>Did you type the URL?</h4> <p>You may have typed the address (URL) incorrectly. Check to make sure you’ve got the exact right spelling, capitalization, etc. You can view our footer below for links to our most popular content.</p> </div> </main> <footer class="footer"> <div class="footer__content"> <hr> <p> <span class="footer__heading">A bit more from Basecamp:</span> <span class="footer__links"> our <a href="/about">Company</a>, <a href="https://thedistance.com/">Podcast</a>, <a href="https://signalvnoise.com/">Blog</a>,and <a href="/newsletter">Newsletter</a>. </span> <br> <span class="footer__heading">Keep in touch:</span> <span class="footer__links"> <a href="mailto:email@basecamp.com">Email us</a> or find us on <a href="https://twitter.com/basecamp">Twitter</a>, <a href="https://www.facebook.com/37signals">Facebook</a>,and <a href="https://instagram.com/basecamp">Instagram</a>. </span> <br> <span class="footer__heading">Fine print:</span> <span class="footer__links"> <a href="/about/policies">Policies and Terms of Service</a>, <a href="/3/uptime">Uptime</a>, <a href="https://status.basecamp.com/">SystemStatus</a>. </span> </p> <p> Copyright ©1999-2016 Basecamp. All rights reserved. <br>Enjoy the rest of your <span data-day></span>! </p> </div> </footer> </body> </html> Link to comment
johnthepink Posted March 27, 2016 Author Share Posted March 27, 2016 Do you mind pasting what you have as the settings with your password xxxxxx-ed out? Link to comment
johnthepink Posted April 13, 2016 Author Share Posted April 13, 2016 Basecamp 3 Support! Hey everyone. I've added support for Basecamp 3 to the workflow (Basecamp 2 support still works). Whether you are using Basecamp 3, or Basecamp 2, if you update there is now a different process for authenticating. Visit this site to retrieve your Basecamp token Right click on the “bc” Script Filter and click “Configure”. Fill out your Basecamp information. Note that if you belong to more than one organization, you can enter them separated by commas. Organization ids can be found in the Basecamp URL: https://basecamp.com/xxxxxxx. The x’s are the ID you want. Each organization has it’s own id. Have fun. This will cache your results, so if you need to refresh start your query with: ! Link to comment
johnthepink Posted April 13, 2016 Author Share Posted April 13, 2016 Just added a new build with a quick fix for token expiration. I'm trying to think of a better way to handle this in the future. Link to comment
antonio Posted May 2, 2016 Share Posted May 2, 2016 (edited) Hello, Thanks for the workflow, I would love to use it In the BC configurtion, I don't have any email address field or username field. This is what I have : basecamp_token="" # id or id,id,id basecamp2_company_ids="" # id or id,id,id basecamp3_company_ids="" /usr/bin/ruby ./main.rb "{query}" "$basecamp_token" "$basecamp2_company_ids" "$basecamp3_company_ids" I use basecamp 3. Which field do I have to fill ? I tried to fill everything and it doesn't work. I tried to fill everything except the basecamp2_company and basecamp2_id and it doesn't work either. Edited May 3, 2016 by antonio Link to comment
johnthepink Posted May 3, 2016 Author Share Posted May 3, 2016 antonio, I have recently updated the workflow to support Basecamp 3, which requires you to obtain a token to authorize your account. I posted the steps earlier in this thread, but you can also follow here https://github.com/johnthepink/alfred2-basecamp If that doesn't help, could you please post the error message alfred gives you? Link to comment
antonio Posted May 3, 2016 Share Posted May 3, 2016 (edited) Hello John, Yes, I pasted the token and the company ID, this is the debug log I have : Starting debug for 'Basecamp' [ERROR: alfred.workflow.input.scriptfilter] Code 255: <items><item arg='Fatal Error!' uid='Rescue Feedback' valid='yes'><title>Fatal Error!</title><subtitle>Check the log file below for extra debug info.</subtitle><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item><item arg='/Users/antonio/Library/Logs/Alfred-Workflow.log' autocomplete='Alfred-Workflow.log' type='file' uid='/Users/antonio/Library/Logs/Alfred-Workflow.log' valid='yes'><title>Alfred-Workflow.log</title><subtitle>/Users/antonio/Library/Logs/Alfred-Workflow.log</subtitle><icon type='fileicon'>/Users/antonio/Library/Logs/Alfred-Workflow.log</icon></item></items> [ERROR: alfred.workflow.input.scriptfilter] Code 255: <items><item arg='Fatal Error!' uid='Rescue Feedback' valid='yes'><title>Fatal Error!</title><subtitle>Check the log file below for extra debug info.</subtitle><icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns</icon></item><item arg='/Users/antonio/Library/Logs/Alfred-Workflow.log' autocomplete='Alfred-Workflow.log' type='file' uid='/Users/antonio/Library/Logs/Alfred-Workflow.log' valid='yes'><title>Alfred-Workflow.log</title><subtitle>/Users/antonio/Library/Logs/Alfred-Workflow.log</subtitle><icon type='fileicon'>/Users/antonio/Library/Logs/Alfred-Workflow.log</icon></item></items> I completed all the fields indicated by the arrows in this image http://i.imgur.com/HOvIBzT.png Edited May 3, 2016 by antonio Link to comment
johnthepink Posted May 7, 2016 Author Share Posted May 7, 2016 Thanks. What does the actual log say? In /Users/antonio/Library/Logs/Alfred-Workflow.log Link to comment
psicologo Posted February 25, 2018 Share Posted February 25, 2018 I git this error, can anyone offer guidance on this? [2018-02-25 01:52:36][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- alfred (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from ./main.rb:8:in `<main>' [2018-02-25 01:52:36][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- alfred (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from ./main.rb:8:in `<main>' [2018-02-25 01:52:36][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- alfred (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from ./main.rb:8:in `<main>' Link to comment
psicologo Posted February 2, 2019 Share Posted February 2, 2019 (edited) I think I've set it up correctly, but when I type "bc" no projects pop up. Starting to type the name of the project doesn't show the project. In the screenshot on the GitHub website I noticed you wrote "WO" after "bc" to get the projects show. Any tips? I'd appreciate help. What I've tried: 1. the address i received is https://3.basecamp.com/XXXXXX/ I removed the "3" 2. I tried this, no errors showed @grantholle Try putting your variables in quotes like this: basecamp_username="xxxxxx". If that doesn't work, try this for me: open Alfred preferences click on the Basecamp workflow click the little bug in the top right corner to bring up the debug panel run "bc " see if it puts out any errors and post them here Edited February 2, 2019 by psicologo Link to comment
psicologo Posted February 2, 2019 Share Posted February 2, 2019 Nevermind, I do get an error as soon as I type anything after "bc" [2019-02-01 20:33:15][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- alfred (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from ./main.rb:8:in `<main>' Link to comment
mhanes Posted February 6, 2019 Share Posted February 6, 2019 On 2/1/2019 at 11:33 PM, psicologo said: Nevermind, I do get an error as soon as I type anything after "bc" [2019-02-01 20:33:15][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- alfred (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from ./main.rb:8:in `<main>' I encountered and resolved this problem as well. This error is regarding the version of Ruby installed on your Mac. To resolve it, I followed instructions on this page https://github.com/zhaocai/alfred2-keylue-workflow/issues/4 - installed Bundler (needed to do so with sudo) then ran bundle install --standalone. Then I refreshed the bc cache and voila, working great now. psicologo 1 Link to comment
psicologo Posted February 8, 2019 Share Posted February 8, 2019 On 2/6/2019 at 3:04 PM, mhanes said: I encountered and resolved this problem as well. This error is regarding the version of Ruby installed on your Mac. To resolve it, I followed instructions on this page https://github.com/zhaocai/alfred2-keylue-workflow/issues/4 - installed Bundler (needed to do so with sudo) then ran bundle install --standalone. Then I refreshed the bc cache and voila, working great now. Thank so much! Link to comment
psicologo Posted February 9, 2019 Share Posted February 9, 2019 On 2/6/2019 at 3:04 PM, mhanes said: I encountered and resolved this problem as well. This error is regarding the version of Ruby installed on your Mac. To resolve it, I followed instructions on this page https://github.com/zhaocai/alfred2-keylue-workflow/issues/4 - installed Bundler (needed to do so with sudo) then ran bundle install --standalone. Then I refreshed the bc cache and voila, working great now. Sorry to ask, but would you mind providing a bit more detail? https://github.com/zhaocai/alfred2-keylue-workflow/issues/4 I was able to install bundlr, but I'm not sure how to do step 1- open the workflow. For future Googlers, the steps read: * open the workflow in terminal * make sure you have `bundler` installed - http://bundler.io/ * in the workflow directory run `bundle install --standalone` which installs the `2.3.0` gems in `bundle/ruby/2.3.0`. * 💵 Link to comment
Ximizu Posted February 10, 2019 Share Posted February 10, 2019 On 2/9/2019 at 5:56 AM, psicologo said: Sorry to ask, but would you mind providing a bit more detail? https://github.com/zhaocai/alfred2-keylue-workflow/issues/4 I was able to install bundlr, but I'm not sure how to do step 1- open the workflow. For future Googlers, the steps read: * open the workflow in terminal * make sure you have `bundler` installed - http://bundler.io/ * in the workflow directory run `bundle install --standalone` which installs the `2.3.0` gems in `bundle/ruby/2.3.0`. * 💵 Same here, I was able to install bundler, but I didn't understand what does mean the steps 1 and 3 * open the workflow in terminal * in the workflow directory run `bundle install --standalone` which installs the `2.3.0` gems in `bundle/ruby/2.3.0`. So I'm still stuck Link to comment
deanishe Posted February 11, 2019 Share Posted February 11, 2019 On 2/10/2019 at 2:14 PM, Ximizu said: open the workflow in terminal Right-click on the workflow in Alfred Preferences and choose "Open in Terminal". On 2/10/2019 at 2:14 PM, Ximizu said: in the workflow directory run `bundle install --standalone` which installs the `2.3.0` gems in `bundle/ruby/2.3.0` If you did the above, Terminal should have opened a new window set to the workflow directory. Just enter bundle install --standalone and hit ↩. Ximizu and psicologo 2 Link to comment
jlogan Posted June 6, 2019 Share Posted June 6, 2019 I am wondering if this has been tested with Alfred 4. Trying to get this to work with no luck. Link to comment
mhanes Posted June 7, 2019 Share Posted June 7, 2019 It doesn't look like this has been tested with Alfred4 as I have not been able to get it working yet. Fingers crossed @johnthepink has a few minutes to spare to help troubleshoot this, it'd be super appreciated! Link to comment
johnthepink Posted June 9, 2019 Author Share Posted June 9, 2019 @mhanes @jlogan you are right, I have not tested this with Alfred 4. I will try to get some time soon to address. Link to comment
Zee Ali Posted April 25, 2020 Share Posted April 25, 2020 (edited) On 4/13/2016 at 2:07 AM, johnthepink said: Basecamp 3 Support! Hey everyone. I've added support for Basecamp 3 to the workflow (Basecamp 2 support still works). Whether you are using Basecamp 3, or Basecamp 2, if you update there is now a different process for authenticating. Visit this site to retrieve your Basecamp token Right click on the “bc” Script Filter and click “Configure”. Fill out your Basecamp information. Note that if you belong to more than one organization, you can enter them separated by commas. Organization ids can be found in the Basecamp URL: https://basecamp.com/xxxxxxx. The x’s are the ID you want. Each organization has it’s own id. Have fun. This will cache your results, so if you need to refresh start your query with: ! I would pay for a video on how to do this. Not a developer and having a hard time. This workflow would save me so much time. Can not find "Configure" and not sure where to post basecamp URL Edited April 25, 2020 by Zee Ali Link to comment
vitor Posted April 28, 2020 Share Posted April 28, 2020 On 4/25/2020 at 6:15 PM, Zee Ali said: Can not find "Configure" and not sure where to post basecamp URL Right click the bc node, and the first option is Configure Object… (alternatively, double click it). You’ll see the configuration sheet. On that darker box on the bottom, see that you have some lines that end in ="" (first, fourth, and seventh)? Between the "" is where you stick your information. Link to comment
johnthepink Posted July 14, 2020 Author Share Posted July 14, 2020 I just published version 2.1.2, which now supports returning more than 15 projects. I also confirmed it is working fine with Alfred 4. However, you may need to update a folder name depending on what is currently installed on your system. See this issue for the fix: https://github.com/johnthepink/alfred2-basecamp/issues/10 Link to comment
johnthepink Posted July 14, 2020 Author Share Posted July 14, 2020 Just published 2.1.5 which should fix errors relating to the folder names. Link to comment
Tee Elem Posted November 30, 2020 Share Posted November 30, 2020 I've installed the workflow, configured it with my token and org ID. I've done the bundle install standalone thing. I've got the right folder name for my version of Ruby. But when I type "bc ProjectName" in Alfred, nothing happens. Just "bc " shows me the workflow ("Open Basecamp Projects"). But adding any additional information stops the workflow and just bails out to searching the web for "bc ProjectName". When I debug, all I see is [23:24:01.419] Basecamp[Script Filter] Queuing argument 'S' [23:24:01.710] Basecamp[Script Filter] Script with argv '(null)' finished [23:24:01.710] Basecamp[Script Filter] <items/> Like for example if I start searching for a project that starts with "S". Any suggestions? Thanks! p.s. Alfred 4.2.1, Basecamp 3 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