#maxime_error

1 messages Β· Page 1 of 1 (latest)

granite swanBOT
#

πŸ‘‹ 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/1412738656686440539

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

balmy wind
#

hi there!

granite swanBOT
hidden jetty
flat vale
#

Hmm, that request was a 200?

flat vale
#

Looking

hidden jetty
#

I also get this error:

<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>X4184NPCQJFEV8AZ</RequestId><HostId>dz8XNoI4MezadpvYjlSIe0fGE6cmPbG/dZndUh9X3Ma1Zl/RMKDmxOMreKKv+YKpnz9LCoVsft+Us3pZGEe+FQ==</HostId></Error>

from https://crypto-js.stripe.com/.deploy_status_henson.json if that's of any help

flat vale
#

OK so I'm not familiar with this at all but it's some kind of internal error regarding the 'quote'

#

Still looking

hidden jetty
#

Ok thanks, i havnt tested this part for a few weeks but previously it was working flawlessly

flat vale
#

What's the code you're using the init thie failing request?

hidden jetty
#

here is the whole function:

  const response = await fetch(import.meta.env.VITE_API_ROOT + '/transaction', {
    method: 'POST',
    headers: {
      Accept: 'application/json',
      'Content-Type': 'application/json',
    },
    mode: 'cors',
    body: JSON.stringify({ quote: props.quote }),
    credentials: 'include',
  })

  if (!response.ok) {
    return
  }

  const result = await response.json()
  const stripeOnramp = await loadStripeOnramp(
    import.meta.env.VITE_STRIPE_ONRAMP_PUBLIC_KEY as string,
  )

  const clientSecret = result.data.stripe_onramp_session_client_secret
  const onrampSession = stripeOnramp
    ?.createSession({
      clientSecret,
      appearance: {
        theme: 'dark',
      },
    })
    .addEventListener('onramp_session_updated', (e) => {
      stripeWidgetState.value = e.payload.session.status

      if (stripeWidgetState.value === 'fulfillment_complete') {
        const rawTransactionReceipt: CustomRawTransactionReceipt = {
          transactionHash: e.payload.session.quote?.blockchain_tx_id as Nullable<string>,
          logs: [
            {
              eventName: 'Transfer',
              args: {
                value: Number(e.payload.session.quote?.destination_amount),
              },
            },
          ],
        }

        createTransactionReceipt('payment_provider', rawTransactionReceipt)
        transactionReceiptModalOpenRef.value?.open()
      }
    })

  if (onrampSession) onrampSession.mount('#onramp-element')
}```
flat vale
#

Well which part of that in particular? There are multiple functions/API calls in that block

hidden jetty
#
    ?.createSession({
      clientSecret,
      appearance: {
        theme: 'dark',
      },
    })```

and then;

``` if (onrampSession) onrampSession.mount('#onramp-element')```

it initialize the widget
#

clientSecret being the secret returned by the 200request we discussed earlier

flat vale
#

Hmm, I think there's something amiss here internally but I'm not sure what exactly – not familiar with this at all. Equally, can see no livemode impact so hesitant to raise the alarm

Can I ask you write in to our team and we can investigate this with the Crypto team?

granite swanBOT
#

Hello @hidden jetty, we have sent you a direct message, please check it at https://discord.com/channels/@me/1412747708090945606

  • πŸ”—The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
hidden jetty
#

Ok i'll do that, thanks

#

just did πŸ‘