错误重拾
文章平均质量分 65
willgon123
这个作者很懒,什么都没留下…
展开
-
C# webapi接口传输byte[]数据,报错:415 Unsupported Media Type
C# webapi接口传输byte[]数据,报错:415 Unsupported Media Type原创 2023-05-31 16:02:13 · 2369 阅读 · 2 评论 -
gerapy部署项目报错:ModuleNotFoundError: No module named ...
gerapy部署项目报错:ModuleNotFoundError: No module named ...原创 2023-01-13 10:56:18 · 984 阅读 · 0 评论 -
gerapy运行scrapy程序,报错timeout
gerapy运行scrapy程序,报错timeout原创 2022-10-09 15:00:16 · 960 阅读 · 0 评论 -
HttpWebRequest + Authorization+Bearer一直:The remote server returned an error: (401) Unauthorized.
HttpWebRequest + Authorization+Bearer一直:The remote server returned an error: (401) Unauthorized.原创 2022-09-15 12:36:04 · 1160 阅读 · 0 评论 -
An error occurred while processing your request...enable the Development environment by setting ...
web项目部署到本机,访问时发生异常:Error.An error occurred while processing your request.Request ID: |ee4a30bd-4030df869db691a6.Development ModeSwapping to Development environment will display more detailed information about the error that occurred.The Developmen..原创 2022-04-20 20:05:04 · 3420 阅读 · 0 评论 -
python中json.loads报错: Expecting ‘,‘ delimiter: line 1 column 3545 (char 3544)
在python中使用json.loads报错: Expecting ',' delimiter: line 1 column 3545 (char 3544)原因:json字符串为:jsonStr = "params": {"param2":"[ type:\"B\", ms:\"E\", t:\"243\"]"我的param2的参数值其实是二次封装成的字符串,但是json.loads()在解析时,把param2中的\"解析为了一个转义的双引号("),导致整体解析失败。解法:在解析原创 2022-04-01 09:29:21 · 14008 阅读 · 0 评论 -
python使用requests获取内容编码后仍然乱码:c\x00\xa0a\x00@6s\xd6\x1b\x1f\x7f\xd5\x07\x14\x17\x17C\x07\x88\xaa
使用requests+代理获取某个网站内容时,一直乱码,源代码是这样的:headers: "headers": { "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "accept-encoding": "gzip, deflate,原创 2022-03-08 11:45:36 · 1790 阅读 · 1 评论 -
python使用requests+代理proxy报错:EOF occurred in violation of protocol (_ssl.c:1123)
在使用python获取别人的网站内容时,使用了requests+proxy代理,结果报错了:HTTPSConnectionPool(host='www.somewebsite.com',port=443):Maxretriesexceededwithurl:/en/products/power.html(CausedbySSLError(SSLEOFError(8,'EOFoccurredinviolationofprotocol(_ssl.c:1123)')))原代码...原创 2022-03-07 14:44:44 · 9444 阅读 · 8 评论 -
未能找到 CodeDom 提供程序类型
今天我的程序遇到了一个问题,导致程序无法启动了:未能找到 CodeDom 提供程序类型“Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider,Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=n原创 2016-05-19 10:49:13 · 27404 阅读 · 6 评论 -
MySQL子查询优化-子语句含有group by时
当我使用Mysql进行下列语句的查询时:select count(1) from jy_info_user where user_card != '' and id IN (select id from jy_erp.jy_info_user where ifnull(user_card,'')!='' group by user_card HAVING count(1)=1 )原创 2016-01-26 23:25:40 · 9923 阅读 · 2 评论 -
更改TreeView的节点名
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) //节点鼠标单击事件{treeView1.LabelEdit = true; //允许出现编辑状态downnum = e.Clicks; //记录按下次数if (downnum >= 2){treeV原创 2014-07-19 22:19:06 · 1514 阅读 · 0 评论 -
Self referencing loop detected for type 'System.Data.Entity.DynamicProxies.Rpt_StatementInfo_F31C84C
Self referencingloop detected for type'System.Data.Entity.DynamicProxies.Rpt_StatementInfo_F31C84CFA14C8F32766DC05DA795BB03302565E4996B8E5D3B126F66EA44B1A9'.我是在使用Entity Frame Work的M原创 2014-11-10 16:53:25 · 1886 阅读 · 0 评论 -
接口调用失败,失败原因:在 ServiceModel 客户端配置部分中,找不到引用协定的默认终结点元素
public string GetEndPointAddressByName(string name) { string configUrl = ""; ClientSection clientSection = (ClientSection)WebConfigurationManager.GetSection("system.原创 2014-11-21 14:23:23 · 11573 阅读 · 0 评论 -
违反了 UNIQUE KEY 约束 'UNQ_CusID_DetachPolicyID'。不能在对象 'dbo.CustomerAccount' 中插入重复键。 语句已终止。 警告: 聚合或其
违反了 UNIQUE KEY 约束 'UNQ_CusID_DetachPolicyID'。不能在对象'dbo.Biz_CustomerAccount' 中插入重复键。 语句已终止。 警告: 聚合或其他 SET 操作消除了 Null 值。wo原创 2014-11-07 10:18:30 · 10675 阅读 · 0 评论 -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://......dtd">
返回信息总出现:在WebService服务中,有时候因为特殊的需要,需要在服务中使用页面,比如.aspx页面。在页面中,只有逻辑处理代码,如下: try { String Str=........; ...... Response.Write(S原创 2015-01-27 15:15:41 · 2399 阅读 · 2 评论 -
使用Linq时,根据特定的字符串名称,找到对应字段并获取值
var monitor = _consumlogService.GetErrorDetail(); // 获取数据var monitorcol = _consumlogService.GetErrorDetailColumns(); //获取列名string JsonStr = "";foreach (var m in monitor) //循环数据{ int原创 2014-12-18 14:33:14 · 2385 阅读 · 0 评论 -
使用Entity FrameWork的连接字符串时报错
我使用了两种方式:第一次使用:DB_HlgHealth_DevEntities context = new DB_HlgHealth_DevEntities(); { SqlConnection con = new System.Data.SqlClient.SqlConnection(); con.Connect原创 2015-01-08 16:56:36 · 2147 阅读 · 0 评论 -
C#中改变ContextMenuStrip中ToolStripMenuItem的顺序
在ContextMenuStrip中,没有为ToolStripMenuItem安排顺序的属性原创 2014-07-19 22:54:09 · 4334 阅读 · 0 评论