Comments (6)
I don't use this particular script, or fogbuz in general, but could you include some details of how you are trying to use the script, and what output (if any) you are getting? It might not post an error to campfire, so you'll have to check the log (depends on how you deployed).
Looking over the script now, it doesn't look like it's checking the response it gets back, so it might be failing silent. It also doesn't seem to output anything if it doesn't find a bug, so it's possible that if bug
conditional is evaluating to false.
from hubot-scripts.
Hi
Thanks for the reply,
i have dropped in a few msg.send processes and see that it looks like bug
is undefined, as is json.cases?.case but i am not sure where to go from
here to debug further. If you can give me a few more tips i am more than
willing to.
Thanks
Mark
On 4 Oct 2012, at 03:33, Josh Nichols [email protected] wrote:
I don't use this particular script, or fogbuz in general, but could you
include some details of how you are trying to use the script, and what
output (if any) you are getting? It might not post an error to campfire, so
you'll have to check the log (depends on how you deployed).
Looking over the script now, it doesn't look like it's checking the
response it gets back, so it might be failing silent. It also doesn't seem
to output anything if it doesn't find a bug, so it's possible that if
bugconditional is evaluating to false.
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/578#issuecomment-9128878.
from hubot-scripts.
I didn't get mine working until adding the environment variables to the hubot startup script. Make sure they're in there and it should work fine.
from hubot-scripts.
I had to change it up - I think FB has multiple API versions so perhaps the same changes will work for others. Replaced line 43 with:
>>
if 0 == parseInt(json.response.cases[0].$.count)
msg.send "I can't find that case"
else
bug = json.response.cases[0].case[0]
<<
if bug
from hubot-scripts.
Well that gives me more than before but it is giving a type Error, cannot read the property 'cases' of undefined
from hubot-scripts.
Adding some recent committers to fogbugz.coffee in case they've seen this or can help out /cc @jaysherby
from hubot-scripts.
Related Issues (20)
- Pinboard.coffee script HOT 1
- Connect to Jenkins via CAS HOT 1
- beerme.coffee HOT 1
- how to send data in http Get request HOT 1
- ASCII script is broken HOT 2
- Images not found HOT 3
- Jenkins says: Error: connect EINVAL HOT 1
- News.coffee seems to deprecated
- isup: ERROR SyntaxError: Unexpected end of JSON input HOT 4
- haskell.coffee services is down
- Redis.brain responds differently with local redis server compared to heroku redis cloud. HOT 1
- .
- howdoi.coffee HOT 2
- How do i send default reply to client when confidence is less than 90
- hubot-weather-underground cannot read 'display_location' property
- Nick Presta wrote a duplicate of slothme HOT 1
- Sandbox is escapable
- change points.coffee
- Getting ERROR TypeError: message.replace is not a function on integration hubot-hipchat with jenkins
- Any open script to Hubot and Ansible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubot-scripts.