0x00 故障 由于GuzzleHttp在iis上使用错误,于是开始替换其为Unirest,没想到发送了一个curl Array to string conversion 错误 0x01 原因 跟踪调用流程,发现是在curl_setopt时设置CURLOPT_POSTFIELDS后抛出的异常. 查看php文档原因是 CURLOPT_POSTFIELDS setting using an array. The array used to set the POST fields must only…
写在前面: 第一次配置时好好的,后来第二次改到MVC模式,把依赖注入写成字典的单例模式时,由于新建的ORM(数据库映射模型EF),怎么弄都不用,一直报错"No connection string named '**Context' could be found in the application config file"(配置文件中找不到数据库context连接)调试了两小天问题,终于想到了是没有把EF模型中appconfig中的数据库连接复制到项目webconfig中导致的!!!…
报错:required string parameter XXX is not present 不同工具发起的get/delete请求,大多数不支持@RequestParam,只支持@PathVariable形式 若api在调用的时候,如果存在重类型,但不重名:例如:/id与/name,两者在类型上是一样…
报错如下: Warning: Illegal string offset '阿根廷' in F:\wnmp\www\test.php on line 24 Warning: Illegal string offset '中国' in F:\wnmp\www\test.php on line 24 Warning: Illegal string offset '印尼' in F:\wnmp\www\test.php on line 24 原因: 原始代码如下 <?php $area = '';…