Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1 - delete system - cannot unmarshal object into Go struct field System.sshdParams #23

Open
sparkacus opened this issue Nov 1, 2018 · 2 comments

Comments

@sparkacus
Copy link

Hi,

I'm running into an issue when trying to delete a system

	accept := "application/json"
	client1 := jcapiv1.NewAPIClient(jcapiv1.NewConfiguration())
	auth1 := context.WithValue(context.TODO(), jcapiv1.ContextAPIKey, jcapiv1.APIKey{
		Key: os.Getenv("JUMPCLOUD_API_KEY"),
	})
	_, _, err := client1.SystemsApi.SystemsDelete(auth1, "123456789", contentType, accept, nil)
	if err != nil {
		helpers.LogFatalError(err)
	}```


`json: cannot unmarshal object into Go struct field System.sshdParams of type string
exit status 1`

For now I'll just have to ignore `err`.
@sparkacus sparkacus reopened this Nov 1, 2018
@sparkacus
Copy link
Author

If I create a new system and then quickly attempt to delete, it seems to work. I assume the system hasn't fully populated jumpcloud side. err returns nil

@bbawn
Copy link
Contributor

bbawn commented Jan 21, 2019

There was a bug in the swagger API spec that broke access to System.sshdParams. This is fixed in the current API and in the latest SDK. See #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants