我想从react-native应用程序中读取crashlytics报告,但它在firebase控制台中根本不可读。Android 的崩溃示例如下所示:
Non-fatal Exception: io.invertase.firebase.crashlytics.UnhandledPromiseRejection
Invalid RegExp pattern: Parenthesized expression not closed
.RegExp ((native):0:0)
.anonymous (address at index.android.bundle:1:2065589)
.ue (address at index.android.bundle:1:2070284)
.ce (address at index.android.bundle:1:2069288)
.Be (address at index.android.bundle:1:2080135)
Run Code Online (Sandbox Code Playgroud)
我启用了 Hermes,并且我的签名构建 apkindex.android.bundle以预编译格式 ( build/generated/assets/react/appName/release/index.android.bundle) 和源映射文件生成build/sourcemaps/react/appName/release/index.android.bundle.map。我尝试使用 npm 包读取这些文件source-map-explorer,但不幸的是它总是产生以下错误:
source-map-explorer index.android.bundle index.android.bundle.map
index.android.bundle
Your source map refers to generated column 165922 on line 1, but the source only contains 165920 column(s) on that line.
Check that you are using the correct source map.
Run Code Online (Sandbox Code Playgroud)
android firebase source-maps react-native react-native-hermes
我有休息控制器,它以流文件作为内容返回 HttpResponseMessage,如下所示:
public class MyController : ApiController
{
public HttpResponseMessage GetFile(string id)
{
try {
var stream = fileSystemUtils.GetFileStream(filePath); //Get Stream
HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
response.Content = stream;
return response;
}
catch (FileNotFoundException)
{
return new HttpResponseMessage(HttpStatusCode.NotFound);
}
}
}
Run Code Online (Sandbox Code Playgroud)
当我在浏览器中通过 ULR 调用此方法时,一切正常,我可以下载此文件。现在我想使用 Swagger UI 下载它。有什么简单的方法可以做到这一点吗?
我试图了解如何监控和调整 postgresql 性能。我从探索表开始pg_stat_all_tables,pg_stat_statements以便收集有关活元组、死元组、上次自动清理时间等的信息。有一些关于n_live_tuples(接近表中实际行数)和n_dead_tup我运行pg_stat_reset查询的有用信息。之后我得到了一些奇怪的结果 -n_live_tup少于n_dead_tup. 我找不到任何关于为什么以及何时(某些用例)应该运行pg_stat_reset查询的文章/文档。有人可以向我解释一下或提供一些有用的资源吗?
android ×1
c# ×1
firebase ×1
performance ×1
postgresql ×1
react-native ×1
source-maps ×1
swagger ×1
vacuum ×1