tryterra / terra-flutter

BSD 3-Clause "New" or "Revised" License
5 stars 9 forks source link

iOS crash keyNotFound #1

Closed ChrisElliotUK closed 2 years ago

ChrisElliotUK commented 2 years ago

When calling TerraFlutter.initTerra an error is thrown and causes the app to crash.

⚠️ HTTPRequestClient<TerraInitSDKResponse>: keyNotFound(CodingKeys(stringValue: "users", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: \"users\", intValue: nil) (\"users\").", underlyingError: nil))
* thread #5, queue = 'com.apple.NSURLSession-delegate', stop reason = EXC_BREAKPOINT (code=1, subcode=0x106442fac)
    frame #0: 0x0000000106442fac TerraiOS`___lldb_unnamed_symbol6210 + 300
TerraiOS`___lldb_unnamed_symbol6210:
->  0x106442fac <+300>: brk    #0x1
TerraiOS`___lldb_unnamed_symbol6211:
    0x106442fb0 <+0>:   sub    sp, sp, #0x70
    0x106442fb4 <+4>:   stp    x24, x23, [sp, #0x30]
    0x106442fb8 <+8>:   stp    x22, x21, [sp, #0x40]
Target 0: (Runner) stopped.
Lost connection to device.
ChrisElliotUK commented 2 years ago

Need to upgrade account otherwise this error will occur. Would be nice if we could develop and test without upgrading.