Common errors - gtrxAC/discord-j2me GitHub Wiki
This page lists some common error messages that may occur while using Discord J2ME (or other network-enabled J2ME applications).
DNS errors
- java.io.IOException: -5120 (Symbian)
- net.rim.device.cldc.io.dns.DNSException: DNS error (BlackBerry)
The server was not found. You have either entered the API URL incorrectly or the proxy server is currently offline. If the server is down and your phone supports Wi-Fi, you can host your own private proxy server (see tutorials for HTTP and gateway).
Token errors
- HTTP Error 401
- Check your token
- Gateway error. Message: Authentication failed.
- Received authentication challenge is null (old J2ME Loader)
Your token was written incorrectly. Check that each character is correct, paying close attention to similar characters like I
/l
and O
/0
. The token should be a series of about 70 characters, including uppercase and lowercase letters, numbers, underscores, dashes, and periods. It should not have any quotation marks or spaces.
If you're sure the token is correct, you can try uninstalling and reinstalling the app (make sure to copy your token somewhere else first), or trying a different account, changing your account password (regenerates your token), or using a different phone.
There have been recent reports of tokens on some accounts changing frequently every few network requests. There is no known solution for this.
java.lang.SecurityException: Application not authorized to access the restricted API
Some phones branded to USA carriers don't allow network access to unsigned J2ME apps.
java.io.IOException: -1
See JTube FAQ.
java.io.IOException: -18
"A device required by an i/o operation is not ready to start operations. A common reason for returning this code is because a device has not been initialised, or has no power."
This error code often refers to a driver failure. Reboot your phone or update your firmware. If that doesn't help, your phone's hardware may be faulty.
java.io.IOException: -34
The proxy server is probably down - report this on our server in the #discord-j2me channel. You can also host your own proxy - see the DNS errors section.
java.lang.Exception: Invalid Form Body
Go to the app's settings and change the message load count to a positive number.
Gateway error: java.lang.SecurityException: Permission = javax.microedition.io.Connector.socket
May occur on Symbian S60 phones. Set network access point for Discord in the application manager.
HTTP error 302
This error should not occur under normal circumstances, but may be caused by someone (e.g. your carrier) intercepting the connection. Check that you can access the proxy server's URL (e.g. http://146.59.80.3) via the device's built-in web browser.
java.io.IOException: checkToUseHTTPProxy
May occur on certain Samsung devices. There is no known fix for this. You may try changing your network configuration settings (e.g. using a WAP gateway). If you find a fix for this, let us know.
907 Invalid JAR, illegal host string: starts with "/"
Uninstall and reinstall the app.
Gateway error: java.lang.IOException: set option was failed.
Versions prior to 4.0.0 did not support socket connections on some low-end Samsung phones. Update to the latest version of the app or turn off 'Use gateway' on the login screen.