Open ankero opened 7 months ago
Hi @ankero, I'm sorry about the delay in responding to this. I'm able to see this working correctly using the SDK. Sharing the code snipped that works for me:
const response = await chargebee.portal_session
.create({
customer: {
id: "customer_id"
}
})
.request();
console.log(response.portal_session);
Could you give this a try and let us know if it works for you? Please share the error details if you see any.
Hi @ankero, did you get a chance to try this out? Let me know if you're still facing any issues.
Hi,
The client.portal_session.create().request() is returning an invalid response. It is only including the responseHeaders to the response. The server is returning the portal session, but the library has a bug in core.js
responseHandler
on lineresponse = new result_1.Result(response, responseHeaders);
that causes the response to be dropped and only the responseHeaders get returned.Reproduce just by calling that API with this library.
Here's the request I made to produce this issue:
Workaround can be done with direct API call, for example: