Search code examples
c#.netjsonpodio

Podio .NET client failing to deserialize item: JSON integer is too large or small for an Int32


Our Podio webhooks integration started breaking because of the following error:

Using https://www.nuget.org/packages/Podio.Async latest version.

JSON integer 2149591369 is too large or small for an Int32. Path 'current_revision.item_revision_id', line 1, position 14100.

Which happens in Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType).

So as I understand the item_revision_id should be changed to long to not break?

Is there anything else I can do on my side, besides making a pull request to their repo, that is not maintained and most likely won't be merged?


Solution

  • PR for this fix is already made, fix is on it's way, stay calm :)

    You can also fix it yourself and build locally.