# Unknown action: connect

**URL:** <https://community.wowza.com/t/unknown-action-connect/46418>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [December 24, 2015, 5:12pm UTC](https://community.wowza.com/t/unknown-action-connect/46418 "2015-12-24T17:12:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viacheslav\_Eremin](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@Viacheslav\_Eremin](https://community.wowza.com/u/Viacheslav_Eremin)\
**Post date:** [December 24, 2015, 5:12pm UTC](https://community.wowza.com/t/unknown-action-connect/46418/1 "2015-12-24T17:12:06Z")

</div>

Hi, I send request:

```auto
http://XX.XX.XX.XX:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/tst1.stream/actions/connect?connectAppName=Live1&appInstance=_definst_&mediaCasterType=rtp

```

tst1.stream - is present

Live1 - is name of my application

_defaultServer_ and _defaultVHost_ - OK

Manually this application connect to this stream successfully

But remotely my program receive:

```auto
<wmsResponse>
<success>false</success>
<message>Unknown action: connect</message>
</wmsResponse>

```

What is my mistake? Thanks.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [January 4, 2016, 9:11am UTC](https://community.wowza.com/t/unknown-action-connect/46418/2 "2016-01-04T09:11:14Z")

</div>

Hello there, try this same call but remove the .stream from the file name.

Regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Viacheslav\_Eremin](https://avatars.discourse-cdn.com/v4/letter/v/58956e/32.png) [@Viacheslav\_Eremin](https://community.wowza.com/u/Viacheslav_Eremin)\
**Post date:** [January 22, 2016, 12:43pm UTC](https://community.wowza.com/t/unknown-action-connect/46418/3 "2016-01-22T12:43:47Z")

</div>

I renamed stream file name from tst1.stream to tst1

send request without extension “.stream”

```auto
http://XX.XX.XX.XX:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/tst1/actions/connect?connectAppName=Live1&appInstance=_definst_&mediaCasterType=rtp

```

and receive answer

> false
> 
> Unknown action: connect

Log message:

> REST API: Unknown action: connect
> 
> c-client-id: 1129735649,c-ip: 127.0.0.1,cs-bytes: 7056692,sc-bytes: 0,x-duration: 2491514.131

---

<div class="post-metadata">

**Author:** ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)\
**Post date:** [May 2, 2016, 2:45am UTC](https://community.wowza.com/t/unknown-action-connect/46418/4 "2016-05-02T02:45:23Z")

</div>

Hello,

First I want to make sure you are following the example form this article:

[https://www.wowza.com/docs/stream-management-query-examples](https://www.wowza.com/docs/stream-management-query-examples)

I do see that you have posted what appears to be the end section of this call:

```auto
curl -X PUT --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/streamfiles/metallica/actions/connect?connectAppName=testlive&appInstance=_definst_&mediaCasterType=rtp"

```

Can you confirm that the opening section of this call matches the call you are making?

Have you been able to make other successful REST API requests to this server?

Regards,

Jason Hatchett

---

<div class="post-metadata">

**Author:** ![Alberto\_Cabaleiro](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@Alberto\_Cabaleiro](https://community.wowza.com/u/Alberto_Cabaleiro)\
**Post date:** [June 8, 2020, 9:05am UTC](https://community.wowza.com/t/unknown-action-connect/46418/5 "2020-06-08T09:05:25Z")

</div>

Hi @Anders Hammer and all the community. When upgrading to 4.8.0 in Windows systems, you may need to install some additional C++ libraries in order for SRT ingestion to keep working as expected. This is further described in the notes here: [https://www.wowza.com/docs/ingest-and-publish-an-srt-stream-with-wowza-streaming-engine](https://www.wowza.com/docs/ingest-and-publish-an-srt-stream-with-wowza-streaming-engine)

If the above doesn’t solve it, we recommend opening a support ticket providing your server /conf and /logs folders for further inspection

Regards,

Alberto Cabaleiro

Wowza Support Engineer

---

<div class="post-metadata">

**Author:** ![Anders\_Hammer](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Anders\_Hammer](https://community.wowza.com/u/Anders_Hammer)\
**Post date:** [June 8, 2020, 11:02am UTC](https://community.wowza.com/t/unknown-action-connect/46418/6 "2020-06-08T11:02:07Z")

</div>

Hi @Alberto Cabaleiro,

Thank you, installing the latest C++ redistributable solved the issue on all servers!

Regards,

Anders

---

<div class="post-metadata">

**Author:** ![Anders\_Hammer](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Anders\_Hammer](https://community.wowza.com/u/Anders_Hammer)\
**Post date:** [June 6, 2020, 2:00pm UTC](https://community.wowza.com/t/unknown-action-connect/46418/7 "2020-06-06T14:00:35Z")

</div>

I have just updated our Wowza farm from 4.7.7 to 4.8.0 and now I’m getting this error on 4 out of 10 servers (all Windows). None of the servers reported error during upgrade. I have tried restarting one of the servers but it still returns this error.

I’ll demonstrate all the REST API calls below.

Get stream files:

```auto
http://hostname:8087
/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles

```

Returns:

```auto
{
    "serverName": "_defaultServer_",
    "streamFiles": [
        {
            "id": "myStream",
            "href": "/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/myStream"
        }
    ]
}

```

Get stream file:

```auto
[http://hostname:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/myStream](http://hostname:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/myStream)

```

Returns:

```auto
{
    "version": "1591450261539",
    "serverName": "_defaultServer_",
    "name": "myStream",
    "uri": "srt://0.0.0.0:10000"
}

```

Connect stream file:

```auto
http://hostname:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/streamfiles/myStream/actions/connect?connectAppName=live&appInstance=_definst_&mediaCasterType=srt 

```

Returns:

```auto
<strong>{
    "success": false,
    "message": "Unknown action: connect",
    "data": null
}</strong>

```

Trying to connect it in the GUI results in the same message:

The error log confirms it:

```auto
ERROR server comment 2020-06-06 21:47:50 - - - - - 74865.239 - - - - - - - - REST API: Unknown action: connect

```

In the access log there is a Java error right before the “Unknown action: connect” message:

```auto
2020-06-06 20:36:59 CST comment server INFO 200 - SRTSessionNative.loadLibrary: Native load error: D:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.6.0/lib-native/win64/srt/srt.dll: java.lang.UnsatisfiedLinkError: D:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.6.0\lib-native\win64\srt\srt.dll: Can't find dependent libraries|at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method)|at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)|at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)|at java.base/java.lang.Runtime.load0(Unknown Source)|at java.base/java.lang.System.load(Unknown Source)| - - - 70614.305 - - - - - - - - - - - - - - - - - - - - - - - - -
2020-06-06 20:36:59 CST comment server INFO 200 - SRTSessionNative.loadLibrary: Native load error: D:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.6.0/lib-native/win64/srt/wms-srt.dll: java.lang.UnsatisfiedLinkError: D:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.6.0\lib-native\win64\srt\wms-srt.dll: Can't find dependent libraries|at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method)|at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)|at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)|at java.base/java.lang.Runtime.load0(Unknown Source)|at java.base/java.lang.System.load(Unknown Source)| - - - 70614.325 - - - - - - - - - - - - - - - - - - - - - - - - -
2020-06-06 20:37:00 CST comment server ERROR 500 - REST API: Unknown action: connect - - - 70614.391 - - - - - - - - - - - - - - - - - - - - - - - - -

```

Edit: I started Wowza in console mode and retried the same operation. It logged the following:

```auto
INFO server comment - LiveMediaSRTReceiver.create
INFO server comment - SRTSessionNative.loadLibrary: Native load error: C:/Progra
m Files (x86)/Wowza Media Systems/Wowza Streaming Engine/lib-native/win64/srt/sr
t.dll: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Wowza Media System
s\Wowza Streaming Engine\lib-native\win64\srt\srt.dll: Can't find dependent libr
aries|at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method)|at ja
va.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)|at java.base/java.lan
g.ClassLoader.loadLibrary(Unknown Source)|at java.base/java.lang.Runtime.load0(U
nknown Source)|at java.base/java.lang.System.load(Unknown Source)|
INFO server comment - SRTSessionNative.loadLibrary: Native load error: C:/Progra
m Files (x86)/Wowza Media Systems/Wowza Streaming Engine/lib-native/win64/srt/wm
s-srt.dll: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Wowza Media Sy
stems\Wowza Streaming Engine\lib-native\win64\srt\wms-srt.dll: Can't find depend
ent libraries|at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Metho
d)|at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)|at java.base/
java.lang.ClassLoader.loadLibrary(Unknown Source)|at java.base/java.lang.Runtime
.load0(Unknown Source)|at java.base/java.lang.System.load(Unknown Source)|
ERROR server comment - REST API: Unknown action: connect
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields
(file:/C:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine/lib/xst
ream-1.4.11.1.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.x
stream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release

```

---

<div class="post-metadata">

**Author:** ![Alberto\_Cabaleiro](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@Alberto\_Cabaleiro](https://community.wowza.com/u/Alberto_Cabaleiro)\
**Post date:** [June 8, 2020, 9:05am UTC](https://community.wowza.com/t/unknown-action-connect/46418/8 "2020-06-08T09:05:25Z")

</div>

Hi @Anders Hammer and all the community. When upgrading to 4.8.0 in Windows systems, you may need to install some additional C++ libraries in order for SRT ingestion to keep working as expected. This is further described in the notes here: [https://www.wowza.com/docs/ingest-and-publish-an-srt-stream-with-wowza-streaming-engine](https://www.wowza.com/docs/ingest-and-publish-an-srt-stream-with-wowza-streaming-engine)

If the above doesn’t solve it, we recommend opening a support ticket providing your server /conf and /logs folders for further inspection

Regards,

Alberto Cabaleiro

Wowza Support Engineer
