草庐IT

问题记录:jenkins流水线报错ERROR: Couldn‘t find any revision to build. Verify the repository and branch config

原因1:gitlab本身配置不正确注意配置的gitlab仓库地址是否正确,是否少一个端口号,这是gitlab本身问题,导致的URL不正确。gitlab配置不正确时可能如下:git@192.168.130.131/xxx/yyy.git也就是clone时去访问80端口去了?而实际上宿主机80端口已被占用为其他组件的访问地址,此时去访问80的xxx/yyy.git能访问到才怪呢。流水线脚本中最终所填正确的URL格式如下(gitclone时可看到):ssh://git@192.168.130.131:29000/xxx/yyy.git其中29000是ssh连接端口,在gitlab配置文件gitlab

请求报错Required String parameterid‘is not present

关于ajax请求spring后台出现RequiredStringparameterid’isnotpresent异常如果前端传入的是ison数据那么后端使用@RequestBodyHashMapmap进行接收,然后再通过map.get(“id”)获取对应的数据如果前端传入的是正常表单数据,那么后端使用@RequestParam("id")Stringid或者@RequestParam(value="id",required=false)Stringid接收参数需要注意的是,如果请求类型为delete并且参数类型不是ison的话,不能使用通过表单类型提交,参数需要跟到请求ur后面,并且后台使用@

Module not found: Error: Can‘t resolve ‘core-js/modules/es.promise.js‘

1.遇到的问题  具体错误: ERRORin./src/js/index.js1:0-48产环境配置15js兼容性处理srcjs'ERRORin./src/js/index.js2:0-39Modulenotfound:Error:Can'tresolve'core-js/modules/es.promise.js'in'D:DesktopMyFilesRecentlyStudyWebPackdemo3.webpack生产环境配置15js兼容性处理srcjs'ERRORin./src/js/index.js3:0-39Modulenotfound:Error:Can'tresolve'core

Could not read document: Unrecognized token ‘xxx‘: was expecting (‘true‘, ‘false‘ or ‘null‘)错误的解决方法

文章目录1.复现错误2.分析错误3.解决错误4.文末总结1.复现错误今天写好导入hive表的接口,如下代码所示:/***hive表导入**@authorsuper先生*@datetime2023/3/20:16:32*@return*/@ResponseBody@PostMapping(value="/xxx/importTables")publicServiceStatusDatalocalHiveImportTables(@RequestBodyImportTablesBoimportTablesBo,@RequestHeader("x-userid")LonguserId){logger

AttributeError: ‘Arrow3D’ object has no attribute ‘do_3d_projection’ 的修正

AttributeError:‘Arrow3D’objecthasnoattribute‘do_3d_projection’的修正一、错误来源最近在读《程序员数学:用Python学透线性代数和微积分》,其中“第三章上升到三维世界”的主要内容是,把二维向量拓展到三维空间,并用matplotlib来作图示意。大多数的画图功能都能展示,只是在画“三维箭头”图形的时候,系统报错“AttributeError:‘Arrow3D’objecthasnoattribute‘do_3d_projection’”。有人建议,安装matplotlib3.4的版本来规避此问题,据说是3.5版本以后都会出现此问题。但

记Vite打包时出现的报错解决:<script src=“xxx.js“> in “/index.html“ can‘t be bundled without type=“module“ attrib

本篇博客记录解决Vite打包时报错:in"/index.html"can'tbebundledwithouttype="module"attribute或xxx.cssdidn'tresolveatbuildtime,itwillremainunchangelremainunchangedtoberesolvedatruntime当我们通过标签 引入js脚本代码时,出现:can'tbebundledwithouttype="module"attribute,报错大致意思是我们引入js文件时缺少了type='module'属性。 关于标签的属性type=‘module’,如果有疑惑,请看文章:在

ImportError: cannot import name ‘TouchActions‘ from ‘selenium.webdriver‘

今天踩了一个坑:  需要使用selenium-wire抓取请求heads信息,直接用命令pipinstall selenium-wire安装后,调试代码一直报cannotimportname'TouchActions'from'selenium.webdriver'开发环境:selenium 版本4.11.2(用pipshowselenium 查看版本)selenium-wire版本2.5.2 (用pipselenium-wire 查看版本),用pipinstallselenium-wire命令没有指定版本号安装的python 3.7一步一步跟进问题:1、在selenium-wire的webd

解决python报错 UnboundLocalError: local variable ‘labels’ referenced before assignment

python报错:UnboundLocalError错误原因:这个错有部分原因是在使用if--elif--else语句时,丢失了else部分导致的.其他原因可参考其他博主的解决方法.错误复现:defex(a):ifa>0:b=0elifa0:b=1returnbprint(ex(0))UnboundLocalError:localvariable‘b’referencedbeforeassignment解决方法:补上else就好了defex(a):ifa>0:b=0elifa0:b=1else:raiseValueError("parameter'a'cannotbe0!")returnbpr

【python读取nc文件】报错:ValueError: unrecognized engine netcdf4 must be one of: [‘store‘]

写在最前面尝试2019华为杯E题,但是报错:ValueError:unrecognizedenginenetcdf4mustbeoneof:[‘store’]Outputistruncated.Viewasascrollableelementoropeninatexteditor.Adjustcelloutputsettings…最终解决报错1:ValueError:foundthefollowingmatcheswiththeinputfileinxarray’sIObackends:[‘netcdf4’,‘h5netcdf’].Buttheirdependenciesmaynotbeins

git commit使用husky工具格式化时报错“error: cannot spawn .husky/commit-msg: No such file or directory Couldn‘t”

背景使用husky工具对gitcommit信息格式化,配置好commit-msg文件后,使用gitcommit报错‘error:cannotspawn.husky/commit-msg:NosuchfileordirectoryCouldn’tstarthook‘.husky/commit-msg’二、解决办法解决办法是把#!/usr/bin/envsh放到第一行,上边其他信息全部删掉,我这个是之前有文件注释,全部删掉之后就好了现在就可以运行啦三、具体实现:husky+commitlint检查提交描述是否符合规范要求使用gitcz规定gitcommit信息后,感觉还是麻烦,还要选,想着直接gi