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
merged 5 commits into from
May 14, 2014

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy