Hi Karan
Thank you for your reply
I am using
killbill:0.22.32, As I mentioned first I created a catalog to test stripes payment plugin and all was working.
The issue happened when I was trying to apply this:
https://docs.killbill.io/latest/push_notificationsI reached the section :
Make some configuration changes in a tenant so that Kill Bill pushes a notification on an event change. For example,
add a new plan to a catalog.
This will trigger a
TENANT_CONFIG_CHANGE event.
So when I created a new catalog and click I got error , then after refreshing the page the existing catalog was gone from kaui , and when I try: curl -X GET "
https://localhost:8080/1.0/kb/catalog" -H "accept: application/json" -H "authorization: Basic YWRtaW46cGFzc3dvcmQ=" -H "X-Killbill-ApiKey: test" -H "X-Killbill-ApiSecret: testtest"
I got the error : 500
{
"className": "java.lang.ClassCastException",
"code": null,
"message": "org.killbill.billing.catalog.DefaultProduct cannot be cast to org.killbill.billing.catalog.api.Plan",
"causeClassName": null,
"causeMessage": null,
"stackTrace": []
}
from the db I can see the old catalog there :
select * from catalog_override_plan_definition
killbill-> ;
record_id | parent_plan_name | effective_date | is_active | created_date | created_by | tenant_record_id
-----------+------------------+---------------------+-----------+---------------------+------------+------------------
1 | sports-monthly | 2023-10-04 11:20:32 | t | 2023-10-05 11:32:40 | demo | 1
2 | sports-monthly | 2023-10-04 11:20:32 | t | 2023-10-10 14:00:50 | demo | 1
but not the new one I created.
Also I am getting the same error if trying to a catalog from kaui