The reason there is a 500 error is that Google's servers are tripping up on the _rnr_se variable now includes characters like +/=. Looks like a base64, but watching the network traffic in Firebug shows that Google's javascript sends the raw value without any modifications.
So you need to replace line 90 with the following line. That's it! No other changes are necessary.
Google has added support for google voice in their google apps product. Unfortunately when I make these adjustments to the script:
ACCOUNT = 'user@mydomain.com' # managed by google and text works PASSWORD = 'mypass' #alphanumeric pass no strange characters
the script fails with errors:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /Users/mano/Documents/Scripts/voicesms user@mydomain.com.rb:61:inpostit' from /Users/mano/Documents/Scripts/voicesms user@mydomain.com.rb:90 from /Users/mano/Documents/Scripts/voicesms user@mydomain.com.rb:88:in `each' from /Users/mano/Documents/Scripts/voicesms user@mydomain.com.rb:88
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from voicesms.rb:61:inpostit' from voicesms.rb:90 from voicesms.rb:88:in `each' from voicesms.rb:88
I'm afraid I don't have time to debug this script. The only thing I can tell you is that the only time I've been able to reproduce this error is when the password is incorrect for the account…
/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from voicesms.rb:61:inpostit' from voicesms.rb:90 from voicesms.rb:88:in `each' from voicesms.rb:88
I have two google voice accounts ... one is 970dogwalk@gmail.com and the other one is 1970dogwalk@gmail.com. When I use the 970dogwalk number everything is fine, but when I use the 1970dogwalk@gmail.com I get the error above ... maybe it has something to do with the username, since everything else is identical. Hope we can figure this one out ... I really need to use the 1970dogwalk account to send sms messages.
Maybe it has something to do with the length of the username ... i will setup another test with an 11 char length account ...
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:2097:in error!': 500 "Internal Server Error" (Net::HTTPFatalError) from /Users/miker/Downloads/2010-11/voicesms.rb:61:inpostit' from /Users/miker/Downloads/2010-11/voicesms.rb:90 from /Users/miker/Downloads/2010-11/voicesms.rb:88:in `each' from /Users/miker/Downloads/2010-11/voicesms.rb:88
Comments
The reason there is a 500 error is that Google's servers are tripping up on the
_rnr_sevariable now includes characters like+/=. Looks like a base64, but watching the network traffic in Firebug shows that Google's javascript sends the raw value without any modifications.So you need to replace line 90 with the following line. That's it! No other changes are necessary.
(The change: Surround the matched value in a CGI.escape call, so that
+/=is url encoded for Google's sake.)export
Also, it's working fine in Arch Linux, running ruby v1.9.2. :-)
export
Google has added support for google voice in their google apps product. Unfortunately when I make these adjustments to the script:
ACCOUNT = 'user@mydomain.com' # managed by google and text works
PASSWORD = 'mypass' #alphanumeric pass no strange characters
the script fails with errors:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:2097:in
error!': 500 "Internal Server Error" (Net::HTTPFatalError)postit'from /Users/mano/Documents/Scripts/voicesms user@mydomain.com.rb:61:in
from /Users/mano/Documents/Scripts/voicesms user@mydomain.com.rb:90
from /Users/mano/Documents/Scripts/voicesms user@mydomain.com.rb:88:in `each'
from /Users/mano/Documents/Scripts/voicesms user@mydomain.com.rb:88
Can someone please help me out?
export
never mind got it:
voicesms.rb –m message\ $variable\ more\ message
export
how do you pass a variable to a message?
voicesms.rb -m "message:" $variable #fails
export
root@pbx:~ $ ruby voicesms.rb -n +15558882222 -m "or this one" -u 970dogwalk@gmail.com:password
Message sent to +15558882222
root@pbx:~ $ ruby voicesms.rb -n +15558882222 -m "or this one" -u 1970dogwalk@gmail.com:password
/usr/lib/ruby/1.8/net/http.rb:2097:in
error!': 500 "Internal Server Error" (Net::HTTPFatalError)postit'from voicesms.rb:61:in
from voicesms.rb:90
from voicesms.rb:88:in `each'
from voicesms.rb:88
export
I'm afraid I don't have time to debug this script. The only thing I can tell you is that the only time I've been able to reproduce this error is when the password is incorrect for the account…
export
nope ... length doesn't matter ...
export
/usr/lib/ruby/1.8/net/http.rb:2097:in
error!': 500 "Internal Server Error" (Net::HTTPFatalError)postit'from voicesms.rb:61:in
from voicesms.rb:90
from voicesms.rb:88:in `each'
from voicesms.rb:88
I have two google voice accounts ... one is 970dogwalk@gmail.com and the other one is 1970dogwalk@gmail.com. When I use the 970dogwalk number everything is fine, but when I use the 1970dogwalk@gmail.com I get the error above ... maybe it has something to do with the username, since everything else is identical. Hope we can figure this one out ... I really need to use the 1970dogwalk account to send sms messages.
Maybe it has something to do with the length of the username ... i will setup another test with an 11 char length account ...
export
i'm kinda working on something similar. thanks for the thoughts. did you ever get it working?
thanks again,
kevin
export
It still works for me, and the only way I've been able to replicate the error is if my password is incorrect...
export
thanks ;)
export
Hmm...
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:2097:in
error!': 500 "Internal Server Error" (Net::HTTPFatalError)postit'from /Users/miker/Downloads/2010-11/voicesms.rb:61:in
from /Users/miker/Downloads/2010-11/voicesms.rb:90
from /Users/miker/Downloads/2010-11/voicesms.rb:88:in `each'
from /Users/miker/Downloads/2010-11/voicesms.rb:88
export
Argh, @justin above is having the same issue. Still trying to figure out why… I'll get back to you as soon as we solve it.
export
So very happy.
export
I HAVE TO do this!
export