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
When calling ListLogEvents of the SystemLogAPI, errors are returned (one of the following, depends on the response): json: cannot unmarshal string into Go struct field _LogEvent.debugContext of type map[string]interface {} json: cannot unmarshal string into Go struct field _LogEvent.target of type map[string]interface {} json: cannot unmarshal string into Go struct field _LogEvent.transaction of type map[string]interface {} json: cannot unmarshal string into Go struct field _LogEvent.actor of type map[string]interface {}
In all cases, the error is due to the following fields being defined as map[string]map[string]interface{} instead of map[string]interface{}:
LogDebugContext.DebugData
LogTarget.DetailEntry
LogTransaction.Detail
LogActor.DetailEntry
What is expected to happen?
The response should be unmarshalled correctly, returning a LogEvent object
What is the actual behavior?
An error is returned
Reproduction Steps?
Call ListLogEvents(), from the okta.SystemLogAPI client
Additional Information?
Some of the errors occurred in previous versions and have been fixed #462 #449
Can we kindly request that a test will be added? 🙏🏻
Golang Version
go version go1.22.3 darwin/arm64
SDK Version
v5.0.0
OS version
No response
The text was updated successfully, but these errors were encountered:
Describe the bug?
When calling ListLogEvents of the SystemLogAPI, errors are returned (one of the following, depends on the response):
json: cannot unmarshal string into Go struct field _LogEvent.debugContext of type map[string]interface {}
json: cannot unmarshal string into Go struct field _LogEvent.target of type map[string]interface {}
json: cannot unmarshal string into Go struct field _LogEvent.transaction of type map[string]interface {}
json: cannot unmarshal string into Go struct field _LogEvent.actor of type map[string]interface {}
In all cases, the error is due to the following fields being defined as
map[string]map[string]interface{}
instead ofmap[string]interface{}
:LogDebugContext.DebugData
LogTarget.DetailEntry
LogTransaction.Detail
LogActor.DetailEntry
What is expected to happen?
The response should be unmarshalled correctly, returning a LogEvent object
What is the actual behavior?
An error is returned
Reproduction Steps?
Call ListLogEvents(), from the okta.SystemLogAPI client
Additional Information?
Some of the errors occurred in previous versions and have been fixed
#462
#449
Can we kindly request that a test will be added? 🙏🏻
Golang Version
go version go1.22.3 darwin/arm64
SDK Version
v5.0.0
OS version
No response
The text was updated successfully, but these errors were encountered: