#ehurynovich

1 messages ยท Page 1 of 1 (latest)

south fieldBOT
idle garden
#

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"

young arrow
#

Hi there

#

Can you share a request ID where you see this error?

idle garden
#

Where to get a request ID?

young arrow
idle garden
#

@jagged quail

young arrow
#

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?

jagged quail
#

Hi. We get this error when the app calls our api.

#

but no request log found with the specified ID.

#

full response:

young arrow
#

Thanks that has a requset ID

#

Looking

#

Hmm weird looks to be an issue with verifying signatures

jagged quail
#

yes. it works when i start app via stripe apps start

#

when only for me

young arrow
#

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?

jagged quail
#

"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

wise moss
#

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?

jagged quail
#

yes

wise moss
#

Does that error get thrown immediately, or does it show up after some specific action/code is run?

jagged quail
#

I call api on load app. the error happens when i call our api

wise moss
#

Which API? Can you share the code that leads to this error?

jagged quail
#

this happens before the api code is executed

wise moss
#

Do you have that account ID hard-coded anywhere or anything like that?

jagged quail
#

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

wise moss
#

Ah, okay, so is fetchStripeSignature throwing the error?

jagged quail
#

10 min, I will try to check it

#

yes, it's true

wise moss
#

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?

jagged quail
#

CLI: stripe apps upload

#

and Create a release in dashboard/apps

#

and I updated keys for my api to live

#

2 point

idle garden
wise moss
#

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.

jagged quail
#

ok. I will try

#

5 min

#

in api I get prices and create payment links

wise moss
#

I think in order to access Prices you need plan_read.

jagged quail
#

the same error

wise moss
#

Hm. Okay, give us a few minutes to investigate further.

#

What is the value of api in the code you shared earlier?

jagged quail
#

and I added entry to manifest

wise moss
#

Thanks! We're continuing to investigate, thanks for your patience. ๐Ÿ™‚

jagged quail
#

thanks for your help. ๐Ÿ™‚

wise moss
#

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?

jagged quail
#

I checked in private window, the same error

wise moss
#

Thanks for trying. Still working on it...

covert ferry
#

Just a quick update to say we've opened an investigation here, still working on this for you

jagged quail
#

ok

covert ferry
#

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.

idle garden
#

How can we know when it will be solved in order to move on? Will you write here?

covert ferry
#

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.

jagged quail
#

I noticed that we have 2019-08-14 api version as Default, not 2022-11-15

#

Could this be the cause of the error?

covert ferry
#

I don't think that should be related, no

covert ferry
#

Small update: identified & fix should be coming soon

wise moss
#

@jagged quail @idle garden Are either of you still around?

#

We believe this issue should be fixed now. Can you try again? If you're still having problems please let us know in the main #dev-help channel and we'll be happy to help more!