简体   繁体   English

如何使用javascript / ajax调用调试“出了点问题”错误

[英]Howto debug the “something went wrong” error with javascript/ajax calls

i have some scripts which give me the alert "Something went wrong". 我有一些脚本可以提醒我“出了点问题”。 I tried firebug, i tried logging everything (i'm on a django environement) but there's no trace of any error message. 我尝试过萤火虫,我尝试记录所有内容(我在django环境中),但是没有任何错误消息的痕迹。 So, instead of posting the code (which actually works, just sometimes doesn't...), i'd like to ask what's the better way to debug that error, or if there's any tool similar to firebug that can help. 因此,我想问的是,调试该错误的更好方法是什么,或者是否有类似Firebug的工具可以帮助您,而不是发布代码(实际上是行得通的,有时有时是不行的)。

Apparently, searching on google, doesn't help this time. 显然,这次在Google上搜索无济于事。 Also: where does that error come from? 另外:该错误从何而来? Where can i find more info about? 在哪里可以找到更多信息? I think it's somehow related to the browser (i'm on Firefox, but i get the same error on Chrome) but i'm not sure. 我认为这与浏览器有关(我在Firefox上,但是在Chrome上却出现相同的错误),但我不确定。

Thanks all in advance and i hope this post isn't off-topic 提前谢谢大家,我希望这篇文章不会离题

S. S.

Check the 'Network' panel in Google Chrome or the 'Net' panel in Firebug. 检查Google Chrome中的“网络”面板或Firebug中的“网络”面板。 You can see all XHTTPRequests there and see the requests and responses, the response probably contains a 500 status code and a description. 您可以在那里看到所有XHTTPRequests并看到请求和响应,响应可能包含500状态代码和描述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 谷歌地图“操作出错”错误-html和javascript - error with google maps “opps something went wrong ” - html and javascript 简单的Javascript计算器,出了点问题? - Simple Javascript Calculator, something went wrong? 错误:测试 postman 时出现问题 - error: something went wrong while testing postman 出问题时在模态窗口中显示错误 - Show error in modal window, when something went wrong Facebook 出现错误消息 - Something went wrong message on Facebook 使用Java的分页错误 - Pagination with Javascript Went Wrong Heroku “很抱歉,出了点问题。” 由于 javascript_include_tag - Heroku "We're sorry, but something went wrong." due to javascript_include_tag 谷歌地图错误:糟糕! 出了点问题。 此页面未正确加载 Google 地图 - Google Maps error: Oops! Something went wrong. This page didn't load Google Maps correctly 在 jsonwebtoken 代码中出现错误“在 TypeError 中记录出现问题:无法读取未定义的属性(读取 'sign')” - Getting the error "something went wrong logging in TypeError: Cannot read properties of undefined (reading 'sign')" in jsonwebtoken code 哎呀!有些不对劲。此页面未正确加载Google地图。有关技术详细信息,请参阅JavaScript控制台 - Oops! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM