#MatiasGz - installment details

1 messages ยท Page 1 of 1 (latest)

plain juncoBOT
night heart
#

hi there ๐Ÿ‘‹

#

Which part of this are you asking about, exactly?

summer crane
#

when performing the fetch, I understand that it has to go to a specific url, but I don't see which url it goes to!
In my local environment I see that it makes requests to
http://localhost:8080/collect_details

Which is not the correct one, I think

night heart
#

That looks right based on the fetch('/collect_details', {...}) line

#

And i imagine this is intended to retrieve details from the payment method via the API

#

and return those to the client

summer crane
#

ok, do you have any idea why when that request responds, and when I try to do the:
const json = await response.json();

I get the following error:

night heart
#

What does the request response look like in the network tools?

#

Is it the expected json shape?

#

Or possibly an error?

summer crane
#

the request has the following aspect:

night heart
#

What is the "preview" / payload showing?

summer crane
#

visual is broken, goes to an error view

night heart
#

OK, so thats why

#

you're not responding with json, its responding with a page, looks like an authentication/login page

#

So you'll need to figure out why your server is doing that

summer crane
#

What I can not understand, this request is made to my server and not to your url?

night heart
summer crane
#

ok, understood, I will proceed to adjust on my side!

night heart
#

๐Ÿ‘

#

MatiasGz - installment details