[STRIPE_ERROR] StripeInvalidRequestError: Not a valid URL
at StripeError.generate (webpack-internal:///(rsc)/./node_modules/stripe/esm/Error.js:22:20)
at res.toJSON.then.Error_js__WEBPACK_IMPORTED_MODULE_0_.StripeAPIError.message (webpack-internal:///(rsc)/./node_modules/stripe/esm/RequestSender.js:102:82)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'StripeInvalidRequestError',
raw: {
code: 'url_invalid',
doc_url: 'https://stripe.com/docs/error-codes/url-invalid',
message: 'Not a valid URL',
param: 'success_url',
request_log_url: 'https://dashboard.stripe.com/test/logs/req_KBCi14Es8FtfVs?t=1709168698',
type: 'invalid_request_error',
headers: {
server: 'nginx',
date: 'Thu, 29 Feb 2024 01:04:58 GMT',
'content-type': 'application/json',
'content-length': '309',
connection: 'keep-alive',
'access-control-allow-credentials': 'true',
'access-control-allow-methods': 'GET,HEAD,PUT,PATCH,POST,DELETE',
'access-control-allow-origin': '',
'access-control-expose-headers': 'Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required',
'access-control-max-age': '300',
'cache-control': 'no-cache, no-store',
'content-security-policy': "report-uri https://q.stripe.com/csp-report?p=v1%2Fcheckout%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'",
'idempotency-key': 'stripe-node-retry-38117a9d-6313-46f2-817a-47a9ca865b0e',
'original-request': 'req_KBCi14Es8FtfVs',
'request-id': 'req_KBCi14Es8FtfVs',
'stripe-version': '2023-10-16',
vary: 'Origin',
'x-stripe-routing-context-priority-tier': 'api-testmode',
'strict-transport-security': 'max-age=63072000; includeSubDomains; preload'
},
statusCode: 400,
requestId: 'req_KBCi14Es8FtfVs'
},
rawType: 'invalid_request_error',
code: 'url_invalid',
doc_url: 'https://stripe.com/docs/error-codes/url-invalid',
param: 'success_url',
detail: undefined,
headers: {
server: 'nginx',
date: 'Thu, 29 Feb 2024 01:04:58 GMT',
'content-type': 'application/json',
'content-length': '309',
connection: 'keep-alive',
'access-control-allow-credentials': 'true',
'access-control-allow-methods': 'GET,HEAD,PUT,PATCH,POST,DELETE',
'access-control-allow-origin': '',
'access-control-expose-headers': 'Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required',
'access-control-max-age': '300',
'cache-control': 'no-cache, no-store',
'content-security-policy': "report-uri https://q.stripe.com/csp-report?p=v1%2Fcheckout%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'",
'idempotency-key': 'stripe-node-retry-38117a9d-6313-46f2-817a-47a9ca865b0e',
'original-request': 'req_KBCi14Es8FtfVs',
'request-id': 'req_KBCi14Es8FtfVs',
'stripe-version': '2023-10-16',
vary: 'Origin',
'x-stripe-routing-context-priority-tier': 'api-testmode',
'strict-transport-security': 'max-age=63072000; includeSubDomains; preload'
},
requestId: 'req_KBCi14Es8FtfVs',
statusCode: 400,
charge: undefined,
decline_code: undefined,
payment_intent: undefined,
payment_method: undefined,
payment_method_type: undefined,
setup_intent: undefined,
source: undefined
}
I am getting this error anyone help me to solve this error.