gloebit / opensim-moneymodule-gloebit

OpenSim addon module integrating with the Gloebit digital currency service
GNU Lesser General Public License v3.0
8 stars 10 forks source link

OSDMap serialization failing in master dev #93

Closed Tampa closed 2 years ago

Tampa commented 2 years ago
Delegate for TriggerMoneyTransfer failed - continuing.  Specified cast is not valid.   at OpenMetaverse.StructuredData.OSDParser.SerializeJsonMapNoDefaults (System.String name, OpenMetaverse.StructuredData.OSD osd, System.Int32& mapcont, OpenMetaverse.osUTF8 sb) [0x00143] in <cac3a46baeef49bf97799ecfcef16a6b>:0
  at OpenMetaverse.StructuredData.OSDParser.SerializeJson (OpenMetaverse.StructuredData.OSD osd, OpenMetaverse.osUTF8 sb, System.Boolean preserveDefaults) [0x0020e] in <cac3a46baeef49bf97799ecfcef16a6b>:0
  at OpenMetaverse.StructuredData.OSDParser.SerializeJsonString (OpenMetaverse.StructuredData.OSD osd) [0x00006] in <cac3a46baeef49bf97799ecfcef16a6b>:0
  at Gloebit.GloebitMoneyModule.GloebitAPI.BuildGloebitRequest (System.String relativeURL, System.String method, Gloebit.GloebitMoneyModule.GloebitUser user, System.String contentType, OpenMetaverse.StructuredData.OSDMap paramMap) [0x0010c] in /var/lib/jenkins/workspace/BETA-ZetaSim/addon-modules/Gloebit/GloebitMoneyModule/GloebitAPI.cs:1060
  at Gloebit.GloebitMoneyModule.GloebitAPI.TransactU2U (Gloebit.GloebitMoneyModule.GloebitTransaction txn, System.String description, OpenMetaverse.StructuredData.OSDMap descMap, Gloebit.GloebitMoneyModule.GloebitUser sender, Gloebit.GloebitMoneyModule.GloebitUser recipient, System.String recipientEmail, System.Uri baseURI) [0x000d2] in /var/lib/jenkins/workspace/BETA-ZetaSim/addon-modules/Gloebit/GloebitMoneyModule/GloebitAPI.cs:397
  at Gloebit.GloebitMoneyModule.GloebitAPIWrapper.SubmitTransaction (Gloebit.GloebitMoneyModule.GloebitTransaction txn, System.String description, OpenMetaverse.StructuredData.OSDMap descMap, System.Boolean u2u) [0x00077] in /var/lib/jenkins/workspace/BETA-ZetaSim/addon-modules/Gloebit/GloebitMoneyModule/GloebitAPIWrapper.cs:438
  at Gloebit.GloebitMoneyModule.GloebitMoneyModule.OnMoneyTransfer (System.Object osender, OpenSim.Region.Framework.Scenes.EventManager+MoneyTransferArgs e) [0x00211] in /var/lib/jenkins/workspace/BETA-ZetaSim/addon-modules/Gloebit/GloebitMoneyModule/GloebitMoneyModule.cs:2633
  at OpenSim.Region.Framework.Scenes.EventManager.TriggerMoneyTransfer (System.Object sender, OpenSim.Region.Framework.Scenes.EventManager+MoneyTransferArgs args) [0x00029] in /var/lib/jenkins/workspace/BETA-ZetaSim/OpenSim/Region/Framework/Scenes/EventManager.cs:1379

There were changes to this in libomv recently so I suspect that's why that is now failing. Going to investigate see what I can find.

Tampa commented 2 years ago

Okay seems to be an issue with the new way osd json is handled. Updated libomv slightly which should fix this up.