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

send SMS not working #26

Open
GoogleCodeExporter opened this issue Apr 11, 2015 · 5 comments
Open

send SMS not working #26

GoogleCodeExporter opened this issue Apr 11, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. sendSMS to US number.voice.sendSMS("+1AreaCode-restofthe no.).
2. I am invoking this API from India, is that allowed AFAIK i can make 
calls/sms from google voice from US only.
3. Please let me know if the phone number format is correct

What is the expected output? What do you see instead?
SMS should be sent. Get the following error
Exception in thread "main" java.io.IOException: Server returned HTTP response 
code: 500 for URL: https://www.google.com/voice/sms/send/

What version of the product are you using? On what operating system?
1.8

Please provide any additional information below.


Original issue reported on code.google.com by myvirtua...@gmail.com on 6 Sep 2011 at 2:54

@GoogleCodeExporter
Copy link
Author

It might not work in India.  I had problems in Belgium.  Does anyone else have 
experience with this?

Original comment by malone.j...@gmail.com on 7 Sep 2011 at 3:16

@GoogleCodeExporter
Copy link
Author

Deployed the app in Google App Engine and put some loggers in Voice.java.
From the logs looks like Authentication was successful, but while sending SMS 
getting 500.

com.techventus.server.voice.Voice login: 
https://www.google.com/accounts/ClientLogin - OK
com.techventus.server.voice.Voice login: Logged in to Google - Auth token 
received
com.techventus.server.voice.Voice get: https://www.google.com/voice/ - OK
com.techventus.server.voice.Voice setRNRSEE: Successfully Received rnr_se.
com.datarenderer.server.servlet.SMSSenderServlet doPost: Sending SMS
com.techventus.server.voice.Voice sendSMS: SMS response
 <HTML>
 <HEAD>
 <TITLE>Internal Server Error</TITLE>
 </HEAD>
 <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
 <H1>Internal Server Error</H1>
 <H2>Error 500</H2>
 </BODY>
 </HTML>

Any clue what I am doing wrong ?
The code that I am using 
Voice voice = new Voice(userName,password);
voice.sendSMS(destinationNumber, message);



Original comment by myvirtua...@gmail.com on 13 Sep 2011 at 11:48

@GoogleCodeExporter
Copy link
Author

This might explain it: 
http://code.google.com/p/pygooglevoice/issues/detail?id=60

Looks like Google Voice now expects a cookie back.

Original comment by gpit...@gmail.com on 4 Oct 2011 at 11:28

@GoogleCodeExporter
Copy link
Author

Can I close this issue?

Original comment by malone.j...@gmail.com on 15 May 2012 at 11:13

@GoogleCodeExporter
Copy link
Author

That link doesn't relate to the Java API provided. I'm getting the same error 
sending an SMS  with 1.14 jar - voice.sendSMS("XXXXXXXXX", "hello", "343sf"). 
Note - the source code doesn't clearly say what the "ID" is :)

Original comment by FrankLoV...@gmail.com on 22 Jun 2012 at 6:43

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

No branches or pull requests

1 participant