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 23, 2024. It is now read-only.
The docs do not mention a callback, but without a callback, the function always returns
TypeError: undefined is not a function
TypeError returns because the "Me.prototype.deleteKey" function is expecting cb to exist.
So why not just add a cb? -- if you add a callback to the .keys(id, cb) function, it will return the key information rather than delete it. as it says in "Get a single public key' part of the documentation
Unfortunately whenever a user tries to delete an SSH Public key via octonode, TyperError will always persist.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
file: octonode/lib/octonode/me.js
Me.prototype.deleteKey = function(id, cb) { return this.client.del("/api/v3/user/keys/" + id, {}, function(err, s, b, h) { if (err) { return cb(err); } if (s !== 204) { return cb(new Error("User deleteKey error")); } else { return cb(null); } }); };
Using: Delete a public key (DELETE /user/keys/1)
When you call the function ghme.keys(1);
Unfortunately whenever a user tries to delete an SSH Public key via octonode, TyperError will always persist.
The text was updated successfully, but these errors were encountered: