field query is the wrong type (str). Expected: unicode
Closed this issue · 1 comments
husanu commented
running code from examples
censys.search('ipv4', {query: '8.8.8.8'}, {}, (err, result) => {
if (err) {
console.log(err)
return
}
console.log(result)
})
will return
{ status: 'error',
error_type: 'malformed_request',
error: 'field query is the wrong type (str). Expected: unicode' }
$ node -v
v10.14.2
b4dnewz commented
Thanks for pointing this out, actually I had a misconfiguration in the search function signature, I've updated it fixing the problem and also updated the documentation.
thank you so much, the example code should work now, if the problem still persists with the new version 0.0.5 please reopen the issue