问题标签 [bugsnag]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
256 浏览

ruby-on-rails - Sidekiq Bugsnag 中间件

有没有办法整合 Bugsnag 来拯救 Sidekiq 的所有异常并发送通知?我在文档中找不到它。

救援 ActiveRecord::RecordNotFound => e Bugsnag.notify e 确保 Bugsnag.before_notify_callbacks.clear end end

0 投票
1 回答
6712 浏览

android - 在特定时间点在 gradle 中运行 curl 命令

我使用 bugsnag 来监控我的 Android 应用程序中的崩溃。我在编译发布版本时也使用 ProGuard。我需要上传在我的项目的 build/outputs/mapping/prod/release 文件夹中生成的 mapping.txt 文件。

当我在(Windows)命令行中运行此命令时:

文件已上传,一切正常。

我所需要的只是向 gradle 添加一个任务,以便它在文件准备好后上传文件。因此,一旦我编译了要发布的项目,mapping.txt 文件就会生成,并且一旦准备好,就使用这个 curl 命令上传文件(顺便说一下,它取自 bugsnag 的网站)。

我尝试了很多变化。当前编译但我不认为该文件正在上传......我看不到任何迹象表明它确实发生了。这是我目前使用的代码:

我也试过用这个:

我调用此任务的方式是使用以下命令:

我真的不知道该怎么做。任何帮助表示赞赏!谢谢!

0 投票
0 回答
676 浏览

ios - iOS Bugsnag 异常 - EXC_BAD_ACCESS _dispatch_dispose 试图取消引用垃圾指针

我有一个正在生产的 iOS 应用程序,并收到了以下我无法重新创建的 Bugsnag 异常。任何人都可以帮助我了解这里发生了什么,因为附加的堆栈跟踪并不能帮助我确定它的确切来源。

0 投票
1 回答
52 浏览

ios - 错误提示:升级到版本 5 时缺少功能 mergeWith

我的 iOS 正在使用Bugsnag,我正在尝试将其从 4.1.0 版升级到 5 版。

新的 SDK 破坏了 4.x 版本中可用的功能:

其中参数是类型NSDictionary

我在 SDK 中找不到任何替代品,除了:

但它没有提供与valueaNSDictionary本身相同的功能。此外,它还会[self.delegate metaDataChanged:self]在每次添加时调用(非常低效)。

0 投票
1 回答
148 浏览

logging - 如何在 Bugsnag 的事件错误中查找任何文本?

我需要通过 Bugsnag 事件中的任何文本查找,但过滤仪表板不提供此选项。

如何在 Bugsnag 中通过堆栈跟踪、请求、设备或元数据信息查找任何文本?

0 投票
1 回答
592 浏览

debugging - 在哪里放置用于 Chrome 扩展集成的 Bugsnag 脚本

我第一次开发 Chrome 扩展并尝试集成 Bugsnag js 错误报告。

我发现了很多有用的信息,但我不明白如何将 bugsnag 实际加载到扩展中。(例如在后台脚本、内容脚本、background.html 页面或其他地方)。您是否编写代码将脚本标记插入页面?

Bugsnag设置文档建议配置

我尝试将其添加到background.html页面,但没有运气。我还尝试将云端脚本添加到扩展程序中的内容和后台脚本中,但无法加载它。

同样,哪里是引用 bugsnag 脚本和修改 Bugsnag 对象的最佳位置(例如

允许扩展错误到达 bugsnag,如此处所建议

意识到这是一个非常基本的设置问题,但在为这个特定用例找到方向时遇到了一些麻烦。感谢您的任何建议!

0 投票
2 回答
2351 浏览

laravel - 运行 artisan 命令时出现错误提示

尝试php artisan migrate在生产服务器上运行时出现此错误...

env在命令行上运行,我调用了一个 env 变量BUGSNAG_API_KEY,它的值与 bugsnag.com 上该项目的键完全匹配。

此外,我的项目中有这条线./config/bugsnag.php

'api_key' => env('BUGSNAG_API_KEY'),

奇怪的是,我最终再次尝试了相同的命令(php artisan migrate)并且成功了!但它让我非常不安,因为它是一个生产服务器。所以我想了解这个问题。

顺便说一句,错误似乎也在登录 Bugsnag。

0 投票
1 回答
1810 浏览

ruby-on-rails-4 - Bugsnag: No API key configured, couldn't notify when deployed on heroku

I have a standard rails 4 app deployed on heroku.

I'm trying to add bugsnag to it.

First:

Gemfile

config/initializers/bugsnag.rb

lib/tasks/test_exception.rake

  • Then I commit, push and deploy with git push heroku master
  • make sure heroku is up-to-date heroku restart

Then heroku run rake myapp:test_exception

=>

I want heroku to send exception to bugsnag. What did I miss?

Note: The bugsnag integration works fine (I see the exception in the bugsnag UI) if I run the command locally, eg: rake myapp:test_exception

0 投票
2 回答
1024 浏览

php - 如何从 Laravel 5.2 应用程序向 Bugsnag 报告任何和所有异常

使用相关文档安装 Laravel 和 Bugsnag 后,我发现NotFoundHttpException错误没有报告给 Bugsnag(但是notifyError是的)。我的问题是如何设置它以便报告所有错误,而不是一遍又一遍地使用这些行:

或者

我正在考虑像这样使用Handlerin app/exceptions

但是如果 Laravel/Bugsnag 集成文档中没有提到它,这是一个好习惯吗?这个Laracast 视频没有描述对异常处理程序的任何更改,并且设置似乎按预期工作。

0 投票
1 回答
874 浏览

node.js - Proper error handling with NodeJS/Express

I have a very basic migration code that looks like this. It removes the table, creates the table, and seeds it with some data.

As you may notice, there is 3x .catch((err) => console.log(err)) chain on the code.

Right now I have Bugsnag integrated to my application and I want to make sure I properly log all the exceptions/errors on Bugsnag so I can fix all the bugs. However, right now all I can do is to log them into console. Even worse, I repeat myself and duplicating the logic in each catch block.

I'm thinking about doing something like this:

That abrings another issue. What if I forget adding catch methods... then it still won't work.

Thought about doing something like this, too:

this way I can catch all errors and DRY my code, but I'm not sure if Node supports hooking exceptions.

What would you do in my case and what kind of approach should I take? I want to make sure all errors are properly sent to Bugsnag.