AlexaPi, AVS timeout in non Alexa Countries, java.util.concurrent.TimeoutException

With Amazon only supporting a few countries with Alexa, being the UK, Germany and the USA, you may get timeouts on the java app with an error of: java.util.concurrent.TimeoutException

It’s a pain when this happens as you have to login with VNC and click the OK button to reset the application. To help prevent it, you can alter the timeout threshold in the java file located at:
/home/pi/Desktop/alexa-avs-sample-app/samples/javaclient/src/main/java/com/amazon/alexa/avs/http/AVSClient.java#L69

You can edit this with:
sudo nano /home/pi/Desktop/alexa-avs-sample-app/samples/javaclient/src/main/java/com/amazon/alexa/avs/http/AVSClient.java

You’re after line 69, it looks like this, alter the timeout as below:

Restart your Alexa and job done!