unispeech / unimrcp

Open source cross-platform implementation of MRCP protocol
http://www.unimrcp.org
Apache License 2.0
379 stars 167 forks source link

Proxy configuration for plugins (Bing, Kaldi) #232

Closed maczikasz closed 5 years ago

maczikasz commented 5 years ago

hi,

we are running UniMrcp behind a corporate proxy which is needed to access the internet from our DCs, but I cannot seem to configure unimrcp to use the proxy.

[root@dev-mrcp ~]# https_proxy=**** curl -X GET "https://westeurope.api.cognitive.microsoft.com/sts/v1.0/issuetoken"
{ "statusCode": 404, "message": "Resource not found" }
[root@dev-mrcp ~]# curl https://westeurope.api.cognitive.microsoft.com/sts/v1.0/issuetoken -i
curl: (7) Failed connect to westeurope.api.cognitive.microsoft.com:443; Network is unreachable
2019-03-08 13:53:49:221305 [INFO]   Initiate HTTP auth <BingSR> [https://westeurope.api.cognitive.microsoft.com/sts/v1.0/issuetoken]
2019-03-08 13:53:49:222224 [NOTICE] MRCP Server Started
2019-03-08 13:53:49:478760 [INFO]   Set HTTP request timer 30 sec for <BingSR>
2019-03-08 13:53:50:483054 [WARN]   Request failed: Network is unreachable (101) for HTTP auth <BingSR>

It seems that http(s)_proxy env variable is ignored by UniMrcp or the plugin(s)

achaloyan commented 5 years ago

Only Google plugins currently support HTTP proxy.

achaloyan commented 5 years ago

Closing this issue as support for HTTP proxy has been implemented for Bing and Kaldi plugins for a while now.