问题标签 [malformed]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
tcp - recv function gives malformed data Winsock2 C++
In my simple TCP client server application, server send repetitively 1 kB message to the client and client send a reply acknowledgement (just send 'ACK') for each packet. Just think this scenario like client and server passing 1 kB messages here and there in a infinite loop.
I send the same message every time and the fist byte (first char) is always 1. But while testing this client and server application in the same machine for a long time, I noticed first character of some of the received messages are something else in the receive buffer and recv
function also returned 1024 (1 kB). This is not happen frequently.
This is the how I receive.
Actually the problem is in constructing the temp string. It breaks since the correct fragment size not received. I tried to drop these kind of malformed data. But the problem is there is a gap between last successfully received fragment ID and first successfully received fragment ID after malformed receives. Any idea why these malformed receives happen?
php - 来自脚本的格式错误的标头。错误的标头=1:index.php
我有一个几年前的网站,它基本上提供下载。
无论如何,由于移动服务器人们无法下载文件,因为它现在给出错误 500 错误,并且在日志文件中它带来了这个错误:
来自脚本的格式错误的标头。错误的标头=1:index.php
无论如何,与此相关的唯一代码是:
现在,如果我只是输出:
它输出大量加密文本,因此它显然在读取某些内容。
我读到的是标题不正确,但是在阅读了 php.net 以及其他网站中的大量内容之后,这看起来很好。
谁能大喊我为什么会收到这些错误?
谢谢
ios - Xcode 构建时出现格式错误
我遇到了三个以前从未见过的奇怪错误。谁能帮我找到解决这些错误的方法?
Definition of CGAffineTransform (aka struct CGAffineTransform) must be imported from module CoreText.CTFontDescriptor before it is required
'无法加载模块“/Users/dev/Library/Developer/Xcode/DerivedData/ModuleCache/17NOBVXZ77TGU/Foundation.pcm”:模块文件过期'
AST 文件格式错误或损坏:'找不到文件'/Users/dev/Documents/App Projects/projectname/./CoreGraphics.framework/Headers/CGAffineTransform.h' AST 文件引用'
javascript - 在具有多个 id 的目标页面上,脚本仅作用于第一个
我正在使用 Greasemonkey 填写一个文本框。它正在工作,但是页面有多个<input>
具有相同 id 的页面,而 GM 仅填写第一个。
页面的 HTML(重复 3 次):
我的 GM 代码:
我怎样才能设置第二或第三<input>
呢?
java - Rally REST 查询抛出 MalformedJsonException
我正在尝试从 Rally 数据库中查询某些内容。现在我只是想确保我最初可以通过。这段代码:
给我这个错误:
有人可以解释为什么会这样吗?我的代码错了吗?如果我需要按照错误提示进行操作并设置 Json.lenient(true),请向我提供有关如何使用我的代码执行此操作的说明。
谢谢!
android - Android清单安装解析失败清单格式错误
我将我的 Android 项目从 PC 切换到了 Mac,此后一直无法编译。我看到所有这些建议,例如重命名和添加“。” 在包名称前面,但从我所见,它们都不适用于我的项目。我知道这是一个非常简单的解决方法,我似乎无法弄清楚。如果您能提供帮助,非常感谢。
我不断收到以下信息
我的清单文件在这里
这是logcat
android - 安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED 任何建议
**每个有相同问题的人都有具体的问题,没有一个对我有用
我很确定问题出在此处和我最后一个意图过滤器行之间
json - 在 Swift 中格式化格式错误的数据以供 JSON 使用
此查询的输出:
http://chartapi.finance.yahoo.com/instrument/1.1/AAPL/chartdata;type=close;range=1d/json/
给出的数据在使用 AFNetworking 处理 JSON 时会出错。我能够下载如下所示的数据,但现在需要将股票数据 - unix 时间和价格 - 放入数组中以进行绘图。我是编码新手,所以文本解析是一项新兴技能。
建议?
php - facebook 格式错误的访问令牌
在阅读了关于 stackoverflow 的所有 tuts 和问题之后,我仍然没有得到它的工作代码:
The answer is:
{"data":{"error":{"message":"Malformed access token AQB6hhoeZJ1SR5RqtPp-iEDEd1Fg38GV95tW2YrVR9EfK6Y8H7QgcrSr8uagegIpKa4rPI7z4qSw45COZZL1XMDUuigsrBLNg5NKXl2bd9GPYC1Qo5peH81mGqP6LqK-orL3uqCH3Bta3kHOGp76RmK8p391soS47ZR8WE5gNx6s35qctgoHuWE47R0w93GeNglRxu2IUtVsGhZgyGiA9l12BMq9NX5O9Kcp2DupVqWs67Vnqz8MntrTx-AzbFhdHrYtWOhmFb8WybrT3ZuGqETZEAGc9JOTuhiHJW3Elp_rE7IWA50MIWsAaqM77fuI1Go","code":190},"is_valid":false}}
$code is given通过从 facebook 登录调用此 uri:
https
://www.facebook.com/dialog/oauth?client_id=APP_ID&redirect_uri=http://www.mineforce.de/ms/fblogin.php?username=USERNAME
我不明白为什么访问令牌应该是错误的,因为我们是通过 facebook 本身获得的。
可以在这里找到打印件等:
http://www.mineforce.de/ms/fblogin.php?username=phibedy&code=AQB6hhoeZJ1SR5RqtPp-iEDEd1Fg38GV95tW2YrVR9EfK6Y8H7QgcrSr8uagegIpKa4rPI7z4qSw45COZZL1XMDUuigsrBLNg5NKXl2bd9GPYC1Qo5peH81mGqP6LqK-orL3uqCH3Bta3kHOGp76RmK8p391soS47ZR8WE5gNx6s35qctgoHuWE47R0w93GeNglRxu2IUtVsGhZgyGiA9l12BMq9NX5O9Kcp2DupVqWs67Vnqz8MntrTx-AzbFhdHrYtWOhmFb8WybrT3ZuGqETZEAGc9JOTuhiHJW3Elp_rE7IWA50MIWsAaqM77fuI1Go# =
Secondly I dont get why fb puts # = at the end of the token
干杯:)
sqlite - sqlite 数据库正常但 jdbc 报告数据库磁盘映像格式错误
我有一个新创建的 sqlite 数据库,它有点大:大约 6.3GB。我通过 sqlite 命令行工具使用它没有问题。当我尝试使用 JDBC(groovy 脚本)连接时,出现异常:
然后我从 sqlite 命令行工具运行:
pragma integrity_check;
它报告了:ok
我针对具有单行的单个表的新数据库尝试了 groovy 脚本,它似乎可以工作。
有什么建议么?
使用:
jdk1.7.0_60
groovy-2.3.4
sqlite-jdbc-3.7.2
常规脚本: