ES:ERROR : NotXContentException: Compressor detection can only be called on some xcontent

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ES:ERROR : NotXContentException: Compressor detection can only be called on some xcontent相关的知识,希望对你有一定的参考价值。

参考技术A ES:ERROR : NotXContentException: Compressor detection can only be called on some xcontent

有文章提到是:ES 创建文档时 多次转JSON 格式化报错

其实这个就是JSON格式化错误。

解决方法:

就是检查生成的JSON字符串格式是否正确。

如果通过Curl操作的话,mappings 指定一个文件,那么参考下面的链接:

“not_x_content_exception” while trying to PUT simple file with column mappings into ES via cURL

“not_x_content_exception” while trying to PUT simple file with column mappings into ES via cURL

本文地址: https://www.jianshu.com/p/b0c974c02177

系列文章: ELK Stack 小白闯关

core-js/modules/es.error.cause.js 报错

This dependency was not found:
core-js/modules/es.error.cause.js in ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js, ./src/directive/permission/hasPermi.js and 5 others

To install it, you can run: npm install --save core-js/modules/es.error.cause.js
————————————————
版权声明:本文为CSDN博主「前端小白多多指教」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/xin_666/article/details/123508389

解决方法:
1、先删除 node_modules 依赖
npm rm -rf node_modules

2、首先安装 报错的插件
npm install --save core-js
3、最后再 npm install 或者 yarn install
npm install
yarn install
4、最后 npm run dev 运行启动
npm run dev
————————————————
版权声明:本文为CSDN博主「前端小白多多指教」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/xin_666/article/details/123508389

以上是关于ES:ERROR : NotXContentException: Compressor detection can only be called on some xcontent的主要内容,如果未能解决你的问题,请参考以下文章

ErrorThis dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/@babel

git pull 报错 error: cannot pull with rebase: Your index contains uncommitted changes.

git pull 报错 error: cannot pull with rebase: Your index contains uncommitted changes.

git pull --rebase 报错 error: cannot pull with rebase: Your index contains uncommitted changes.

git pull --rebase 报错 error: cannot pull with rebase: Your index contains uncommitted changes.

vue报错笔记These dependencies were not found:* core-js/modules/es.....to install them, you can