In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of how Fundebug supports monitoring WeChat Mini Programs HTTP request errors, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Fundebug article on how to support monitoring WeChat Mini Programs HTTP request errors. Let's take a look.
Access plug-in
The error monitoring plug-in that connects to Fundebug is very simple. You only need to download fundebug.0.5.0.min.js, introduce and configure apikey in app.js:
Var fundebug = require ('. / libs/fundebug.0.5.0.min.js') fundebug.apikey = "API-KEY"
To get apikey, you need to [register for free] (https://www.fundebug.com/team/create) account and [create Project] (https://www.fundebug.com/project/create)). Please select "WeChat Mini Programs" in the language when creating the project. In addition, you need to add https://fundebug.com to the legal domain name of request.
Monitoring HTTP request error
In Mini Program, use wx.request to initiate a HTTP request.
We think of it as an HTTP request error in the following two cases:
-when the returned statusCode is not 2xx
-the fail callback function is triggered
When an error occurs, the Fundebug plug-in sends the error message to the background server and notifies the developer. Developers can view error messages like this when they log on to the Fundebug website:
By analyzing the error messages, developers can repair BUG in time to avoid affecting more users.
Filters: filter errors that do not need to be collected
By configuring the filters property, users can filter out errors that do not need to be caught, such as:
Fundebug.filters = [{req: {url: / example\ .com /, method: / ^ GET$/}}]
In this way, the Fundebug plug-in will not monitor GET request errors sent to example.com.
MonitorHttpData: get the requested data
For privacy reasons, Fundebug does not collect the requested body (that is, the data parameter of wx.request) when monitoring HTTP request errors.
If you want to collect the wrong body of the HTTP request, please set the monitorHttpData property to true.
Fundebug.monitorHttpData = true
SilentHttp: disable HTTP request monitoring
If you do not want to monitor HTTP request errors, you can set the silentHttp property to true:
Fundebug.silentHttp = true;, this is the end of the article on how Fundebug supports monitoring WeChat Mini Programs's HTTP request errors. Thank you for reading! I believe you all have a certain understanding of the knowledge of "how Fundebug supports monitoring WeChat Mini Programs HTTP request errors". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.