Giter VIP home page Giter VIP logo

Comments (5)

ceeeekay avatar ceeeekay commented on August 22, 2024

+1 for this, also if I use (@listname) in parentheses, and try to use a line- or comma-separated lists, I get Catch all: Invalid list and the following in my web logs:

[Tue Jan 22 14:40:34.278005 2019] [:error] [pid 11453] [client 192.168.2.72:35670] except [NONE] ESQuery\\SyntaxError: "
Invalid list" at [/var/www/411/vendor/kiwiz/esquery/src/InternalParser.php:240] 0:[ESQuery\\InternalParser->peg_buildExc
eption() called at [/var/www/411/vendor/kiwiz/esquery/src/InternalParser.php:131]] 1:[ESQuery\\InternalParser->error() c
alled at [/var/www/411/vendor/kiwiz/esquery/src/InternalParser.php:4159]] 2:[ESQuery\\InternalParser->ESQuery\\{closure}
() called at [:0]] 3:[call_user_func() called at [/var/www/411/vendor/kiwiz/esquery/src/InternalParser.php:3277]] 4:[ESQ
uery\\InternalParser->peg_parseQueryClause() called at [/var/www/411/vendor/kiwiz/esquery/src/InternalParser.php:2798]]
5:[ESQuery\\InternalParser->peg_parseQueryUnaryNOT() called at [/var/www/411/vendor/kiwiz/esquery/src/InternalParser.php
:2633]] 6:[ESQuery\\InternalParser->peg_parseQueryNOT() called at [/var/www/411/vendor/kiwiz/esquery/src/InternalParser.
php:2520]] 7:[ESQuery\\InternalParser->peg_parseQueryAND() called at [/var/www/411/vendor/kiwiz/esquery/src/InternalPars
er.php:2429]] 8:[ESQuery\\InternalParser->peg_parseQueryOR() called at [/var/www/411/vendor/kiwiz/esquery/src/InternalPa
rser.php:2401]] 9:[ESQuery\\InternalParser->peg_parseQueryCommand() called at [/var/www/411/vendor/kiwiz/esquery/src/Int
ernalParser.php:482]] 10:[ESQuery\\InternalParser->peg_parseRoot() called at [:0]] 11:[call_user_func() called at [/var/
www/411/vendor/kiwiz/esquery/src/InternalParser.php:4223]] 12:[ESQuery\\InternalParser->parse() called at [/var/www/411/
phplib/Search/Elasticsearch.php:91]] 13:[FOO\\Elasticsearch_Search->constructQuery() called at [/var/www/411/phplib/Sear
ch.php:272]] 14:[FOO\\Search->execute() called at [/var/www/411/phplib/Job/Search.php:58]] 15:[FOO\\Search_Job->_run() c
alled at [/var/www/411/phplib/REST/Searches.php:212]] 16:[FOO\\Searches_REST->test() called at [/var/www/411/phplib/REST
/Searches.php:60]] 17:[FOO\\Searches_REST->POST() called at [/var/www/411/phplib/REST.php:108]] 18:[FOO\\REST->route() c
alled at [/var/www/411/htdocs/api/searches.php:6]], referer: https://411.domain.com/searches/new?type=es
[Tue Jan 22 14:40:34.345678 2019] [:error] [pid 11453] [client 192.168.2.72:35670] err [JOB] Search error id:[] job_id:[
] ignorable:[] errors:[0:[Catch all: Invalid list]], referer: https://411.domain.com/searches/new?type=es

The list config is reporting Valid, and the correct count for the list.

Note that my list consists of FQDNs, which contain dashes and dots, and I'm unsure if these need escaping.

I attempted to use a JSON list to see if quoted values made any difference, but as there's no example JSON in the docs I can't get past Invalid data from url

e.g., {"list":["prod-web1.domain.com","prod-web2.domain.com"]}

411: 1.5.0
ES: 6.5.4

from 411.

dsvetlov avatar dsvetlov commented on August 22, 2024

I investigated similar problem with JOIN operator for searched. It rises same exception. My journey leads me to the problem that ttl was a possible parameter few years ago when you create documents. Leter it was deprecated and but stil was acceptable by ES. Nowdays ES doesn't accept it and return error. I'm not sure where it parameter uess but started from ull request to official php client here.
elastic/elasticsearch-php#894

from 411.

dsvetlov avatar dsvetlov commented on August 22, 2024

So finally I found solution of my problem. You can find my PR here kiwiz/esquery#2
You need to rebuild your container with this updated ESQuery lib.

from 411.

gromit6891 avatar gromit6891 commented on August 22, 2024

@dsvetlov Good find. How can the container be rebuilt with this ESQuery lib?

from 411.

dsvetlov avatar dsvetlov commented on August 22, 2024

Below you can find my repo with fixed docker and composer files.
https://github.com/dsvetlov/411

from 411.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.