#deeprajdevaraj-subscription

1 messages · Page 1 of 1 (latest)

plucky sable
#

hello! where are you seeing that error? is it as a response to a request?

signal pawn
#

yes

#

I am getting this from Stripe

#

and this happens to one of my client

plucky sable
signal pawn
#

ok let me check

#

please give me some time to get the detail

#

sorry I can't find that in the log

#

The last request id recorded is req_ZPhDR2zENiVuR2

plucky sable
#

to clarify, are you seeing that error in the developer console? or is it as a response to a request made from your server?

#

and what action/request were you trying to do when that error was returned?

signal pawn
#

yes it is received in my client as a response from my server code

#

I am getting you the detail now

plucky sable
#

okay, so it sounds like your server was trying to do something, and then you got that error - what specific request did your server make to get that error?

signal pawn
#

I call this function using stripe object to create a configuration. stripe.billingPortal.configurations.create

#

and then create the session based on the configuration id created

#

during this process I am getting the error

#

our two clients are using this functionality

plucky sable
#

yes, but again, which specific request is returning that error

#

one of the requests must be returning that error

signal pawn
#

give me a minute

#

I will tell exactly the function

#

sorry for keeping you wait

#

this is the function that throws the error

#

stripe.billingPortal.configurations.create

#

and these are the configuration settings passed

#

invoice_history: {enabled: true}, payment_method_update: {enabled: true},
subscription_cancel: {
enabled: true,
mode: 'at_period_end'
subscription_pause: {enabled: true},
subscription_update: {
default_allowed_updates: null,
products: [{
prices: [XXXXXXXXX],
product: XXXXXXXXXXX
}],
enabled: true
}

plucky sable
#

gimme a while to look and see if i can find the specific request that threw that error

signal pawn
#

sure

plucky sable
#

i can't find the request id from a quick search. Since this error is being returned when you call stripe.billingPortal.configurations.create , there must be a request id returned also, you'll need to log the header to find the request id. Without the request id, I can't really help to troubleshoot

signal pawn
#

so for that do I need to go to connected account and look for the log

plucky sable
#

Each API request has an associated request identifier. You can find this value in the response headers, under Request-Id

signal pawn
#

ok. one query, if the function fails, will there be any log

#

because in the log section, after clicking the functionality in client, I didn't get the log

#

sorry for the confusion

plucky sable
#

it depends if the request was sent to Stripe

signal pawn
#

this is the request id

#

req_ylSOCu0sfnPVnM

#

were you able to get the details

plucky sable
#

remember to include the request id : req_ylSOCu0sfnPVnM when writing in for them to refer to

signal pawn
#

sure. let me send the email and I will let you know once it is done

#

I send the email just now

#

can you please acknowledge

plucky sable
#

yep i see it

signal pawn
#

thanks

#

also can you get me a quick solution as this is a production issue