| |||||||||||||||||||||||||||||||||||||||||||||||||
$res = @socket_connect($socket, $this->host, $this->port) ?? false;
CD::set("NOWARN",0);
if (! $res) {
if ($cnt = once())
\Log::warning("can't connect to '$this->socket_name' $cnt calls missed");
throw new Api_DownException("Go-Api($this->o_host,$this->port) $this->name::$method(".cut(json_encode($args), 100).") failed");
}
}
socket_write($socket, $data, strlen($data));
$buffer = "";
while ($b = socket_read($socket, 2048)) {
|
| $r = $this->socketCall($method, ...$args); // throws exception
| 1 : removals
1 : [513082116161423229,***,1037403007962019651,724206199148518056]
| if ($cnt = once())
\Log::warning("radaris-go-api down. socket: ".$this->socket_name." using backup: $backup ; calls missed: $cnt");
if (is_array($backup))
$backup = $backup[array_rand($backup)]; // get random element
$this->_init($backup);
$r = $this->socketCall($method, ...$args); // throws exception
$this->saveFallback($backup); // saving Fallback server ONLY on success
return $r;
}
if ($cnt = once())
\Log::warning("radaris-go-api down (no backup found). socket: ".$this->socket_name." calls missed: $cnt");
|
| $res = $this->removals($hashes);
| 1 : removals
1 : [[513082116161423229***1037403007962019651,724206199148518056]]
| $res[0] = $sub_res[0] + $res[0];
}
$position = $position + static::$MAX_ARRAY_ELEMENTS_PER_REQUEST;
}
} else {
$res = $this->removals($hashes);
}
return $res[0] ?? [];
}
// FL popularity
function fl_pop(...$args) {
| Api_RadarisGo_NameServer
|
| 1 : [513082116161423229,***,1037403007962019651,724206199148518056]
| static function findRemovedHashes(array $hashes) {
if (isset($_GET["UPDATE"])) {
static::syncRemovalHashes();
static::reloadRemovals();
}
return i("go-api.name-server")->get_removals($hashes);
}
/**
* Find which of entities are forbidden. Uses i('go-api.name-server') service
* @param array $entities [uk => entity_data]
* @return array [uk => removal_reason]
| removal\Hasher_BaseHasher
|
| 1 : [513082116161423229,***,1037403007962019651,724206199148518056]
| $entity_hashes[$e_id][] = $hash;
}
}
}
if ($all_hashes) {
if ($removed_hashes = static::findRemovedHashes($all_hashes)) {
foreach ($entity_hashes as $e_id => $hashes) {
foreach ($hashes as $hash) {
if ($removed_hashes[$hash["hash"]] ?? 0) {
\Profiler::warn(Removal::$MYNAME, "Hash:".$hash["hash"] . ":" . x2s($hash)."; Entity:".x2s($entity));
$removed[$e_id] = $hash;
| removal\Hasher_BaseHasher
|
| 1 : {"1":{"phone":185041***},"uk":"1613504-111617:PhoneAddress/6"}}
| return $item;
}, $entities);
}
if (!empty($entities)) {
\Profiler::in(self::$MYNAME, "Filter data cnt:" . count($entities));
if ($removed = Hasher::findRemoved($entities)) {
switch ($method) {
case "unset":
foreach ($removed as $k => $v) {
unset($data[$k]);
}
| removal\Removal
|
| 1 : {"1":{"phone":185041***},"uk":"1613504-111617:PhoneAddress/6"}}
1 : {"1":{"name":"A Crag***_main":141},"id":9,"tp":"PhoneAddress"}} 1 : mark
| $tc["uk"] = $uk;
}
$to_check[$iid] = $tc;
}
}
if ($removed = removal\Removal::filterRemoved($to_check, $d["."], "mark")) {
//Also save removals permanently
/* Permanent set may take a lot of time.
foreach ($removed as $iid => $tc) {
$K[$phone][$iid]->_deleted = $d["."][$iid]["_deleted"];
$K[$phone][$iid]->_forbidden = $d["."][$iid]["_forbidden"];
| Phone
|
| 1 : 18504121087
| $K = KRDB::i("phone", "1".substr($p, 0, 7));
http_last_modified( max((int) $K->_updated, KRDB_Phone_Admin::$MIN_LAST_MODIFIED));
if ($this->forbidden_phone && !Debug::is_admin()) {
do404();
} else {
$teaser = Phone::teaser8("1".$p);
$teaser = Phone::teaserResolveGeo($teaser);
//08 May 2016 new logic. If we do not know phone number - pass user to reverse phone lookup report
if (!$teaser && !$this->forbidden_phone) {
SEO_MissingData::hit("phone");
go(Phone::reversePhoneLookupReportUrl($p, false));
|
| return call_user_func_array( [$this, $method], $r);
| 1 : 8504121087
| }
} catch(Exception $ex) {
\Log::alert( $ex->getMessage() );
}
try {
return call_user_func_array( [$this, $method], $r);
} catch(RedirectException $ex) {
return $ex->getMessage();
}
}
function page404() {
|
| return $this->_reflection_call($method);
| 1 : phone
| if (method_exists($this, $method) )
$mex=1;
}
}
if ($mex)
return $this->_reflection_call($method);
// use template name (same as url)
return $url;
}
/* internal */
// serve method (normal or gzipped)
|
| $r = $A->_call($method, $path);
| 1 : phone
1 : phone
| Profiler::disable();
CD::set("AJAX", 1);
}
Profiler::in("{$class}::$method", $p);
$A = new $class($p);
$r = $A->_call($method, $path);
Profiler::out();
//respect called action's desire to act as AJAX.
$is_ajax = CD("AJAX");
// AJAX methods - default - no templates
if ($is_ajax) {
|
| $template = self::action($url, $params); // PARAM by REF!
| 1 : phone
1 : {"p":"8504121087","c***":"table-scroll","forbidden_phone":null}
| self::$layout=$layout;
if ($r = strpos($url,"?"))
$url = substr($url, 0, $r);
$url = substr($url,1); // remove leading "/"
restore_msg($params);
$template = self::action($url, $params); // PARAM by REF!
if (isset($_GET['TPL']) ) {
echo "<div style='padding-left: 3px; background: #eee'>";
vvv($params);
echo "</div>";
}
|
| Controller::dispatch($_SERVER["REDIRECT_URL"], $_GET + $_POST, "_layout");
| 1 : phone
1 : {"p":"8504121087","c***":"table-scroll","forbidden_phone":null} 1 : _layout
| <?
Controller::dispatch($_SERVER["REDIRECT_URL"], $_GET + $_POST, "_layout");
exit; |
#0 lib.framework/Api/RadarisGo/RadarisGo.php:162 Api_RadarisGo->socketCall('...', Array) #1 lib.framework/Api/RadarisGo/NameServer.php:88 Api_RadarisGo->__call('...', Array) #2 lib/removal/Hasher/BaseHasher.php:91 Api_RadarisGo_NameServer->get_removals(Array) #3 lib/removal/Hasher/BaseHasher.php:115 removal\Hasher_BaseHasher::findRemovedHashes(Array) #4 lib/removal/Removal.php:135 removal\Hasher_BaseHasher::findRemoved(Array) #5 lib/Phone/Phone.php:615 removal\Removal::filterRemoved(Array, Array, '...') #6 vhosts/phone/lib/Action/Phone/Root.php:522 Phone::teaser8('...') #7 lib.framework/Action/Action.php:236 Action_Phone_Root->phone('...') #8 lib.framework/Action/Action.php:177 Action->_reflection_call('...') #9 lib.framework/Controller/Controller.php:265 Action->_call('...', '...') #10 lib.framework/Controller/Controller.php:169 Controller::action('...', Array) #11 vhosts/phone/phoneowner.us/www/index.php:2 Controller::dispatch('...', Array, '...') #12 {main}
( ! ) Fatal error: Uncaught Api_DownException: Go-Api(t8payment,6060) name-server::istat_hit(["{\"anti-spider.bypass\":1,\"anti-spider.hit\":1,\"dt-other.time\":1.0759830474853516,\"dt-other.hi...) failed in /rd/lib.framework/Api/RadarisGo/RadarisGo.php on line 216 | ||||
---|---|---|---|---|
( ! ) Api_DownException: Go-Api(t8payment,6060) name-server::istat_hit(["{\"anti-spider.bypass\":1,\"anti-spider.hit\":1,\"dt-other.time\":1.0759830474853516,\"dt-other.hi...) failed in /rd/lib.framework/Api/RadarisGo/RadarisGo.php on line 216 | ||||
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0430 | 3081120 | Statistic_iStat_Web_GoApi_Buffered->__destruct( ) | .../iStat.php:0 |
2 | 0.0430 | 3081120 | Api_RadarisGo_NameServer->istat_hit( $hits = ['anti-spider.bypass' => 1, 'anti-spider.hit' => 1, 'dt-other.time' => 1.0759830474854, 'dt-other.hit_select' => 1, 'dt-other.time_select' => 1.0759830474854, 'dt-other.hit-TDB3' => 1, 'dt-other.time-TDB3' => 1.0759830474854, 'dt-other.hit_web' => 1, 'dt-other.time_web' => 1.0759830474854, 'dt-other.dt-phone' => 1, 'dt-other.hit' => 1] ) | .../iStat.php:896 |
3 | 0.0430 | 3085592 | Api_RadarisGo->__call( $method = 'istat_hit', $args = [0 => '{"anti-spider.bypass":1,"anti-spider.hit":1,"dt-other.time":1.0759830474853516,"dt-other.hit_select":1,"dt-other.time_select":1.0759830474853516,"dt-other.hit-TDB3":1,"dt-other.time-TDB3":1.0759830474853516,"dt-other.hit_web":1,"dt-other.time_web":1.0759830474853516,"dt-other.dt-phone":1,"dt-other.hit":1}'] ) | .../NameServer.php:142 |
4 | 0.0433 | 3093544 | Api_RadarisGo->socketCall( $method = 'istat_hit', ...$args = variadic('{"anti-spider.bypass":1,"anti-spider.hit":1,"dt-other.time":1.0759830474853516,"dt-other.hit_select":1,"dt-other.time_select":1.0759830474853516,"dt-other.hit-TDB3":1,"dt-other.time-TDB3":1.0759830474853516,"dt-other.hit_web":1,"dt-other.time_web":1.0759830474853516,"dt-other.dt-phone":1,"dt-other.hit":1}') ) | .../RadarisGo.php:162 |