JohnZhug / phpgooglevoice

Automatically exported from code.google.com/p/phpgooglevoice
0 stars 0 forks source link

500 Error #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Just try to send something.
2.
3.

What is the expected output? What do you see instead?
No sms sent

What version of the product are you using? On what operating system?
v0.2

Please provide any additional information below.

Getting the following response when trying to test the code and send an SMS.  
It's possible that Google has changed their system and this class needs 
updating.

<HTML>
<HEAD>
<TITLE>Internal Server Error</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Internal Server Error</H1>
<H2>Error 500</H2>
</BODY>
</HTML>

Original issue reported on code.google.com by black.ca...@gmail.com on 9 Sep 2011 at 8:19

GoogleCodeExporter commented 8 years ago
Can you send an SMS to yourself? I tested it on my account, and it seems to 
work.

Original comment by daar...@gmail.com on 19 Sep 2011 at 9:38

GoogleCodeExporter commented 8 years ago
sometime early September, i started receiving (when executed via bash:
PHP Fatal error:  Uncaught exception 'Exception' with message 'Could not log in 
to Google Voice with username: username@domain.tld' in GoogleVoice.php:66
and... receiving the Internal Server Error 500 as mentioned on other posts.
it is appearing that Google changed it's authentication url/methods/etc.

Original comment by ger...@louviere.org on 29 Sep 2011 at 7:46

GoogleCodeExporter commented 8 years ago
Any possible updates to this or is it dead in the water?  No matter what I try 
I just get Error 500.

Original comment by black.ca...@gmail.com on 3 Jan 2012 at 5:29

GoogleCodeExporter commented 8 years ago
it works, just make sure you enable a real fwd phone number on your gmail 
account. that was my 500 issue till i added one

Original comment by ajacar...@gmail.com on 31 Jan 2012 at 11:33

GoogleCodeExporter commented 8 years ago
I have a real fwd phone number and I still get the 500 error.

Original comment by rishi...@gmail.com on 1 Feb 2012 at 2:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I just got mine to work.  I had to change the following in 
'class.googlevoice.php'

OLD LINE 15:  private $inboxURL = 'https://www.google.com/voice/m/';

NEW LINE 15:  private $inboxURL = 'https://www.google.com/voice/b/0/m/';

function get_rnr_se() wasn't returning anything because the URL was coming back 
as error 302 moved temporarily.

Also keep in mind that if you have enabled the Google Authenticator for your 
account then you will need to go into your Account Settings and under 
"Authorising applications & sites" and then "Generate a new 
application-specific password"

Original comment by black.ca...@gmail.com on 1 Feb 2012 at 9:37

GoogleCodeExporter commented 8 years ago
I can verify that the answer in comment #7 worked for me. I have my GV number 
only forwarded to my gtalk in settings (i.e. not a real phone number).

Original comment by bob.b.be...@gmail.com on 29 Feb 2012 at 6:40

GoogleCodeExporter commented 8 years ago
Hm. I had the the library working fine for a couple of days, then I started 
getting "Moved Temporarily" (even after I tried various permutations of live 
phone numbers and changing line 15). Any ideas? Works fine for this account 
from the Web UI. I wonder if there are limits on volume? I only sent around 20 
SMSs.

Original comment by WaldronFaulkner on 6 Apr 2012 at 2:10

GoogleCodeExporter commented 8 years ago
Just tested mine and it's still working.  I did a small flood test a while back 
and sent about 50 at once to my cell.  They all went though but after about the 
20th they slowed down.  Not sure if it was Google Voice that throttled it or 
Verizon.  Either way all 50 got to me within 10 minutes.

Try logging into your Google Voice using a normal browser and going to the 
following

https://www.google.com/voice/b/0/m/

- Above should show just your inbox.

https://www.google.com/voice/m/sendsms

- Above should give a 403 Forbidden Error

https://www.google.com/accounts/ClientLogin

- Above should give a "Error=BadAuthentication".

If you get those 3 responses then the URL paths are good.  I'm guessing the 
"inboxURL" for you might be different.

Original comment by black.ca...@gmail.com on 6 Apr 2012 at 4:02

GoogleCodeExporter commented 8 years ago
Hi all,

All 3 of the above links work for me, and I made the change mentioned in 
Comment 7, but when I load the page, I get a "Moved Temporarily" with a link 
saying the document moved to 
https://www.google.com/accounts/ServiceLogin?service=grandcentral&passive=120960
0&continue=https://www.google.com/voice/m/sendsms&followup=https://www.google.co
m/voice/m/sendsms&btmpl=mobile<mpl=mobile, yet when I go there I get a 403.

Thoughts? It looks like _rnr_se() is turning up false (line 62), which is 
explaining the mischief, but...why is it false?

Original comment by bradley....@gmail.com on 2 Jul 2012 at 5:08

GoogleCodeExporter commented 8 years ago
Sorry for the spam. On further investigation, what seems to be wrong is that 
the variables aren't populating into the $login_param string in getLoginAuth 
properly (line 27). If I navigate to that site and enter my credentials 
manually (e.g. in Chrome), it spits out all of the auth info. When I copied the 
auth info into the return value for getLoginAuth ($this->login_auth), 
everything worked.

I don't know much about curl, but maybe something weird with the headers? The 
variables are definitely set in the function, but the result spits out the same 
"Error=BadAuthentication" as when you navigate to the URL without any of the 
parameters set...

Original comment by bradley....@gmail.com on 2 Jul 2012 at 5:57

GoogleCodeExporter commented 8 years ago
thanks to you all for the feedback. 
It is working after editing from comment 7 as of today (09-10-2012)

Original comment by jc70...@gmail.com on 10 Sep 2012 at 7:06