Hey Fayland, Fixing this might be as simple as increasing the fetch timeout (curl_connection_timeout in config/container.php), random timeouts sounds exactly like the behaviour you're seeing.
The actual default fetching code is located in shindig/php/src/common/sample/BasicRemoteContentFetcher.php -- Chris On Tue, Oct 20, 2009 at 7:19 AM, Fayland Lam <[email protected]> wrote: > does anyone have any clue on 404 return in makeRequest? > > the background is: > 1, *sometimes*, in most of the time, it works great. but sometimes it > return 404 on /gadgets/makeRequest > with debug, it returns on ProxyHandler.php function fetchJson. this line: > $result = $this->fetchContentDivert($url, $method, $signer); > the POST data (part of) is > authz signed > bypassSpecCache 0 > contentType JSON > getSummaries false > headers httpMethod GET > signOwner true > signViewer true > > it's RSA makeRequest as described here > http://wiki.opensocial.org/index.php?title=Validating_Signed_Requests > > 2, we tried to wget the url by a Perl script with wget shell and all of > them are turn 200 HTTP status, many times. so that's not the problem of the > network. > > 3, the 404 number reduced a lot after I set memcached in container.php > 'data_cache' => 'CacheMemcache', > > 4, there is 7 makeRequest on one application. and usually 0 failure. but > sometimes, 1 failure or 2 failures. and not the same url every time. > > I tried to read the code, but lost at RemoteContentRequest.php > SigningFetcher.php, can someone do me a favor to tell me which file, which > line do the request to the remote url? > > Thanks. > > -- > Fayland Lam // http://www.fayland.org/ > >

