-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscription returned as empty object #43
Comments
Seeing the same issue when fetching Hosted Pages using the Typescript client. It appears to be a client-side parsing problem, specifically with the |
Also facing this issue with invoices and customers entities
returns
|
Facing the same issue, any update on this? |
Hey folks, my apologies for the delay in response. This looks like an issue with using console.log / info with the One of the possible solutions to make the result work with |
There's something v weird happing with this library in general. If I debugger inspect I can see there's a lot of keys but if you do I'm not sure I understand the additional complexity of the model class vs just returning a JS object. If I do the following it works
But it adds additional complexity and isn't very intuitive (I had to read the code in the model class above to figure this out). There's potentially another argument that I see there's a V3 SDK coming so fingers crossed this is addressed in that but in the meantime hopefully the |
Thanks for the note @skysteve. Yeah, I agree that it's not very intuitive. And the good news is that we've fixed this (and some) in v3, which is currently in It'd be great if you all could give it a try and share any feedback. We have a Migration guide for v3 and the README in the |
Version: [email protected]
Using this
it returns an array of empty objects of type
Result
Example of
console.info(response)
from the request above:So it seems that subscriptions are getting read, but actual data is not projected.
Chargebee is being instantiated the way it is displayed in docs:
Am I doing something wrong? is it a bug?
The text was updated successfully, but these errors were encountered: