britzl / aws-sdk-lua

Auto generated AWS SDK for Lua
Apache License 2.0
39 stars 10 forks source link

Transcribe service doesn't work #13

Closed scambra closed 4 years ago

scambra commented 4 years ago

I tried to use transcribe, which uses json POST, and it doesn't work, callback is never called. I'm using luasocket and GET requests work, also PUT request with rest-xml protocol (although I get error from amazon). Script hangs on connecting, I can see connection status is SYN_SENT.

scambra commented 4 years ago

I think luasocket uses only port 80, and transcribe service is available only on port 443.

britzl commented 4 years ago

If you need HTTPS you should be able to use LuaSec to patch your socket to also support SSL: https://github.com/brunoos/luasec

scambra commented 4 years ago

I'm not sure how to patch socket to support SSL, and I don't think using https module from luasec would work because it has different interface and I don't see how to use PUT or DELETE method.

However, I have given up with this and wrote a ruby script using aws API, and I call ruby script from lua. I have more experience in ruby and I get it working right now, I don't have that lua script anymore.

Thanks for your help

britzl commented 4 years ago

Ok got it. It is my understanding that LuaSec automatically patches the socket from LuaSocket.