git-error invalid error path

linux运行shell脚本报错,提示syntax error near unexpected token `$'{\r''异常

最近运行一个shell脚本的时候,发现报syntax error near unexpected token `$’{\r’’ error。字面意思上看是换行符出现问题 用vim -b 查看,发现每一行多了~M解决方法:sed -i 's/\r//g' xxx.sh这样脚本就可以运行了——————— ......
脚本 unexpected 39 syntax linux

Angular 依赖注入错误消息:ERROR Error NullInjectorError No provider for XX

错误消息 ERROR Error: NullInjectorError: No provider for CustomI18nConfigInitializer! 应该如何处理? 我已经在 AppModule 里编写了如下代码啊: { provide: CONFIG_INITIALIZER, use ......

关于zuul中对于POST请求中path参数和form body中重复参数被过滤的情况

在使用zuul做转发功能时,发现当一个Content-Type为application/x-www-form-urlencoded;charset=UTF-8的POST请求中,path参数和body中的参数重复时,转发的时候会丢失body中的参数,下面是定位的过程 从请求进入ZuulServlet的 ......
参数 情况 zuul POST path

git push 出现fatal: unable to access 'http://xxx': The requested URL returned error: 403

问题: cch:requsetDatas leo$ git push origin master remote: Permission to bbb/requsetDatas.git denied to aaa. fatal: unable to access 'https://github.com ......
requested returned access unable fatal

nodejs连接mysql报错:throw err; // Rethrow non-MySQL errors TypeError: Cannot read property 'query' of undefined

该问题的解决方案如下: win+R 输入cmd mysql -u root -p 输入密码进入到mysql 3.执行sql语句,将密码改成123456(自己可以记住的密码即可) alter user 'root'@'localhost' identified with mysql_native_pa ......

error TS2339: Property '$route' does not exist on type

<template> <div id="app"> <router-view v-slot="{ Component }"> <keep-alive> <component :is="Component" :key="$route.name" v-if="$route.meta.keepAlive" ......
Property error route exist 2339

docker中的报错:Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist

在学习使用 docker 技术过程中,基于 centos 镜像自定义新的镜像,其中基础镜像 centos 需要提前安装好 vim 和 net-tools,然而在刚开始通过 yum -y install vim 安装 vim 时,便出现了错误提示信息: Error: Failed to downloa ......

Python errors All In One

Python errors All In One errors ❌ from: can't read /var/mail/gpiozero https://stackoverflow.com/questions/16069816/getting-python-error-from-cant-read ......
Python errors All One In

error while loading shared libraries: libxxx.so: cannot open shared object file: No such file or directory

发生这种问题就在于编译程序链接的库在运行时找不到,或者不存在,或者版本不正确等。使用ldd 你的应用程序|grep -i "libxxx"来查看程序中具体链接的库的位置和版本号,然后查看对应位置下是否有该共享库,如果没有,需要确定编译的时候指定的位置是否正确,如果仅仅是别名的问题,可以用ln创建一个 ......
shared file directory libraries loading

SpringBoot报错:Error resolving template [index], template might not exist or might not be accessible by any of the configured Template Resolvers

springboot项目正常启动,但是在访问页面的时候报错,错误信息如下: Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.​ ......

升级pip报错ERROR: Could not install packages due to an OSError: [WinError 5]

今天在安装python第三方库时,提示pip需要升级,没有多想直接升级,结果报错: 1 ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\\python\\scripts\\pip.exe' 2 ......
WinError packages install OSError ERROR

Go语言:编写一个 WebsiteRacer 的函数,用来对比请求两个 URL 来「比赛」,并返回先响应的 URL。如果两个 URL 在 10 秒内都未返回结果,返回一个 error。

问题: 你被要求编写一个叫做 WebsiteRacer 的函数,用来对比请求两个 URL 来「比赛」,并返回先响应的 URL。如果两个 URL 在 10 秒内都未返回结果,那么应该返回一个 error。 实现这个功能我们需要用到 net/http 用来调用 HTTP 请求 net/http/http ......
两个 URL WebsiteRacer 函数 语言

Mysql问题处理分享:SQLSTATE[HY000]: General error: 126 Incorrect

今天网站访问内容页突然报错: SQLSTATE[HY000]: General error: 126 Incorrect key file for table '.\数据库名\qb_cms_content1.MYI'; try to repair it 当mysql的临时文件大小设置太小,或者由于并 ......
Incorrect SQLSTATE General 问题 Mysql

MySqL Invalid GIS data provided to function st_geometryfromtext. 解决方法

最近需要通过geoserver显示多边形,首先需要先将数据库的数据转换为地理数据存储类型,但由于原本的信息是按text存储的,将text类型转换为geometry就需要用到ST_GeomFromText()函数,存储的是POLYGON。 在mysql使用该函数过程中,遇到了一个问题,报错是:3037 ......

Fatal error in launcher: Unable to create process using '"d:\software\python\python.exe"

Fatal error in launcher: Unable to create process using '"d:\software\python\python.exe" 问题发生: 是由于python 切换环境导致的。 本来python 放在D盘software 的python 中直接放置了 ......
python quot launcher software process

mac os上python报错 fatal error: 'Python.h' file not found

1. 安装python (可安装任意版本) brew install python@3.9 2. 创建虚拟环境 cd ~ /opt/homebrew/bin/python3.9 -m venv ai3.9 3. 激活虚拟环境 source ~/ai3.9/bin/activate 4. 安装 pip ......
Python python fatal error found

03-带参数的路由 和 re_path

###带参数的路由 # urls.py urlpatterns = [ # 路由不能以斜线 / 开头 # path 中的第三个参数name是路由的名称,和视图函数参数无关 # 如果没有指定参数类型,默认字符串类型,可以匹配除 / 和 空字符串之外的字符串 # 首页 path('', views.in ......
路由 参数 re_path path 03

ubuntu查看和修改PATH环境变量

总结:path变量其实存储在/etc/environment文件中,如果要重置PATH只需要source /etc/environment 1、查看PATH echo $PATH 2、修改PATH 修改ubuntu中PATH的方法: 直接修改$PATH值; 通过修改.bashrc文件进行设置; 通过 ......
变量 环境 ubuntu PATH

brew警告:调用 formula.plist_path 已被弃用!

Warning: Calling formula.plist_path is deprecated! Use formula.launchd_service_path instead.Please report this issue to the homebrew/services tap (not ......
plist_path formula plist brew path

解决vscode由于sys.path.insert(0, './utils/')导致无法转定义问题

由于代码用到了当前utils文件夹下的文件里面函数。 from xml_utils import load_xml_and_parse_new 这里xml_utils是utils文件夹下的xml_utils.py。 然后无法转定义很是麻烦,搞了半天没找到方法,然后当我把鼠标放在波浪号上面的时候会显示 ......
vscode insert 问题 utils path

无效或损坏的PDF文件。 更少信息关闭 PDF.js v1.1.159 (build: 82536f8) 信息:Invalid PDF structure

当我们需要预览一个pdf我们首选开源项目来做 https://github.com/mozilla/pdf.js 就是下载到本地然后看到文档把这个项目的文件复制到我们项目 然后启动项目 <a href="http://localhost:8088/web/viewer.html?file=http: ......
PDF 信息 structure 82536f8 Invalid

VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found

原因: VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found 出现的原因是你提供的视频连接可能没有扩展名导致,这样videojs无法知道视频的格式。 需要在type属性指定播放视频的格式 ......

修改ssh端口号之后报错:error: Bind to port xxxx on 0.0.0.0 failed: Permission denied.

报错内容: [root@BabyishRecent-VM ~]# vi /etc/ssh/sshd_config [root@BabyishRecent-VM ~]# systemctl restart sshd Job for sshd.service failed because a confi ......
Permission 口号 denied failed error

rocketmq 报错ERROR: Please set the JAVA_HOME variable in your environment, We need java(x64)! !!

以下命令全部按顺序执行 unlink /usr/bin/javacunlink /usr/bin/jarunlink /bin/java ln -s /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/bin/javac /usr ......

问题处理分享 SQLSTATE[HY000]: General error: 126 Incorrect

今天网站访问内容页突然报错: SQLSTATE[HY000]: General error: 126 Incorrect key file for table '.\数据库名\qb_cms_content1.MYI'; try to repair it 当mysql的临时文件大小设置太小,或者由于并 ......
Incorrect SQLSTATE General 问题 error

VS与VS Code中修改调试时PATH目录

主要是解决找不到dll的问题1. VS中修改调试时PATH目录2. VS Code中修改调试时PATH目录 ......
目录 Code PATH

Linux 中PATH、CLASSPATH等环境变量配置详解

#set java environment export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_79 export CLASSPATH=.:${JAVA_HOME}/lib/tools.jar:${JAVA_HOME}/lib/dt.jar export PATH=$JAV ......
变量 CLASSPATH 环境 Linux PATH

ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

安装mysql8后,本地登录成功,选择数据库报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 解决办法: 执行语句修改密码:s ......
statement executing password before ERROR

The proxy server received an invalid response from an upstream server

The proxy server received an invalid response from an upstream server. 经过排查发现是容器异常重启,造成的系统502响应; 具体重启原因:Back-off restarting failed container 阿里云 nas异常 ......
server received response upstream invalid