Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRequestOptions type says body can't be null but it can #1291
Labels
Comments
|
Good catch! Would you like to send a pull request? :) |
villasv
added a commit
to villasv/elasticsearch-js
that referenced
this issue
Sep 4, 2020
Fixes elastic#1291
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


This is the definition on
Connection.d.ts:To Reproduce
I've been using this class to provide authenticated connection with AWS Elasticsearch:
When using the connection, it throws with
body type unhandledbecauseparams.bodyisnull.Expected behavior
The typing should say it can be null, or it should never be null.
Your Environment
@elastic/elasticsearchversion: >=7.9.0