JSON no longer has 'has_active_subscription' field
Current build will crash due to datacamp no longer providing this JSON field. Removing that check from the set_profile method fixes things. There seems to be no clear substitute key, apart maybe from the key indicating if the user is on his first trial week.
https://github.com/TRoboto/datacamp-downloader/blob/cc04f1ffabeb7f1e828db6c5d0d177dfc905df31/src/datacamp_downloader/datacamp_utils.py#L486
There is a key called active_products. That might be a good substitute.
can someone please help me with the "has_active_subscription" error
@AbhijeetRoy2107 A very dirty way of solving it is by removing the following lines from datacamp_utils.py file:
if data["has_active_subscription"]:
Logger.info("Active subscription found")
else:
Logger.warning("No active subscription found")
And changing
self.has_active_subscription = data["has_active_subscription"]
to
self.has_active_subscription = True