#drfreeman7812_error

1 messages ยท Page 1 of 1 (latest)

round crownBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1284155579173965907

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

wide topaz
#

Hi there ๐Ÿ‘‹ we aren't too familiar with that migration toolkit in this forum, but I suspect that error is referring to a field within the owner hash on one or more of your Source objects:
https://docs.stripe.com/api/sources/object#source_object-owner

Do you have an ID of a Source that you saw encounter this error during the migration that you can share?

pastel swift
#

Sure, It seems to happen to only 4 sources:

  • src_1PlZHBJRD3VB0kU347vDE0v6
  • src_1PlZJEJRD3VB0kU3y5bqwRk2
  • src_1PlZNoJRD3VB0kU3xQCyL65S
  • src_1PlZLZJRD3VB0kU39HpBlYTb
#

For reference this is the migration panel

wide topaz
#

Looking at those examples there, it looks like owner.name on those Sources contains just a hyphen -. I'm not sure what exactly the tooling is expecting to be present there, but I'd suggest trying to unset that owner.name field by making a request to update the source and pass an empty string to that field.

pastel swift
#

Got it. What's the easiest way to do that?

#

I guess its not possible through the dashboard? Do you perhaps have a curl command I can run?

wide topaz
#

I'm not sure if there is dashboard UI that can be used to perform that, but you should be able to use curl or the Stripe CLI/shell to accomplish that.

The general shape of the request for that can be seen in our API reference here:
https://docs.stripe.com/api/sources/update?lang=curl

Instead of the -d "metadata[order_id]"=6735 line that you see in there though, you'd use:
-d "owner[name]"=

pastel swift
#

Cool. Thanks @wide topaz

wide topaz
#

Any time! I'll be happy to take another look if that doesn't help, but may be limited in the advice I can offer about the migration tooling itself.

pastel swift
#

Doesn't seem to work: "You passed an empty string for 'owner[name]'. We assume empty values are an attempt to unset a parameter; however 'owner[name]' cannot be unset. You should remove 'owner[name]' from your request or supply a non-empty value."

#

Also the original error states: Please update the name in the Source owner hash to be between 3 and 100 alphanumeric characters

wide topaz
#

Ah gotcha, so seems like we want a valid name there rather than the field being unset.

pastel swift
#

If I just use the customer name? could that effect any future payments?

wide topaz
#

I don't think so, but that's not something I'm too clear on. Our Support team may be able to provide better guidance around that than I can:
https://support.stripe.com/?contact=true