You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Hi!
I recently updated Drift pod to 2.4.0 version, and got the following error with UserDTO decoding (caught by breakpoint).
Function: DriftManager.75 class func registerUser
Request: URL: https://event.api.drift.com/identify
Response: {\"id\":\"404cba19856ce46a9f7b1f5ef4409215\",\"userId\":\"1000059\",\"anonymousId\":null,\"companyId\":null,\"internal\":false,\"attributes\":{\"email\":\"rus.basiev@gmail.com\"},\"context\":{},\"createdAt\":1585788857338,\"orgId\":1167954,\"signedIdentity\":null,\"isDebug\":false}"
In model I found that user's identifier is: var userId: Int64?
It makes url request, and tries to decode UserDTO from response. But as you see, there is a string 'id' in response JSON.
The result of decoding UserDTO is not used, so the next function (auth) works fine. But maybe you can fix user decoding to prevent Swift Error Breakpoint activation
The text was updated successfully, but these errors were encountered:
Hi!
I recently updated Drift pod to 2.4.0 version, and got the following error with UserDTO decoding (caught by breakpoint).
Function:
DriftManager.75 class func registerUser
Request:
URL: https://event.api.drift.com/identify
Response:
{\"id\":\"404cba19856ce46a9f7b1f5ef4409215\",\"userId\":\"1000059\",\"anonymousId\":null,\"companyId\":null,\"internal\":false,\"attributes\":{\"email\":\"rus.basiev@gmail.com\"},\"context\":{},\"createdAt\":1585788857338,\"orgId\":1167954,\"signedIdentity\":null,\"isDebug\":false}"
In model I found that user's identifier is:
var userId: Int64?
It makes url request, and tries to decode UserDTO from response. But as you see, there is a string
'id'
in response JSON.The result of decoding UserDTO is not used, so the next function (auth) works fine. But maybe you can fix user decoding to prevent
Swift Error Breakpoint
activationThe text was updated successfully, but these errors were encountered: