-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
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
Error: cannot represent value: ["open", "closed"] #115
Comments
@carloszimm I'm having the same issue I'm using
|
I ran into this also. Seems a bit broken. I've managed to locate why the error occurs and it's because enum cannot be represented with two default values. Seems to have been this way through a lot of API-versions so there must have been some change in I think the offending lines are here https://github.com/elastic/elasticsearch-js-legacy/blob/16.x/src/lib/apis/7_x.js#L3691-L3696 |
I made a fork of This fixes the problem for me. If anyone else wanna give it a try change Elasticsearch seems to have released a new library for Node which looks like a re-write. Thus the "legacy" part in the library which Someone with more insight might be able to investigate this further and find the real issue. |
Yeah, @slackday. I was starting to suspect that the problem was somewhat related to that update and how it's handled in the graphql-compose-elasticsearch parser. I don't think you should open a PR, after all your fix should be more like a temporary fix until someone come up with some idea about how to fix the problem in the source code. Additionally, I think the readme should be updated. Instead of pointing out that "Supported all elastic versions that support official elasticsearch-js client", where there is a link to the new elasticsearch client, the link should point to the legacy library hence indicating the de facto supported elastic versions (for the legacy library). |
I'm still reproducing this issue. Is there by any chance a stable version. |
Hi, guys!
I've been trying to use this module in a project of mine that runs a express server, but for some reason the following error message always comes up:
My code is practically the same as the one in the example.
I've already tried to downgrade (until the 5.8 version) and even upgrade the elasticsearch version but the message always shows up.
I'm using the 7.2 elasticsearch docker image (along with other images/containers with docker-compose).
Dependencies (related to the module) in the package.json:
"elasticsearch": "^16.0.0",
"graphql-compose": "^7.0.4",
"graphql-compose-elasticsearch": "^4.0.10"
The stacktrace:
Do you guys have any idea how to solve this issue?
Thanks
The text was updated successfully, but these errors were encountered: