8000 Fix Asana exceptions when parsing non-existent Asana task IDs by jdpace · Pull Request #854 · github/github-services · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Fix Asana exceptions when parsing non-existent Asana task IDs#854

Merged
atmos merged 5 commits intomasterfrom
fixup-asana-ref-bug
May 14, 2014
Merged

Fix Asana exceptions when parsing non-existent Asana task IDs#854
atmos merged 5 commits intomasterfrom
fixup-asana-ref-bug

Conversation

@jdpace
Copy link
Contributor
@jdpace jdpace commented May 14, 2014

This fixes exceptions we're seeing when we parse references to non-existent Asana task IDs. Take the following commit message:

"Merge pull request #​42. Fixes Asana #​123456789."

When we try to post to the story 42 Asana has no idea what we're talking about and responds with a 400. Since this is a common scenario I've updated it to explicitly ignore 400 response codes.

For non-2xx status codes we were also trying to raise a configuration error with res.message which is undefined on Faraday::Response. I've updated that to try to pull the error message from the JSON body.

/cc @atmos @izuzak @kdaigle

atmos added a commit that referenced this pull request May 14, 2014
Fix Asana exceptions when parsing non-existent Asana task IDs
@atmos atmos merged commit 2fdc300 into master May 14, 2014
@atmos atmos deleted the fixup-asana-ref-bug branch May 14, 2014 20:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0