#demmerson

1 messages · Page 1 of 1 (latest)

scenic flareBOT
ornate gazelle
#

Hello

#

The recommended route here is to use a server redirect

#

Otherwise you can pass the Session URL to your client and redirect from your client to that URL as well

#

How are you currently attempting to redirect?

quartz elk
#

window.location.assign(url)

#

I can do the redirect on the server, but still get the same error

ornate gazelle
#

Hmmm odd

#

How are you redirecting when you try a server redirect?

quartz elk
#

Well, I did not implement it other than manually grabbing the url and send the browser over there. I can quickly change it so the server sends the browser to Stripe's url, but I don't see how it would make a difference

ornate gazelle
#

Wait sorry

#

When you manually grab the URL and load it in a webpage you see that error?

#

I thought you meant it worked when manually getting the URL but was failing on redirect

quartz elk
#

Yes, in addition to calling window.location.assign(url), same error either way

ornate gazelle
#

Can you provide me with a URL or Checkout Session ID that I can reproduce with?

quartz elk
#

Yep! Just a sec

#

Hmm, well I think i might have just realized the issue...sorry for the trouble. Think I accidentally truncated the end of the url when putting the url in a db column with a type of varchar(255). Thank for being my rubber ducky!