# SocketTimeout when creating a Livestream using JAVA SDK

**URL:** <https://community.wowza.com/t/sockettimeout-when-creating-a-livestream-using-java-sdk/55743>\
**Category:** Wowza Video (Formerly Streaming Cloud)\
**Tags:** wowza-streaming-server-java-api\
**Created:** [August 21, 2020, 8:08pm UTC](https://community.wowza.com/t/sockettimeout-when-creating-a-livestream-using-java-sdk/55743 "2020-08-21T20:08:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_Sergeant](https://avatars.discourse-cdn.com/v4/letter/o/e36b37/32.png) [@Oliver\_Sergeant](https://community.wowza.com/u/Oliver_Sergeant)\
**Post date:** [August 21, 2020, 8:08pm UTC](https://community.wowza.com/t/sockettimeout-when-creating-a-livestream-using-java-sdk/55743/1 "2020-08-21T20:08:43Z")

</div>

Hi Guys,

I’m trying to create a Livestream using the Java SDK I’m constantly receiving a 504 error (Timeoout).

Might you help me with that?

Regards

---

<div class="post-metadata">

**Author:** ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)\
**Post date:** [August 21, 2020, 8:16pm UTC](https://community.wowza.com/t/sockettimeout-when-creating-a-livestream-using-java-sdk/55743/2 "2020-08-21T20:16:42Z")

</div>

Can try, but it’s difficult in the forums. A support ticket is best for troubleshooting especially when it’s a 504 timeout error. When the stream can’t connect to the server, it can be such a variety of reasons from config error to firewall to a network issue.

Do you have anything else useful to report from the logs perhaps that may give a clue other than the timeout error?

---

<div class="post-metadata">

**Author:** ![Oliver\_Sergeant](https://avatars.discourse-cdn.com/v4/letter/o/e36b37/32.png) [@Oliver\_Sergeant](https://community.wowza.com/u/Oliver_Sergeant)\
**Post date:** [August 21, 2020, 8:20pm UTC](https://community.wowza.com/t/sockettimeout-when-creating-a-livestream-using-java-sdk/55743/3 "2020-08-21T20:20:16Z")

</div>

I’ve already created a support ticket.

But I’m trying to find a solution faster than the support.

The problem is not during the streaming. I can’t even configure it. The Rest API call to create an event is returning 504.

---

<div class="post-metadata">

**Author:** ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)\
**Post date:** [August 21, 2020, 8:21pm UTC](https://community.wowza.com/t/sockettimeout-when-creating-a-livestream-using-java-sdk/55743/4 "2020-08-21T20:21:04Z")

</div>

Ok, thanks for that info. Let me see what I can find out for you., Be back soon.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 21, 2020, 8:43pm UTC](https://community.wowza.com/t/sockettimeout-when-creating-a-livestream-using-java-sdk/55743/5 "2020-08-21T20:43:55Z")

</div>

I checked with the Cloud team for you [@Oliver Sergeant](http://community.wowza.com/community/questions/57738/sockettimeout-when-creating-a-livestream-using-jav.html#) and they say they are not able to reproduce this issue on our end so not sure without running some tests through your ticket 367010. A timeout error can be triggered for reasons such as :

- the host address is incorrect
- firewall or network issue
- lack of bandwidth
- correct ports not open

Sorry, I couldn’t provide any more useful info here for you.

We would like to take closer look at your configuration and log files and get a better understanding of what is happening and why you are noticing this behavior. Your ticket will be assigned to an engineer who will determine the cause.
