When no log_config is passed, the SDK creates a default LogConfiguration
with enable_log=True, then calls ast.literal_eval(json.dumps(details))
where details contains non-serializable Python objects, causing:
malformed node or string on line 1: <ast.Name object at 0x...>
Path: authenticationsdk/core/MerchantConfiguration.py ~line 401
Fix: either skip the literal_eval (just use json.dumps directly for logging),
or default enable_log to False when no log_config is provided.
When no
log_configis passed, the SDK creates a defaultLogConfigurationwith
enable_log=True, then callsast.literal_eval(json.dumps(details))where details contains non-serializable Python objects, causing:
malformed node or string on line 1: <ast.Name object at 0x...>Path: authenticationsdk/core/MerchantConfiguration.py ~line 401
Fix: either skip the literal_eval (just use json.dumps directly for logging),
or default enable_log to False when no log_config is provided.