很好用,谢谢
问题解决,是忘记启动客户端了。。。
。。。我折腾了好久,试了了好多个版本,用 v4.9.1 这个版本才行。。。
嗯,这个不知道是什么东西,通过调整 node 和 g++ 等的版本解决了,使用的 node-v4.9.1-linux-x64,你用过 log.io 没,这个是正常的访问页面不,为什么没有取到日志信息
百度的时候看到有类似的也说是 python 版本不对,但是我这个提示信息中就没有提到 python 所以没往这边考虑。折腾了四五个 node 版本,都不管用,感觉环境要被我玩坏了。。。
等着开发提测新包,趁着这个间隙想把 log.io 捣鼓下,有没有大神帮忙看下报错是什么意思?
看了一下,大致和我的安装方法是一样的。
我参考的是这:https://blog.csdn.net/shootyou/article/details/48347847
特羡慕你们一眼能看出问题所在,像我百度了都没百出来。。。
https://blog.csdn.net/shootyou/article/details/48347847,参照这个进行安装的,前几步遇到好几个坑,到这一步实在走不动了。。。求帮助
安装的时候遇到问题啦,能帮忙看看报错咋解决不
[root@localhost ~]# cnpm install -g log.io --user 'root'
Downloading log.io to /usr/local/lib/node_modules/log.io_tmp
Copying /usr/local/lib/node_modules/log.io_tmp/_log.io@0.3.4@log.io to /usr/local/lib/node_modules/log.io
Installing log.io's dependencies to /usr/local/lib/node_modules/log.io/node_modules
[1/9] underscore@~1.4.3 installed at node_modules/_underscore@1.4.4@underscore
[2/9] backbone@~0.9.10 installed at node_modules/_backbone@0.9.10@backbone
[3/9] coffee-script@~1.4.0 installed at node_modules/_coffee-script@1.4.0@coffee-script
[4/9] jquery-browserify@~1.8.1 installed at node_modules/_jquery-browserify@1.8.1@jquery-browserify
[5/9] winston@~0.6.2 installed at node_modules/_winston@0.6.2@winston
[6/9] express@~3.0.1 installed at node_modules/_express@3.0.6@express
[7/9] socket.io-client@~0.9.11 installed at node_modules/_socket.io-client@0.9.17@socket.io-client
[8/9] socket.io@~0.9.13 installed at node_modules/_socket.io@0.9.19@socket.io
jquery@1.8.3 › contextify@~0.1.3 found binding.gyp file, auto run "node-gyp rebuild"
make: Entering directory /usr/local/lib/node_modules/log.io/node_modules/_contextify@0.1.15@contextify/build'
/usr/local/lib/node_modules/log.io/node_modules/_contextify@0.1.15@contextify/build'
CXX(target) Release/obj.target/contextify/src/contextify.o
../src/contextify.cc: In static member function ‘static v8::Local<v8::Context> ContextWrap::createV8Context(v8::Local<v8::Object>)’:
../src/contextify.cc:131:68: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance() const’ is deprecated (declared at /root/.node-gyp/8.11.2/include/node/v8.h:3851): Use maybe version [-Wdeprecated-declarations]
Local<Object> wrapper = Nan::New(constructor)->NewInstance();
^
../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’
otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,
^
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’:
../src/contextify.cc:182:80: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated (declared at /root/.node-gyp/8.11.2/include/node/v8.h:3403): Use maybe version [-Wdeprecated-declarations]
Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);
^
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&)’:
../src/contextify.cc:209:67: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated (declared at /root/.node-gyp/8.11.2/include/node/v8.h:3403): Use maybe version [-Wdeprecated-declarations]
if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||
^
../src/contextify.cc:210:71: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated (declared at /root/.node-gyp/8.11.2/include/node/v8.h:3403): Use maybe version [-Wdeprecated-declarations]
!Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {
^
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
make: Leaving directory
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/cnpm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 3.10.0-123.el7.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/npminstall/node-gyp-bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/log.io/node_modules/_contextify@0.1.15@contextify
gyp ERR! node -v v8.11.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Install fail! Error: Run "sh -c node-gyp rebuild" error, exit code 1
Error: Run "sh -c node-gyp rebuild" error, exit code 1
at ChildProcess.proc.on.code (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:74:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
npminstall version: 3.5.0
npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/root/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org -g log.io --user root
懂你的意思了,alias 会便捷点,但是本质上还是 tail -f 多个日志,还存在日志输出过多不方便查看的问题
刚发现 xshell 有分屏的功能,虽然仍没有解决我的问题,但这个功能也很好用啊
是个点子,然而已有技能不足以支撑我搞起这个网站,回头我细细看看,当前想直接用现成的
额,其实 tail -f 多个日志也差不多能满足我的需求了,就是想找个再好用的方法。。。
应该是代码的异常吧,400、406 之类的。对异常不是很能理解,异常也是一种响应吧?为什么不放在响应里面?
“返回用户可以理解的响应信息” 这个过程是不是就不是这个接口需要做的事情了?
把异常和 http 的响应的概念看了又看,也没能理解,大家来随便说点啥吧,给点思路
从客户的视角来看,是哪个出得错确实不重要。但是接口测试时,如果接口本身有问题,有可能会出现这种情况,得自己去找出定位这个原因,是不
是部署好的服务启动后测试的,没法 debug 吧
嗯嗯,你说的对。但是有时候会遇到我认为只有一个因素,但是其实有多个因素这种情况。
看了一眼,日志有百来行,看的两眼茫茫就放弃了。那我再捣鼓下日志看能提出出来有用信息不
请求里看不到具体的原因,这么说吧,一个参数里可能有原因 A 也可能有原因 B
4 里面没有 logkit-2.0.jar 了,PATH 还配置这个么?
哎,想起那个面试就伤心,我被他整的沮丧的很,生生把我的等级往下压了
上个公司业务量非常大,考核也是按照 bug 量考核的,所以发现 bug 基本都直接丢给开发了,定位到出发原因就完了,很少深层次定位,现在想深入学习下,可是知识太多有点不知所措,没有重点,没有实操经验
面试确实会问到,我之前回答说,之前用过抓包工具,用 selenium 的时候学习过一段时间的 http 协议。面试官鄙视的看了我一眼,也没问我啥问题,虽然问了我也不一定答得出来