Skip to main content
Solved

SDK Version - 4.1.0 | Entitlement query causing (repeating) "CodingKeys" Debug messages to console


Forum|alt.badge.img+3

Calls to -- customerInfo?.entitlements[ “myEntitlementID” ]?.isActive seems to be generating Debug message log noise.

I’m unsure how to fix/quiet these messages, does anyone know if this is a problem or a way to resolve whatever might be casing this? I’m assuming this is a problem with the .json being returned by the RC rest endpoints as its being decoded… 

This is the console output:

_____________________

2022-03-31 20:12:40.544032-0400 astrx[50240:2136091] [Purchases] - DEBUG: 👤 Identifying App User ID

2022-03-31 20:12:40.551928-0400 astrx[50240:2136091] [Purchases] - DEBUG: ℹ️ Debug logging enabled

2022-03-31 20:12:40.552073-0400 astrx[50240:2136091] [Purchases] - INFO: ℹ️ StoreKit 2 support enabled

2022-03-31 20:12:40.552118-0400 astrx[50240:2136091] [Purchases] - DEBUG: ℹ️ SDK Version - 4.1.0

2022-03-31 20:12:40.552159-0400 astrx[50240:2136091] [Purchases] - DEBUG: 👤 Initial App User ID set

2022-03-31 20:12:40.572296-0400 astrx[50240:2136091] [Purchases] - DEBUG: ℹ️ Key 'CodingKeys(stringValue: "ownershipType", intValue: nil)' not found, codingPath: [], description:

No value associated with key CodingKeys(stringValue: "ownershipType", intValue: nil) ("ownershipType"), converted to ownership_type.

2022-03-31 20:12:40.573350-0400 astrx[50240:2136091] [Purchases] - DEBUG: ℹ️ Key 'CodingKeys(stringValue: "periodType", intValue: nil)' not found, codingPath: [], description:

No value associated with key CodingKeys(stringValue: "periodType", intValue: nil) ("periodType"), converted to period_type.

2022-03-31 20:12:40.573483-0400 astrx[50240:2136091] [Purchases] - DEBUG: ℹ️ Key 'CodingKeys(stringValue: "ownershipType", intValue: nil)' not found, codingPath: [], description:

No value associated with key CodingKeys(stringValue: "ownershipType", intValue: nil) ("ownershipType"), converted to ownership_type.

2022-03-31 20:12:40.574051-0400 astrx[50240:2136091] [Purchases] - DEBUG: ℹ️ Key ‘CodingKeys(stringValue: "periodType", intValue: nil)' not found, codingPath: [], description:

No value associated with key CodingKeys(stringValue: "periodType", intValue: nil) ("periodType"), converted to period_type.

2022-03-31 20:12:40.574217-0400 astrx[50240:2136091] [Purchases] - DEBUG: ℹ️ Key 'CodingKeys(stringValue: "ownershipType", intValue: nil)' not found, codingPath: [], description:

No value associated with key CodingKeys(stringValue: "ownershipType", intValue: nil) ("ownershipType"), converted to ownership_type.

2022-03-31 20:12:40.575137-0400 astrx[50240:2136091] [Purchases] - DEBUG: ℹ️ Key 'CodingKeys(stringValue: "ownershipType", intValue: nil)' not found, codingPath: [], description:

No value associated with key CodingKeys(stringValue: "ownershipType", intValue: nil) ("ownershipType"), converted to ownership_type.

 

Best answer by Cesar

Hi!

Someone opened the same issue in GitHub a couple weeks ago and we merged a fix (pull request here), but we haven’t released the fix yet. 

We added the log to help with some issues around decoding, but it created more noise that we intended.The fix will be released in the next version of the SDK. 

Sorry about that!

View original
Did this post help you find an answer to your question?

2 replies

Cesar
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • 65 replies
  • Answer
  • April 1, 2022

Hi!

Someone opened the same issue in GitHub a couple weeks ago and we merged a fix (pull request here), but we haven’t released the fix yet. 

We added the log to help with some issues around decoding, but it created more noise that we intended.The fix will be released in the next version of the SDK. 

Sorry about that!


Forum|alt.badge.img+3

Ok, Thanks!

..so then this is nothing to fret over. Thanks for the fast reply!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings