草庐IT

微信小程序报错“getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.js...“

解决微信小程序获取定位报错上个礼拜在调试一个微信小程序的时候,在手机允许小程序获取定位、定位授权成功的情况下,发现安卓手机能获取定位,但是苹果手机获取不到定位,我就开始查阅资料…一、报错信息报错信息是errMsg:“getLocation:failtheapineedtobedeclaredintherequiredPrivateInfosfieldinapp.json/ext.json”,如下图所示二、解决办法-查阅资料后,发现今年7月份更新了API地理位置相关接口要求调用前进行准入申请去官方文档查阅小程序接口权限相关设置配置信息(官网链接)//PermissionObject结构{ "pa

Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]

Elasticsearchexception[type=mapper_parsing_exception,reason=Failedtoparsemapping[properties]:Rootmappingdefinitionhasunsupportedparameters: 我们在使用RestClient创建索引库时出现了这个错误。可以检查一下CreateIndexRequest类型变量request是否导入正确的包有两个同名的包,我们选择:importorg.elasticsearch.client.indices.CreateIndexRequest;创建的索引库DSL语法示例: 

vite项目在jenkins自动打包报错:failed to load config from ../vite.config.js You installed esbuild on

vite项目在jenkins自动打包报错找不到esbuild-linux-64在window环境开发用的找不到esbuild-windows-64,在linux环境构建需要使用esbuild-linux-64,找不到esbuild-linux-64就会报错实际报错:errorduringbuild:11:21:11Error:11:21:11Youinstalledesbuildonanotherplatformthantheoneyou'recurrentlyusing.11:21:11Thiswon'tworkbecauseesbuildiswrittenwithnativecodeand

关于Elasticsearch 报错failed to obtain node locks....

在学习Elasticsearch的时候出现了一下错误:版本:7.12.1java.lang.IllegalStateException:failedtoobtainnodelocks,tried[[/usr/share/elasticsearch/data]]withlockid[0];maybetheselocationsarenotwritableormultiplenodeswerestartedwithoutincreasing[node.max_local_storage_nodes](was[1])?主要解决方法主要原因有三种:1、进程冲突:通过ps-aux|grepelastic

kibana无法连接Elasticsearch all shards failed

报错如下:UnabletoconnecttoElasticsearch.Error:[search_phase_execution_exception]allshardsfailed解决办法:运行(运行完这一部,一般就会解决问题)curl-XDELETEhttp://localhost:9200/.kibana_task_manager_1如果有密码,根据提示输入密码curl-XDELETEhttp://localhost:9200/.kibana_task_manager_1-uusername运行(删除所有索引)谨慎运行此步骤curl-XDELETEhttp://localhost:920

(已解决)docker启动容器错误:docker: Error response from daemon: OCI runtime create failed

 问题原因借鉴docker启动容器错误:docker:Errorresponsefromdaemon:OCIruntimecreatefailed-元宇宙-Metaverse-博客园(cnblogs.com)报错信息的前半部分出现了两个路径“/mydata/elasticsearch/config/elasticsearch.yml”和“/usr/share/elasticsearch/config/elasticsearch.yml”,前一个是我外部主机上的路径,后一个是docker安装的es里面的地址。我的错误就是因为,我在外部创建/mydata/elasticsearch/config/

TypeError: Failed to execute ‘createObjectURL‘ on ‘URL‘: Overload resolution failed

//request.jsservice.interceptors.response.use((response)=>{constres=response.data//下载文件if(!res.code){returnresponse}...},(error)=>{ ...}exportfunctiondownloadQrcode(params){returnrequest({url:'/multiplayer-draw/download-qrcode',method:'get',//headers:{'Content-Type':'image/png;charset=UTF-8'},respon

鸿蒙 harmonyos DevEco-Studio 报错 UNINSTALL_FAILED_INTERNAL_ERROR

问题问题排查方案确认是否正确安装了hdc查看hap是否编译成功尝试使用hdc安装确认是否正确安装了hdchdc是包含在鸿蒙的工具包中的,具体的环境配置可以参考鸿蒙官方文章:鸿蒙环境配置hdc的使用相关使用文档官方也有写:hdc使用指导查看hap是否编译成功在项目目录的build/outputs/hap/debug文件下。如project名是testProject,那么hap文件路径为:testProject/build/outputs/hap/debug/testProject-debug-rich-signed.hap尝试使用hdc安装具体可以参考官方文章:hdc使用指导命令为:hdcapp

elasticsearch创建索引报[type=mapper_parsing_exception, reason=Failed to parse mapping [_doc]......

小伙伴们,你们好,我是老寇经过反复排查,发现是安装的pinyin和ik分词版本不对,只需要修改成与es版本一致即可es7.6.2举例1.在windows界面用压缩软件打开elasticsearch-analysis-ik-7.6.2.jar2.将pom.xml拖出到桌面3.修改版本4.将pom.xml放回压缩包(原路放回)5.elasticsearch-analysis-pinyin-7.6.2.jar重复步骤1,2,3,46.重启elasticsearch大功告成

解决fatal: unable to access ‘https://github.com……‘: Failed to connect to

问题:git clone项目执行时,报错fatal:unabletoaccess……解决方法:在cmd下执行ipconfig/flushdns 清理DNS缓存ipconfig/flushdns重新执行gitclonehttps://github.com/…/.git/’ 即可gitclone项目地址