http://ads.safarmarket.com/api/banner/v1/cpc?destination=23042&dim=300-250&origin=&platform=desktop&prod=tour&zone=

CpcViewController :: index

Request

GET Parameters

Key Value
destination
"23042"
dim
"300-250"
origin
""
platform
"desktop"
prod
"tour"
zone
""

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: []
    }
  ]
}
_nelmio_cors_should_allow_origin
true
_remove_csp_headers
true
_route
"api.banner.v1.cpc"
_route_params
[]
_stopwatch_token
"391323"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, deflate, br, zstd"
accept-language
"en-US,en;q=0.9"
ar-real-country
"IR"
ar-real-ip
"46.209.207.130"
ar-sid
"2062"
cdn-loop
"arvancloud; count=1"
connection
"close"
host
"ads.safarmarket.com"
origin
"https://safarmarket.com"
priority
"u=1, i"
referer
"https://safarmarket.com/"
sec-ch-ua
""Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24""
sec-ch-ua-mobile
"?0"
sec-ch-ua-platform
""Windows""
sec-fetch-dest
"empty"
sec-fetch-mode
"cors"
sec-fetch-site
"same-site"
true-client-ip
"46.209.207.130"
user-agent
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
x-country-code
"IR"
x-forwarded-for
"46.209.207.130, 94.101.182.4"
x-forwarded-port
"443"
x-forwarded-proto
"http"
x-php-ob-level
"1"
x-real-ip
"94.101.182.4"
x-request-id
"4f0be0273482e8b5f39aaa0cd1528bd3"
x-sid
"2062"

Request Content

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

Response

Response Headers

Header Value
access-control-allow-origin
"https://safarmarket.com"
access-control-expose-headers
"link"
cache-control
"private, must-revalidate"
content-type
"text/html; charset=UTF-8"
date
"Sat, 23 Nov 2024 08:16:24 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
"cf585f"
x-debug-token-link
"http://ads.safarmarket.com/_profiler/4679f7"
x-previous-debug-token
"4679f7"
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
""
CONTENT_TYPE
""
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
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, deflate, br, zstd"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.9"
HTTP_AR_REAL_COUNTRY
"IR"
HTTP_AR_REAL_IP
"46.209.207.130"
HTTP_AR_SID
"2062"
HTTP_CDN_LOOP
"arvancloud; count=1"
HTTP_CONNECTION
"close"
HTTP_HOST
"ads.safarmarket.com"
HTTP_ORIGIN
"https://safarmarket.com"
HTTP_PRIORITY
"u=1, i"
HTTP_REFERER
"https://safarmarket.com/"
HTTP_SEC_CH_UA
""Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24""
HTTP_SEC_CH_UA_MOBILE
"?0"
HTTP_SEC_CH_UA_PLATFORM
""Windows""
HTTP_SEC_FETCH_DEST
"empty"
HTTP_SEC_FETCH_MODE
"cors"
HTTP_SEC_FETCH_SITE
"same-site"
HTTP_TRUE_CLIENT_IP
"46.209.207.130"
HTTP_USER_AGENT
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
HTTP_X_COUNTRY_CODE
"IR"
HTTP_X_FORWARDED_FOR
"46.209.207.130, 94.101.182.4"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_REAL_IP
"94.101.182.4"
HTTP_X_REQUEST_ID
"4f0be0273482e8b5f39aaa0cd1528bd3"
HTTP_X_SID
"2062"
PHP_SELF
"/index.php"
QUERY_STRING
"prod=tour&dim=300-250&origin=&destination=23042&zone=&platform=desktop"
REDIRECT_STATUS
"200"
REMOTE_ADDR
"172.31.28.151"
REMOTE_PORT
"49562"
REMOTE_USER
""
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1732349784
REQUEST_TIME_FLOAT
1732349784.8993
REQUEST_URI
"/api/banner/v1/cpc?prod=tour&dim=300-250&origin=&destination=23042&zone=&platform=desktop"
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 = 4679f7)

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
"504bab"
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/TourCpcBanner.php:39 {
      App\Service\TourCpcBanner->getBanner(string $dimension, string $zone, string $origin, string $destination, string $device) …
      › $cache = new RedisAdapter(    RedisAdapter::createConnection('redis://localhost'),    'tour-cpc-view',
    }
    /var/www/html/sm-ads/src/Controller/Api/Banner/V1/CpcViewController.php:46 {
      App\Controller\Api\Banner\V1\CpcViewController->index(Request $request): Response …
      › $banner = $this->tourCpcBanner;$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}