{"type":"invalid_request_error","message":"Invalid API Key provided: sk_live_*********************<end of key>","status":401}Based on the Go library (https://github.com/stripe/stripe-go/blob/master/error.go#L14), I thought this would have type: "authentication_error". Am I missing something?
--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss+unsubscribe@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.
Hey there,Great question! I agree that "authentication_error" makes the most sense here, but in testing I can't find any instances where that error is returned by the Stripe API. invalid_request_error is used for:1. Wrong/missing API key2. Wrong Connect credentialsOf course, as you showed: the error message does indicate the authentication failure in a human-readable way. A more specific error code is something I'd like to see here as well; I've created an internal request to look at improving this in the future.Hope that clears things up!Best,- Fred.
On Wed, Sep 21, 2016 at 8:29 PM, Tejas <te...@segment.com> wrote:
{"type":"invalid_request_error","message":"Invalid API Key provided: sk_live_*********************<end of key>","status":401}Based on the Go library (https://github.com/stripe/stripe-go/blob/master/error.go#L14), I thought this would have type: "authentication_error". Am I missing something?
--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.
--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.