http://ads.safarmarket.com/api/banner/v1/cpc?destination=NJF&dim=468-120&origin=THR&platform=android&prod=flight&zone=int

CpcViewController :: index

Request

GET Parameters

Key Value
destination
"NJF"
dim
"468-120"
origin
"THR"
platform
"android"
prod
"flight"
zone
"int"

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"App\Controller\Api\Banner\V1\CpcViewController::index"
_firewall_context
"security.firewall.map.context.api"
_links
Symfony\Component\WebLink\GenericLinkProvider {#1421
  -links: [
    1420 => Symfony\Component\WebLink\Link {#1420
      -href: "http://ads.safarmarket.com/api/docs.jsonld"
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => "http://www.w3.org/ns/hydra/core#apiDocumentation"
      ]
      -attributes: []
    }
  ]
}
_remove_csp_headers
true
_route
"api.banner.v1.cpc"
_route_params
[]
_stopwatch_token
"e7dbcc"

Request Headers

Header Value
accept-encoding
"gzip"
ar-real-country
"IR"
ar-real-ip
"89.198.238.247"
ar-sid
"2002"
cdn-loop
"arvancloud; count=1"
connection
"close"
content-length
"0"
content-type
"application/json; charset=utf-8"
host
"ads.safarmarket.com"
true-client-ip
"89.198.238.247"
user-agent
"getx-client"
x-country-code
"IR"
x-forwarded-for
"89.198.238.247, 188.229.116.18"
x-forwarded-port
"443"
x-forwarded-proto
"http"
x-php-ob-level
"1"
x-real-ip
"188.229.116.18"
x-request-id
"da6f52d6bc9158871b43b93e1b133a06"
x-sid
"2002"

Request Content

Request content not available (it was retrieved as a resource).

Response

Response Headers

Header Value
cache-control
"private, must-revalidate"
content-type
"text/html; charset=UTF-8"
date
"Thu, 21 Nov 2024 12:50:01 GMT"
expires
-1
link
"<http://ads.safarmarket.com/api/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation""
pragma
"no-cache"
vary
"Accept"
x-debug-exception
"Redis%20connection%20failed%3A%20Connection%20refused"
x-debug-exception-file
"%2Fvar%2Fwww%2Fhtml%2Fsm-ads%2Fvendor%2Fsymfony%2Fcache%2FTraits%2FRedisTrait.php:305"
x-debug-token
"289ea3"
x-debug-token-link
"http://ads.safarmarket.com/_profiler/913068"
x-previous-debug-token
"913068"
x-robots-tag
"noindex"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"8c3c939e6d26e968b1a7ecf9c6002a08"
BASE_URL
"https://ads.safarmarket.com/"
CORS_ALLOW_ORIGIN
"^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$"
DATABASE_URL
"postgresql://db_user:db_password@172.31.30.177:5432/db_name?serverVersion=13&charset=utf8"
JAVA_BASE_API
"http://94.182.190.55:4044/"
MESSENGER_TRANSPORT_DSN
"redis://localhost:6379/messages"
SM_URL
"https://safarmarket.com/"

Defined as regular env variables

