How can I determine what line is causing a 404 error?

后端 未结 1 1091
醉酒成梦
醉酒成梦 2021-01-29 02:37

I have a terrible repeating error of 404 not found for a GET request.

The call looks like this in the JavaScript console

GET some_path/undefined 404 ( No         


        
1条回答
  •  醉梦人生
    2021-01-29 03:11

    On chrome you can add breakpoints on XHR and then you should see the callstack. Go to developer tools -> "sources" tab -> "XHR Breakpoints" and add a breakpoint filtered by the relevant URL

    0 讨论(0)
提交回复
热议问题