#Rian A-email-length-limit

1 messages ยท Page 1 of 1 (latest)

fierce phoenix
#

Hi there ๐Ÿ‘‹ I'm not sure off the top of my head if the email field has a character limit, and if so what that is. Are you hitting an error when trying to use an email longer than 30 characters?

vast tapir
#

one of our customers is trying to do so.

fierce phoenix
#

I just created a customer in my test account with an email address that had 120 characters, didn't run into any problems.

vast tapir
#

same here.. Interestingl

#

I'll see if I can find how we managed to get this error...

Message
Invalid string: 20-1327 in...esteed wer; must be at most 30 characters
Level
ERROR
UserId
---

Exception
{
    "class": "Stripe\\Exception\\InvalidRequestException",
    "message": "Invalid string: 20-1327 in...esteed wer; must be at most 30 characters",
    "code": 0,
    "file": "/var/www/html/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php:38",
    "trace": [
        "/var/www/html/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php:35",
        "/var/www/html/vendor/stripe/stripe-php/lib/ApiRequestor.php:213",
        "/var/www/html/vendor/stripe/stripe-php/lib/ApiRequestor.php:175",
        "/var/www/html/vendor/stripe/stripe-php/lib/ApiRequestor.php:560",
        "/var/www/html/vendor/stripe/stripe-php/lib/ApiRequestor.php:124",
        "/var/www/html/vendor/stripe/stripe-php/lib/ApiOperations/Request.php:78",
        "/var/www/html/vendor/stripe/stripe-php/lib/ApiOperations/Update.php:27",
        
fierce phoenix
#

Hm, that is interesting.

vast tapir
#

its in this bit of laravel code

#
$organisation->updateStripeCustomer(
                    $this->setStripeParams($organisation, $request->input('address')),
                );
#

i'll do some debugging on my end.

#

Im going with the assumption this is expected behaviour. But then I'll have to tell our users whats going on

fierce phoenix
#

Looking at that code, are you using Laravel by chance?

vast tapir
#

I am

fierce phoenix
#

Ah, so they're library may also be imposing some limitations, but we're not familiar with the inner workings of their integration.

vast tapir
#

I think I'll be able to find the limitation if it is there

#

I think it is the "invoice reference"

#

it is ๐Ÿ™‚

#

Thank you for your time

fierce phoenix
#

Any time!

#

Glad to hear you go to the bottom of it!