#1402 # Description
When searching the following error is returned:
UnhandledPromiseRejectionWarning: ParserError: Unexpected token type: Colon, value: :
Steps to reproduce
o365 spo search --query "IsDocument:1" --selectProperties "Path,Author,FileType"
Expected result
Search results are returned
Actual result
(node:572) UnhandledPromiseRejectionWarning: ParserError: Unexpected token type: Colon, value: :
at Parser.parse (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/node_modules/jmespath/jmespath.js:501:27)
at Object.search (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/node_modules/jmespath/jmespath.js:1659:25)
at Function.logOutput (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/dist/Utils.js:114:37)
at UI.vorpal.pipe [as _pipeFn] (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/dist/index.js:126:32)
at UI.log (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/node_modules/vorpal/dist/ui.js:436:48)
at Session.session._log (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/node_modules/vorpal/dist/session.js:93:24)
at Session.session.log (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/node_modules/vorpal/dist/session.js:78:20)
at CommandInstance.log (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/node_modules/vorpal/dist/command-instance.js:94:26)
at SpoSearchCommand.printResults (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/dist/o365/spo/commands/spo-search.js:271:17)
at then.then (/home/sebastian/.npm-global/lib/node_modules/@pnp/office365-cli/dist/o365/spo/commands/spo-search.js:62:18)
(node:572) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:572) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Environment
#1402 # Description
When searching the following error is returned:
UnhandledPromiseRejectionWarning: ParserError: Unexpected token type: Colon, value: :
Steps to reproduce
Expected result
Search results are returned
Actual result
Environment