Skip to content
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

PR For fixing a bug where productcomponents of type Prepaid_Usage_Component cause the sdk to crash. #96

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

markmcgookin
Copy link

No description provided.

@markmcgookin
Copy link
Author

We have a component setup like this:
image

Which is causing the following error when trying to retrieve it using this SDK

System.ArgumentException: Requested value 'prepaid_usage_component' was not found.
   at System.Enum.TryParseByName(RuntimeType enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, UInt64& result)
   at System.Enum.TryParseInt32Enum(RuntimeType enumType, ReadOnlySpan`1 value, Int32 minInclusive, Int32 maxInclusive, Boolean ignoreCase, Boolean throwOnFailure, TypeCode type, Int32& result)
   at System.Enum.TryParse(Type enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at ChargifyNET.UsefulExtensions.GetNodeContentAsComponentType(XmlNode node) in /_/Source/ChargifyDotNet/UsefulExtensions.cs:line 1390
   at ChargifyNET.ComponentInfo.LoadFromNode(XmlNode obj) in /_/Source/ChargifyDotNet/ComponentInfo.cs:line 234
   at ChargifyNET.ComponentInfo..ctor(XmlNode componentInfoNode) in /_/Source/ChargifyDotNet/ComponentInfo.cs:line 101
   at ChargifyNET.ChargifyConnect.GetComponentsForProductFamily(Int64 chargifyId, Boolean includeArchived) in /_/Source/ChargifyDotNet/ChargifyConnect.cs:line 4449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant