Closed piyushlahoti closed 9 years ago
Try putting in just "My-Profile-Name" rather than the full url.
There are no server-side errors (HTTP 200 for every request for Piyush Lahoti). Hence this must be some error on the client side. Need to investigate.
"My-Profile-Name" format also gives the same error. I've tried Google Chrome and Mozilla Firefox and the response is same in both. However, I am currently connecting to internet via a restrictive proxy server which might be the reason of this problem. I'll try w/o proxy server and update soon.
If you're using Chrome, go ahead and open up the console and see what the network looks like when you make the request.
Oh yes!! It's working w/o the proxy server.
@piyushlahoti - the proxy server would not affect the results... The backend is making requests on behalf of you, not through you.
Very true @kratsg. What can be the other possible reasons? Also, the console does not display any messages. I think it must mean a HTTP 200.
No, you need to click the Network tab and see what requests are happening and the responses.
All GET methods receive a HTTP 200 status.
Are you using the proxy still?
No. Directly connected to the network.
Then obviously we can't trace your error...
Thanks @kratsg !
@kratsg While using the proxy, a GET request to "http://quorastuff.appspot.com/getdata?user=http%3A%2F%2Fwww.quora.com%2FPiyush-Lahoti&async=false" gives a redirection(HTTP 307) status message and further the GET request to redirected URL gives empty response error.
However, directly copying the URL on my browser returns a JSON with all the relevant data. I still think this a problem due to the proxy I am using.
@piyushlahoti The 307 is a server thing. It must mean google appspot doesn't like it. Does http://quora-pie-chart.herokuapp.com/ give you an issue on the proxy at all?
The herokuapp link is working perfectly.
Ok, it's because of the DNS associated with the proxy forcing the temporary redirect.
But it should have given an empty response error when I directly copied the link into the browser, shouldn't it? That would have made the behavior consistent in both the cases.
^Nope. 307 requires you send a specific set of headers from the previous request so the server tracks you.
@piyushlahoti : I can't see any 307 errors in the server logs.
On entering the quora profile url in "http://www.quora.com/My-Profile-Name" format an alert "Failed to get data. Please try again." is displayed. On trying numerous times, the same alert message is displayed. Internet is functioning properly and the Quora session is active.