#smartge3k_code
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/1230155417141772428
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
That seems like an issue with your web server?
Are there any additional logs?
I also thought it is something to do with the web server but i face it locally as well
I mean if you're running the same code on both, then it would affect both.
Are there any additional logs?
No, I only get this error. I try to catch the error but error is not catched as well. If I look at the logs, I see "done" printed on console and nothing else.
try {
await this.subscriptionPaid(eventObject);
console.log(done);
await this.stripeClient.subscriptions.update(eventObject.id, {
metadata: {
keySent: 'true',
},
});
console.log('successfully sent key sent trye to subscription update');
} catch (e) {
console.log('error sending event to stripe', e);
}
moreover, I see this message on the stripe but none of my keys are expired.
but this message has nothing to do with my problem because I do not do anything with the customers update. I only listen to this webhook and do not send anything in return
@pine sapphire you're likely in someone else's thread
oh sorry, my bad. I got notification and did not notice.
@prime furnace are you looking at my problem? sorry, it has been ~10 minutes
Server is running a bit busy, appreciate your patience
no worries
Hello ๐ catching up in this thread and can help in a minute
Thank you
Can you send me the link to your dashboard page where you see that error?
Will see if I can see info about what API key we saw for that
which error?
the warning about api_key expired??
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
this is one of the event which has problem for connection refused.
and this is in testing
https://dashboard.stripe.com/test/events/evt_1P6ZV4GoMerEoZx8Y7VrUaOa
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Thank you, still looking in to this, will get back with what I can find.
thank you
I'm sorry but I'm not able to see that error message around those events at all. Can you tell me more about where that error is showing up for you in the dashboard?
Also can you send me the text of that /v1/customers/cus_... path? That may be able to help me find these calls
are you refering to the screenshot I sent you?
Also just debugging-wise, can you try making another call with that same API key to see if you get the same error?
Correct
I see it in the /developers
Ok I ran retrieve customer query and it fetched the result successfully but not working with the subscription update request
Can you send me the ID of that successful request? (req_123) https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_22XgWyxWLUKDLA
I am still having trouble finding what is happening here. I will consult my colleagues on this and get back to you with what we can find
but do you understand my problem? i send the update event, stripe refused it
but retrieval worked fine.
I was just rereading. That first error is from your server, this separate error about the API key being expired when you make update calls is what we are looking in to now correct?
the server side error.
and why I see the message that api key is expired as none of they keys are expired on stripe
Just to double check, can you copy in a different secret key to see if that doesn't get the error?
Even if the key isn't expired I am curious if this is key specific