#ehurynovich
1 messages ยท Page 1 of 1 (latest)
We request permissions
stripe apps grant permission "payment_links_read" "get payment links"
stripe apps grant permission "payment_links_write" "create payment links"
stripe apps grant permission "product_read" "get product"
stripe apps grant permission "connected_account_read" "get account info"
stripe apps grant permission "checkout_session_read" "get session info"
stripe apps grant permission "customer_read" "get customer info"
stripe apps grant permission "event_read" "get payment event"
stripe apps grant permission "issuing_authorization_read" "authorization"
stripe apps grant permission "webhook_read" "webhook"
stripe apps grant permission "mandate_read" "webhook"
stripe apps grant permission "payment_intent_read" "webhook"
stripe apps grant permission "payment_links_read" "webhook"
stripe apps grant permission "setup_intent_read" "webhook"
stripe apps grant permission "sku_read" "webhook"
Where to get a request ID?
https://support.stripe.com/questions/finding-the-id-for-an-api-request -- can you check your Dashboard?
@jagged quail
I don't remember if this will appear there for Stripe Apps
But I believe there should be one still
What are you trying to do exactly that is encoutnering this error?
Hi. We get this error when the app calls our api.
there is a 'request_log_url "https://dashboard.stripe.com/logs/req_RUxNqny99ySVAZ?t=1677174608" message in the error details
but no request log found with the specified ID.
full response:
{"error":{"code":"more_permissions_required_for_session","message":"You do not have the required permissions for this endpoint on account 'acct_1F93ocFafLjrC00f'. Having more permissions would allow this request to continue.","message_code":"more_permissions_required_for_session","request_log_url":"https://dashboard.stripe.com/logs/req_RUxNqny99ySVAZ?t=1677174608","type":"invalid_request_error"}}
Thanks that has a requset ID
Looking
Hmm weird looks to be an issue with verifying signatures
You have that all set up within your app like we talk about here: https://stripe.com/docs/stripe-apps/build-backend ?
Okay thanks, give me a few minutes to look further into this
Actually can you show me what permissions you have set in your app manifest?
"permissions": [
{
"permission": "payment_links_read",
"purpose": "get payment links"
},
{
"permission": "payment_links_write",
"purpose": "create payment links"
},
{
"permission": "product_read",
"purpose": "get product"
},
{
"permission": "connected_account_read",
"purpose": "get account info"
},
{
"permission": "checkout_session_read",
"purpose": "get session info"
},
{
"permission": "customer_read",
"purpose": "get customer info"
},
{
"permission": "event_read",
"purpose": "get payment event"
},
{
"permission": "issuing_authorization_read",
"purpose": "authorization"
},
{
"permission": "webhook_read",
"purpose": "webhook"
},
{
"permission": "mandate_read",
"purpose": "webhook"
},
{
"permission": "payment_intent_read",
"purpose": "webhook"
},
{
"permission": "setup_intent_read",
"purpose": "webhook"
},
{
"permission": "sku_read",
"purpose": "webhook"
}
],
and api
"content_security_policy": {
"connect-src": [
"https://sppabt.parsers.me/products/"
],
"image-src": null,
"purpose": "api"
}
Hello! I'm taking over and catching up...
To clarify, your Stripe App works fine if you start it using the CLI, but it doesn't work and throws this error when used some other way?
yes
Does that error get thrown immediately, or does it show up after some specific action/code is run?
I call api on load app. the error happens when i call our api
Which API? Can you share the code that leads to this error?
Do you have that account ID hard-coded anywhere or anything like that?
useEffect(() => {
setIsLoading(true);
setIsError(false);
getPrices().then(response => response.json())
.then(p => {
setPrices(p);
setIsLoading(false);
})
.catch(error => {
setPrices(null)
setIsLoading(false);
setIsError(true);
});
}, []);
const getPrices = async(endpoint, requestData) => {
return fetch(api + 'products/' + environment.objectContext.id + '/prices', {
method: 'GET',
headers: {
'Stripe-Signature': await fetchStripeSignature(),
'Stripe-AccountId': userContext?.account.id,
'Stripe-UserId' : userContext?.id,
'Content-Type' : 'application/json',
},
});
};
I take it from userContext
as in the examples
Ah, okay, so is fetchStripeSignature throwing the error?
Okay, so you run it via the CLI and it works. What are the exact steps you're taking to install and use the app that lead to this error?
CLI: stripe apps upload
and Create a release in dashboard/apps
and I updated keys for my api to live
2 point
Can you provide more detail about the "and I updated keys for my api to live" step? That doesn't seem to be a typical approach?
Ah, actually, can you add the plan_read permission and try again? You've got product_read, but I think you also need plan_read for what you're trying to do.
I think in order to access Prices you need plan_read.
the same error
Hm. Okay, give us a few minutes to investigate further.
What is the value of api in the code you shared earlier?
const api = 'https://sppabt.parsers.me/'
and I added entry to manifest
"content_security_policy": {
"connect-src": [
"https://sppabt.parsers.me/products/"
],
"image-src": null,
"purpose": "api"
}
Thanks! We're continuing to investigate, thanks for your patience. ๐
thanks for your help. ๐
Something to try: after you upload and install the app in live mode, does it work if you switch to another browser, or an incognito/private window?
I checked in private window, the same error
Thanks for trying. Still working on it...
Just a quick update to say we've opened an investigation here, still working on this for you
ok
At this time, it looks like an issue on our end that we need to correct, not anything you've done. Will keep you updated when we have more to share.
How can we know when it will be solved in order to move on? Will you write here?
We can update here, yes, but you might also want to write in to support about the issue in case it takes some time to fix.
I noticed that we have 2019-08-14 api version as Default, not 2022-11-15
Could this be the cause of the error?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I don't think that should be related, no
Small update: identified & fix should be coming soon