Error Codes

Below is the table with error codes and their causes provided by GSurf:

CodeModelAccess mode
When no errors occur
0NO_SSL_ERRORError starting a UDP socket.
1ERROR_OPEN_UDP_SOCKETError sending UDP data. Check if there is a firewall blocking UDP output on port 443 of Gsurf IPs.
3ERROR_WRITE_UDPError receiving UDP data. Check if there is a firewall blocking UDP output on port 443 of Gsurf IPs.
4ERROR_READ_UDPGsurf lib internal error. The message received from the server is corrupt. Try again. Notify Gsurf development.
5ERROR_GET_SERVER_IPGsurf lib internal error. The message received from the server is corrupt. Try again. Notify Gsurf development.
6ERROR_MESSAGEInternal error in the Gsurf lib. The message received from the server is corrupt. Try again. Notify Gsurf development.
7ERROR_GET_SERVER_PORTInternal error in the Gsurf lib. The message received from the server is corrupt. Try again. Notify Gsurf development.
8ERROR_CREATE_SSL_CONTEXTError creating SSL context. Notify Gsurf development.
9ERROR_CONFIGError initializing library variables. Notify Gsurf development.
10ERROR_OPEN_FILEError saving configuration files. Please check permissions on the specified directory.
11ERROR_OPEN_CERTIFICATEThe certificate is present, but the file is corrupt. Generate a new certificate and install it on the device.
12ERROR_DECODE_CERTIFICATEThis error possibly occurs because this certificate is not for this device, or due to hardware changes that affected the fingerprint generation. Generate a new certificate and install it on the device.
13ERROR_INVALID_CERTIFICATEError verifying the certificate's private key. Generate a new certificate and install it on the device.
14ERROR_OPEN_TCP_SOCKETError initializing a TCP socket.
15ERROR_TCP_CONNECTIONError establishing TCP connection. No internet connection or Gsurf IPs are blocked in the firewall.
16ERROR_HANDSHAKE_SSLError during SSL handshake, may be caused by disconnection during the process, expired certificate, revoked certificate, unsupported cipher or untrusted CA. Check Gsurf server certificate and logs.
17ERROR_CRITICAL_HADSHAKE_SSLError during SSL handshake, may be caused by disconnection during the process, expired certificate, revoked certificate, unsupported cipher or untrusted CA. Check Gsurf server certificate and logs.
18ERROR_SSL_WRITESSL connection failed, possibly disconnected when sending data.
19ERROR_SSL_READSSL connection failed, possibly disconnected when receiving data.
21ERROR_MEMORY_ALLOCATEError allocating RAM memory, possible lack of RAM memory.
22ERROR_SERVICE_CONNECTError connecting to target service. Check if the service is running or if the configured IP and port are correct.
26ERROR_MALFORMED_IPThe IP entered for the connection function is in the wrong format.
27ERROR_RFC1918 The IPprovided for connection function does not comply with RFC 1918 (only local network IPs are supported)
28ERROR_NO_CERTIFICATEOccurs when the certificate is not present. You must perform the certificate installation.
29ERROR_NO_SSL_CONNECTIONSSL connection error occurs when trying to send/receive information without the connection being established. Make the connection.
31ERROR_SAVE_CERTIFICATEUnable to save the certificate on the device. Check whether there is write permission in the specified location.
32ERROR_RECEIVE_CERTIFICATEAn error occurred during the process of receiving the certificate. Probably the OTP used is not valid or the activation key is not valid. You need to check if the OTP is valid and try again.
33ERROR_DNSError resolving a DNS address. Possible lack of internet connection. Check internet connection and try again.
34ERROR_OPEN_UDP_SOCKETError starting a UDP socket.
35ERROR_SERVER_DEFINITIONError setting the server address. Check internet connection. Check whether Gsurf IPs are allowed on the firewall. Try again.
36ERROR_AUTHENTICATIONError during the authentication process. It may be caused by wrong or out of sync token. Contact Gsurf to synchronize tokens.
37ERROR_UNKNOWN_ERRORUnknown error.
38ERROR_EMPTY_MESSAGEThe message received from the server is empty and should be discarded.
39ERROR_MOUNTError mounting the partition to save data to the device.
40ERROR_TIMEOUTRead timeout was reached with no response from the server. Check internet connection. Try again.
41ERROR_INVALID_OTPThe OTP provided is in the wrong format. Check with Gsurf if the OTP is correct.