Jump to content
johnthepink

Basecamp Workflow

Recommended Posts

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?

Share this post


Link to post

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" />
 
  <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",
  "sameAs": [
  ]
}
</script>
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "WebSite",
  "name": "Basecamp",
  "potentialAction": {
    "@type": "SearchAction",
    "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://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
      </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>

Share this post


Link to post

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.

 

  1. Visit this site to retrieve your Basecamp token
  2. Right click on the “bc” Script Filter and click “Configure”.
  3. 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.
  4. Have fun.

This will cache your results, so if you need to refresh start your query with: !

Share this post


Link to post

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 by antonio

Share this post


Link to post

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 by antonio

Share this post


Link to post

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>'

Share this post


Link to post

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:

 

  1. open Alfred preferences
  2. click on the Basecamp workflow
  3. click the little bug in the top right corner to bring up the debug panel
  4. run "bc "
  5. see if it puts out any errors and post them here
Edited by psicologo

Share this post


Link to post

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>'

 

Share this post


Link to post
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.

Share this post


Link to post
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!

Share this post


Link to post
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`.
* 💵

Share this post


Link to post
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

Share this post


Link to post
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 ↩.

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
×