@@ -8,11 +8,11 @@ Applicable to: OpenHarmony SDK 3.2.2.5, stage model of API version 9
**extraData** indicates additional data in an HTTP request. It varies depending on the HTTP request method.
1. If the HTTP request uses a POST or PUT method, **extraData** serves as the content of the HTTP request.
- If the HTTP request uses a POST or PUT method, **extraData** serves as the content of the HTTP request.
2. If the HTTP request uses a GET, OPTIONS, DELETE, TRACE, or CONNECT method, **extraData** serves as a supplement to the HTTP request parameters and will be added to the URL when the request is sent.
- If the HTTP request uses a GET, OPTIONS, DELETE, TRACE, or CONNECT method, **extraData** serves as a supplement to the HTTP request parameters and will be added to the URL when the request is sent.
3. If you pass in a string object, **extraData** contains the string encoded on your own.
- If you pass in a string object, **extraData** contains the string encoded on your own.
## What Does Error Code 28 Mean for an HTTP Request?
...
...
@@ -20,7 +20,7 @@ Applicable to: OpenHarmony SDK 3.2.2.5, stage model of API version 9
Error code 28 refers to **CURLE_OPERATION_TIMEDOUT**, which means a libcurl library operation timeout. For details, see any HTTP status code description available.
Reference: [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-http.md#httpresponse) and [Curl Error Codes](https://curl.se/libcurl/c/libcurl-errors.html)
Reference: [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-http.md#httpresponse) and [Curl Error Codes](https://curl.se/libcurl/c/libcurl-errors.html)
## What Does Error Code 6 Mean for the Response of \@ohos.net.http.d.ts?
...
...
@@ -28,4 +28,4 @@ Applicable to: OpenHarmony SDK 3.2.3.5
Error code 6 indicates a failure to resolve the host in the address. You can ping the URL carried in the request to check whether the host is accessible.
Reference: [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-http.md#httpresponse) and [Curl Error Codes](https://curl.se/libcurl/c/libcurl-errors.html)
Reference: [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-http.md#httpresponse) and [Curl Error Codes](https://curl.se/libcurl/c/libcurl-errors.html)
Increasing the buffer size to 20 MB: hdc_std shell hilog -G 20M
-Increasing the buffer size to 20 MB: hdc_std shell hilog -G 20M
Capturing logs: hdc_std shell hilog > log.txt
-Capturing logs: hdc_std shell hilog > log.txt
## What Should I Do to Avoid Log Flow Control?
...
...
@@ -30,7 +30,7 @@ After performing the preceding operations, restart the DevEco Studio.
Applicable to: OpenHarmony SDK 3.2.2.5
HiLog(https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-hilog.md) is recommended for an application to print logs. For details about domain setting, see [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-hilog.md#hilogisloggable).
[HiLog](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-hilog.md) is recommended for an application to print logs. For details about domain setting, see [Development Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-hilog.md#hilogisloggable).
## What Is the Maximum Length of a Log Record When HiLog Is Used? Is It Configurable?
## What Should Do If the Error Message "npm ERR! code SELF_SIGNED_CERT_IN_CHAIN" Is Displayed?
Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9
...
...
@@ -16,4 +15,6 @@ Applicable to: OpenHarmony SDK 3.2.5.3, stage model of API version 9
1. Run **npm install** in the **ets\x.x.x.x\build-tools\ets-loader** directory of the SDK.
2. Run **npm install** in the **js\x.x.x.x\build-tools\ace-loader** directory of the SDK. After the preceding steps are complete, perform HAP building again.
2. Run **npm install** in the **js\x.x.x.x\build-tools\ace-loader** directory of the SDK.