目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

1011900001 Weather Service Not Enabled

Message

Capability is not configured.

Description

The weather service has not been enabled.

Possible causes

  1. The weather service has not been enabled.

  2. The app signing information is incorrectly configured.

Solution

  1. Ensure that the user has enabled the weather service.

  2. Ensure that the app signing information is correctly configured by referring to Configuring Signing Information.

  3. Submit a ticket online. Huawei will get back to you as soon as possible.

1011900002 Weather Data Missing

Message

The requested longitude and latitude grid point lacks data.

Description

No weather data is available.

Possible causes

The longitude and latitude information provided does not correspond to a place in the land area.

Solution

  1. Check whether the longitude and latitude data corresponds to a place in the land area by using a search engine.

  2. Submit a ticket online. Huawei will get back to you as soon as possible.

1011900003 Network Error

Message

Network error.

Description

A network error occurs.

Possible causes

The network is not connected.

Solution

  1. Check the network configurations.

  2. Submit a ticket online. Huawei will get back to you as soon as possible.

1011900004 Internal System Error

Message

System error.

Description

An internal system error occurs.

Possible causes

  1. When the weatherService.getWeather(request) API is used to obtain weather information, the context information cannot be automatically obtained.

  2. Failed to connect to the service, or another internal error occurred.

Solution

  1. Use the weatherService.getWeatherWithContext(context, request) API rather than weatherService.getWeather(request) and proactively pass the context information.

  2. Submit a ticket online. Huawei will get back to you as soon as possible.