We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example of working error:
spark.personGet('Y2lzY29zcGFyaMWU4LWI1MzQtZDM3YjY1MzYzNjhl]', '1234') .then(result => { console.log('Good:', result); }) .catch(error => { console.log(JSON.stringify(error, null, 2)); // { "code": 404, "type": "ERR_STATUS" } console.log(typeof error); // object console.log('Array? ', Array.isArray(error)); // false console.log(error); { [Error: recieved error 404 for a GET request to https://api.ciscospark.com/v1/people/Y2lzY29zcGFyaMWU4LWI1MzQtZDM3YjY1MzYzNjhl] code: 404, type: 'ERR_STATUS' })
membershipAdd result error not an object
spark.membershipAdd(spaceId, '1234') .then(result => { console.log('Good:', result); }) .catch(error => { console.log(JSON.stringify(error, null, 2)); // {} console.log(typeof error); // object console.log(Array.isArray(error)); //false console.log(error); // [Error: invalid arguments] })
Sorry that I did not have the time to dig further.
The text was updated successfully, but these errors were encountered:
nmarus
No branches or pull requests
Example of working error:
membershipAdd result error not an object
Sorry that I did not have the time to dig further.
The text was updated successfully, but these errors were encountered: