请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

http://z.cn/api/v1/order/delivery 一直报错

http://z.cn/api/v1/order/delivery  一直报错 

{msg: "内部错误!不想告诉你!", error_code: 999, request_url: "/api/v1/order/delivery"}

error_code: 999

msg: "内部错误!不想告诉你!"

request_url: "/api/v1/order/delivery"



我想咨询一下 如何调试啊!  以前的调试方法好像不行

正在回答 回答被采纳积分+3

插入代码

2回答

7七月 2019-04-07 09:50:42

内部错误看不出来问题。这个课程不是详细讲解了调试么?或者你关闭这个错误隐藏,告诉我错误提示才能解决。这个个500错误肯定不知道是什么问题的。

0 回复 有任何疑惑可以回复我~
  • 提问者 每天学一点点点 #1
    这个章节我看了好多遍了! 老师的错误提示和我的完全不一样! 
    ‘’课程不是详细讲解了调试么‘’能告诉我是第几章节吗?  我是新手 学习,所以很些问题太基础,请谅解!
    回复 有任何疑惑可以回复我~ 2019-04-07 15:14:32
  • 提问者 每天学一点点点 #2
    马上我就可以完全写完了 ,就这个章节 这个坑 我迈步过去了!
    回复 有任何疑惑可以回复我~ 2019-04-07 15:15:25
  • 7七月 回复 提问者 每天学一点点点 #3
    我很理解,但问题是如果只是个500错误,如果你听课的话,你就知道500错误是内部隐藏了具体的错误信息。那么解决的方案是你需要在这个delivery接口里打上一个断点,然后进行断点调试,这样才能知道具体的错误原因。你看500错误,都提示了不想告诉你,那肯定是无法知道具体原因的。
    回复 有任何疑惑可以回复我~ 2019-04-07 16:01:25
提问者 每天学一点点点 2019-04-06 23:19:37

br />
<font size='1'><table class='xdebug-error xe-uncaught-exception' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'Argument 1 passed to app\lib\exception\ExceptionHandler::render() must be an instance of think\Exception, instance of think\exception\HttpException given, called in D:\Server\xampp\htdocs\zerg\thinkphp\library\think\Error.php on line 47 and defined' in D:\Server\xampp\htdocs\zerg\application\lib\exception\ExceptionHandler.php on line <i>25</i></th></tr>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> think\exception\ErrorException: Argument 1 passed to app\lib\exception\ExceptionHandler::render() must be an instance of think\Exception, instance of think\exception\HttpException given, called in D:\Server\xampp\htdocs\zerg\thinkphp\library\think\Error.php on line 47 and defined in D:\Server\xampp\htdocs\zerg\application\lib\exception\ExceptionHandler.php on line <i>25</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0270</td><td bgcolor='#eeeeec' align='right'>1226880</td><td bgcolor='#eeeeec'>think\Error::appException(  )</td><td title='D:\Server\xampp\htdocs\zerg\thinkphp\library\think\Error.php' bgcolor='#eeeeec'>..\Error.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0280</td><td bgcolor='#eeeeec' align='right'>1278216</td><td bgcolor='#eeeeec'>app\lib\exception\ExceptionHandler->render(  )</td><td title='D:\Server\xampp\htdocs\zerg\thinkphp\library\think\Error.php' bgcolor='#eeeeec'>..\Error.php<b>:</b>47</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0280</td><td bgcolor='#eeeeec' align='right'>1278944</td><td bgcolor='#eeeeec'>think\Error::appError(  )</td><td title='D:\Server\xampp\htdocs\zerg\thinkphp\library\think\Error.php' bgcolor='#eeeeec'>..\Error.php<b>:</b>25</td></tr>
</table></font>
{"msg":"内部错误!不想告诉你!","error_code":999,"request_url":"\/api\/v1\/order\/delivery"}

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信