Key Value
CONTENT_LENGTH
"0"
CONTENT_TYPE
"application/json; charset=utf-8"
DOCUMENT_ROOT
"/var/www/html/sm-ads/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www"
HTTP_ACCEPT_ENCODING
"gzip"
HTTP_AR_REAL_COUNTRY
"IR"
HTTP_AR_REAL_IP
"89.198.238.247"
HTTP_AR_SID
"2002"
HTTP_CDN_LOOP
"arvancloud; count=1"
HTTP_CONNECTION
"close"
HTTP_CONTENT_LENGTH
"0"
HTTP_CONTENT_TYPE
"application/json; charset=utf-8"
HTTP_HOST
"ads.safarmarket.com"
HTTP_TRUE_CLIENT_IP
"89.198.238.247"
HTTP_USER_AGENT
"getx-client"
HTTP_X_COUNTRY_CODE
"IR"
HTTP_X_FORWARDED_FOR
"89.198.238.247, 188.229.116.18"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_REAL_IP
"188.229.116.18"
HTTP_X_REQUEST_ID
"da6f52d6bc9158871b43b93e1b133a06"
HTTP_X_SID
"2002"
PHP_SELF
"/index.php"
QUERY_STRING
"prod=flight&dim=468-120&origin=THR&destination=NJF&zone=int&platform=android"
REDIRECT_STATUS
"200"
REMOTE_ADDR
"172.31.28.151"
REMOTE_PORT
"58390"
REMOTE_USER
""
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1732193401
REQUEST_TIME_FLOAT
1732193401.1459
REQUEST_URI
"/api/banner/v1/cpc?prod=flight&dim=468-120&origin=THR&destination=NJF&zone=int&platform=android"
SCRIPT_FILENAME
"/var/www/html/sm-ads/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"172.31.28.138"
SERVER_NAME
"172.31.28.138"
SERVER_PORT
"80"
SERVER_PROTOCOL
"HTTP/1.0"
SERVER_SOFTWARE
"nginx/1.18.0"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_DEBUG,APP_SECRET,DATABASE_URL,BASE_URL,JAVA_BASE_API,SM_URL,MESSENGER_TRANSPORT_DSN,CORS_ALLOW_ORIGIN"
USER
"www-data"

Sub Requests 1

ErrorController (token = 913068)

Key Value
_controller
"error_controller"
_links
Symfony\Component\WebLink\GenericLinkProvider {#1199
  -links: [
    1198 => Symfony\Component\WebLink\Link {#1198
      -href: "http://ads.safarmarket.com/api/docs.jsonld"
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => "http://www.w3.org/ns/hydra/core#apiDocumentation"
      ]
      -attributes: []
    }
  ]
}
_stopwatch_token
"910b35"
exception
Symfony\Component\Cache\Exception\InvalidArgumentException {#853
  #message: "Redis connection failed: Connection refused"
  #code: 0
  #file: "/var/www/html/sm-ads/vendor/symfony/cache/Traits/RedisTrait.php"
  #line: 305
  trace: {
    /var/www/html/sm-ads/vendor/symfony/cache/Traits/RedisTrait.php:305 {
      Symfony\Component\Cache\Adapter\RedisAdapter::Symfony\Component\Cache\Traits\{closure} …
      › } catch (\RedisException $e) {    throw new InvalidArgumentException('Redis connection failed: '.$e->getMessage());}
    }
    /var/www/html/sm-ads/vendor/symfony/cache/Traits/RedisTrait.php:314 {
      Symfony\Component\Cache\Adapter\RedisAdapter::createConnection(string $dsn, array $options = []) …
      › } else {    $initializer($redis);}
    }
    /var/www/html/sm-ads/src/Service/FlightCpcBanner.php:39 {
      App\Service\FlightCpcBanner->getBanner(string $dimension, string $zone, string $origin, string $destination, string $device) …
      › $cache = new RedisAdapter(    RedisAdapter::createConnection('redis://localhost'),    'flight-cpc-view',
    }
    /var/www/html/sm-ads/src/Controller/Api/Banner/V1/CpcViewController.php:38 {
      App\Controller\Api\Banner\V1\CpcViewController->index(Request $request): Response …
      › $banner = $this->flightCpcBanner;$availableBanner = $banner->getBanner($request->get('dim'),$request->get('zone'),$request->get('origin'),$request->get('destination'),$request->get('platform'));if(!empty($availableBanner)) {
    }
    /var/www/html/sm-ads/vendor/symfony/http-kernel/HttpKernel.php:163 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /var/www/html/sm-ads/vendor/symfony/http-kernel/HttpKernel.php:75 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
      › try {    return $this->handleRaw($request, $type);} catch (\Exception $e) {
    }
    /var/www/html/sm-ads/vendor/symfony/http-kernel/Kernel.php:202 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
    }
    /var/www/html/sm-ads/public/index.php:20 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#66 …9}