Closed gauravv9 closed 2 months ago
@gauravv9 Please share the configuration for analysis or open a support case with Zscaler support and ask for an escalation. We can't provide you an answer without debug logs or the actual configuration itself.
{
"type": "UFQDN",
"fqdn": "test07-vpn@dev-arista.com",
"comments":"Test purpose only",
"preSharedKey":"xyz"
}
This is the configuration that was applied and on restarting the server it succeeded.
Seems to be getting SESSION_NOT_VALID as a response.
2024-05-16 22:09:05.593
msg="Zia: unmarshal error: (invalid character 'S' looking for beginning of value): ([83 69 83 83 73 79 78 95 78 79 84 95 86 65 76 73 68])" file="zia/client.go:160"
Please correct me if I misunderstood, the session is refreshed as part of GenericRequest's implementation isn't it? @willguibr Do we need to set some session parameters somewhere, like session.PasswordExpiryTime and client.sessionTimeout, through an API ?
This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale
label.
@gauravv9 Please download the latest version of the SDK ZIA package v2.61.2, which contains a fix regarding session refresh, and let us know if it fixed the problem you've reported. Thanks. Zscaler DevRel
@gauravv9 Please share the GO program code you're using containing the client instantiation for further testing. Thanks
@willguibr I was able to reproduce it with a striped down test code. The code has been shared with the escalation team.
Confirmation
zscaler-sdk-go version
2.5.0
Go environment
NA
Expected output
Expected the vpn credential to be created
Actual output
Getting an error when creating vpn credentials using zia Create API " invalid character 'S' looking for beginning of value "
Code demonstrating the issue
configuredVpnCreds, _, err := service.Create(ziaVpnCreds) if err != nil { return nil, err }
Steps to reproduce
Kept the server running for a while that is responsible for making Zscaler requests via zscaler-sdk Upon restarting the server, the request go through just fine.
References
No response