error
A human-readable string describing any system errors encountered by this UnityWebRequest object while handling HTTP requests or responses. The default value is null. (Read Only)
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
public string error { get; }
Remarks
If the UnityWebRequest has not encountered a system error, this property will return . Examples of system errors include socket errors, errors resolving DNS entries, or the redirect limit being exceeded.
nullNote: If the UnityWebRequest is complete and the response isn't successful, the error property will be non-empty.
Additional Resources: UnityWebRequest.responseCode.