braintree / braintree_java

Braintree Java library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
158 stars 99 forks source link

HTTP 406 on find/delete customer in Sandbox #4

Closed agentgt closed 12 years ago

agentgt commented 12 years ago

I'm not sure if this is just an issue with the sandbox but periodically when our integration tests run we get this exception: com.braintreegateway.exceptions.UnexpectedException: Unexpected HTTP_RESPONSE 406

Customer customer = gateway.customer().find("the_customer_id");

When it should be a NOT_FOUND exception.

Are any others getting this exception? Should I bring this up with braintree support?

cmonty commented 12 years ago

@agentgt,

Sorry for the weird responses you're receiving! I'd be happy to investigate these requests, but since I'm going to need specific information about your account, would you mind pinging support@braintreepayments.com? Feel free to ask for me and I'll take a look at your Sandbox requests.

Cheers,

Cory Braintree Developer

yurisklar commented 10 years ago

I'm getting Unexpected HTTP_RESPONSE 406 when performing a request to .get("/customers/" + customer_id) and customer_id has dot (.) inside

nickfoote commented 7 years ago

Ah, I was trying to use email addresses like 'joe.bloggs@domain.com' as the customer id ... doesn't sound like this will work?