Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl: (52) Empty reply from server #80

Open
akshayvyas29 opened this issue May 26, 2016 · 3 comments
Open

curl: (52) Empty reply from server #80

akshayvyas29 opened this issue May 26, 2016 · 3 comments

Comments

@akshayvyas29
Copy link

I have setup textbelt as stanalone server, redis server is running and properly and when i start the server its starting without any errors but when i try to send the message through server i am getting "curl: (52) Empty reply from server" post that the server process terminates with exit 1

root@ssdnodes-763224:/usr/share/nginx/textbelt-master# curl -X POST http://66.11.122.204:9090/text    -d number=<number>    -d "message=I sent this message for free with textbelt.com"
curl: (52) Empty reply from server
[1]+  Exit 1                  nohup node server/app.js

@akshayvyas29
Copy link
Author

I am getting the following error

output('mutt failed', {email: email, data: decoder.write(data)});
                                  ^

ReferenceError: email is not defined
    at ChildProcess.<anonymous> (/usr/share/nginx/textbelt-master/lib/text.js:76:35)
    at emitOne (events.js:77:13)
    at ChildProcess.emit (events.js:169:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
    at onErrorNT (internal/child_process.js:344:16)
    at nextTickCallbackWith2Args (node.js:442:9)
    at process._tickCallback (node.js:356:17)

@typpo
Copy link
Owner

typpo commented May 26, 2016

Hi Akshay,

I just committed 3d75872 to fix this particular crash in the error handler. Although it fixes the crash, it won't fix the fact that mutt failed.

Do you have mutt installed on the server? I should update the README to explain the mutt dependency.

@akshayvyas29
Copy link
Author

akshayvyas29 commented May 27, 2016

Hi Ian

I made a new clone and installed mutt now i don't see any error but curl stalls for a min and sends the same error

root@ssdnodes-763224:~# curl -X POST http://66.11.122.204:9090/text \
>    -d number=702XXXXX \
>    -d "message=I sent this message for free with textbelt.com"
curl: (52) Empty reply from server
root@ssdnodes-763224:~/textbelt# node server/app.js
1 'banned ips loaded'
Listening on 9090
txting phone 7023XXXXXX : I sent this message for free with textbelt.com
I sent this message for free with textbelt.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants