anyproxy SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 4 column 1 of the JSON data

brvekthn  于 2022-11-19  发布在  其他
关注(0)|答案(2)|浏览(235)

复制 http://anyproxy.io/cn#规则模块(rule)修改返回内容并延迟中的脚本保存到本地,按照步骤运行
配置浏览器代理后,打开 http://httpbin.org/user-agent 提示SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 4 column 1 of the JSON data

Which platform are you running AnyProxy

Ubuntu 16.04

The version of the AnyProxy

AnyProxy 4.0.0-beta18

Your expected behavior of AnyProxy

和文档结果一致

The actual behavior of AnyProxy

提示SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 4 column 1 of the JSON data

The log of the error
1szpjjfi

1szpjjfi1#

@migismile
我无法重现这个错误,这个异常有没有更详细的信息,比如是怎样的json,在哪一行出的错?

1szpjjfi

1szpjjfi2#

@codingfishman 不好意思,没有更多的日志。我后面用curl命令进行测试,是可以的。显示
{
"user-agent": "curl/7.43.0"
}

  • AnyProxy Hacked!
    但是用firefox 56.0 (64 位)打开就是报这个错误

相关问题