# "Read timed out" when i run BertInferenceExample

**URL:** https://community.konduit.ai/t/read-timed-out-when-i-run-bertinferenceexample/626
**Category:** DL4J
**Created:** [June 17, 2020, 3:26pm UTC](https://community.konduit.ai/t/read-timed-out-when-i-run-bertinferenceexample/626 "2020-06-17T15:26:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Maple](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/maple/32/410_2.png) [@Maple](https://community.konduit.ai/u/Maple)
#### Post date: [June 17, 2020, 3:26pm UTC](https://community.konduit.ai/t/read-timed-out-when-i-run-bertinferenceexample/626/1 "2020-06-17T15:26:38Z")

</div>

i tried some project at dl4j-examples, i had ran some code successfully, but when i try the “BertInferenceExample”, console remind me: Exception in thread “main” java.net.SocketTimeoutException: Read timed out

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/konduit/original/1X/d17667d28e5978c78a330f9b21753d4a6e0ce193.png)

it is important to me, appreciate for your help.

---

<div class="post-metadata">

### Author: ![Maple](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/maple/32/410_2.png) [@Maple](https://community.konduit.ai/u/Maple)
#### Post date: [June 18, 2020, 3:20am UTC](https://community.konduit.ai/t/read-timed-out-when-i-run-bertinferenceexample/626/2 "2020-06-18T03:20:05Z")

</div>

i had solved it by download the zip at “[https://dl4jdata.blob.core.windows.net/testresources/bert\_mrpc\_frozen\_v1.zip](https://dl4jdata.blob.core.windows.net/testresources/bert_mrpc_frozen_v1.zip)”, maybe the website given in code had been out of data. if the developer seen this, maybe you could update the direction.

---

<div class="post-metadata">

### Author: ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)
#### Post date: [June 18, 2020, 9:09am UTC](https://community.konduit.ai/t/read-timed-out-when-i-run-bertinferenceexample/626/3 "2020-06-18T09:09:34Z")

</div>

It tries to download it from exactly that address too, but if you have to use a proxy or something like that to access the internet, java might run into issues if not configured to use it too (see [Networking Properties](https://docs.oracle.com/javase/8/docs/api/java/net/doc-files/net-properties.html))

---

<div class="post-metadata">

### Author: ![Maple](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/maple/32/410_2.png) [@Maple](https://community.konduit.ai/u/Maple)
#### Post date: [June 18, 2020, 9:19am UTC](https://community.konduit.ai/t/read-timed-out-when-i-run-bertinferenceexample/626/4 "2020-06-18T09:19:31Z")

</div>

thanks for your reply.  
as you said, but if i don’t use vpn, i could not even start the download. now i find a way to handle this problem, i extract the website from the code directed, and download it with some downloading tools, then put the file to aim path. this might be a compromise solution.
