#maxime_error
1 messages Β· Page 1 of 1 (latest)
π 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.
hi there!
can you share the request ID (req_xxx)? you can find it here https://dashboard.stripe.com/test/logs
Hi, here it is req_0oVJYrPdWMkXS6
Hmm, that request was a 200?
Looking
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
OK so I'm not familiar with this at all but it's some kind of internal error regarding the 'quote'
Still looking
Ok thanks, i havnt tested this part for a few weeks but previously it was working flawlessly
What's the code you're using the init thie failing request?
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')
}```
Well which part of that in particular? There are multiple functions/API calls in that block
?.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
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?
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.