harmony 鸿蒙WebSocket Error Codes

  • 2025-06-12
  • 浏览 (4)

WebSocket Error Codes

NOTE

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

2302001 WebSocket URL Error

Error Message

Websocket url error.

Description

This error code is reported if the WebSocket URL is incorrect.

Possible Causes

The WebSocket URL is incorrect.

2302002 WebSocket Certificate Does Not Exist

Error Message

Websocket certificate file does not exist.

Description

The WebSocket certificate does not exist.

Possible Causes

The certificate path is incorrect or no certificate is configured.

2302003 WebSocket Connection Already Exists

Error Message

Websocket connection already exists.

Description

The WebSocket connection already exists.

Possible Causes

The WebSocket connection has been established.

2302998 Domain Access Denied

Error Message

It is not allowed to access this domain.

Description

This error code is reported if access to a certain domain is prohibited.

Possible Causes

An incorrect server domain name is configured for the atomic service.

Solution

Configure a correct server domain name for the atomic service. For details, see Network Connection Management.

2302999 Internal Error

Error Message

Internal error.

Description

This error code is reported if an internal error occurs.

Possible Causes

Other system faults occur.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Network Kit

harmony 鸿蒙NetConn_ConnectionProperties

harmony 鸿蒙NetConn_HttpProxy

harmony 鸿蒙NetConn_NetAddr

harmony 鸿蒙NetConn_NetCapabilities

harmony 鸿蒙NetConn_NetConnCallback

harmony 鸿蒙NetConn_NetHandle

harmony 鸿蒙NetConn_NetHandleList

harmony 鸿蒙NetConn_NetSpecifier

harmony 鸿蒙NetConn_Route

0  赞