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

ErrorController

Request

GET Parameters

Key Value
destination
"23298"
dim
"300-250"
origin
""
platform
"mobile"
prod
"tour"
zone
""

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

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
"4a7ae8"
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}

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, deflate, br, zstd"
accept-language
"fa-IR,fa;q=0.9,en-AU;q=0.8,en;q=0.7,en-US;q=0.6"
ar-real-country
"IR"
ar-real-ip
"2.187.123.109"
ar-sid
"2065"
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
"?1"
sec-ch-ua-platform
""Android""
sec-fetch-dest
"empty"
sec-fetch-mode
"cors"
sec-fetch-site
"same-site"
true-client-ip
"2.187.123.109"
user-agent
"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36"
x-country-code
"IR"
x-forwarded-for
"2.187.123.109, 94.101.182.7"
x-forwarded-port
"443"
x-forwarded-proto
"http"
x-php-ob-level
"1"
x-real-ip
"94.101.182.7"
x-request-id
"25941f6478e84a5fcb440a724985f4b8"
x-sid
"2065"

Request Content

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

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Thu, 21 Nov 2024 12:58:08 GMT"
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
"844215"

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
"fa-IR,fa;q=0.9,en-AU;q=0.8,en;q=0.7,en-US;q=0.6"
HTTP_AR_REAL_COUNTRY
"IR"
HTTP_AR_REAL_IP
"2.187.123.109"
HTTP_AR_SID
"2065"
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
"?1"
HTTP_SEC_CH_UA_PLATFORM
""Android""
HTTP_SEC_FETCH_DEST
"empty"
HTTP_SEC_FETCH_MODE
"cors"
HTTP_SEC_FETCH_SITE
"same-site"
HTTP_TRUE_CLIENT_IP
"2.187.123.109"
HTTP_USER_AGENT
"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36"
HTTP_X_COUNTRY_CODE
"IR"
HTTP_X_FORWARDED_FOR
"2.187.123.109, 94.101.182.7"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_REAL_IP
"94.101.182.7"
HTTP_X_REQUEST_ID
"25941f6478e84a5fcb440a724985f4b8"
HTTP_X_SID
"2065"
PHP_SELF
"/index.php"
QUERY_STRING
"prod=tour&dim=300-250&origin=&destination=23298&zone=&platform=mobile"
REDIRECT_STATUS
"200"
REMOTE_ADDR
"172.31.28.151"
REMOTE_PORT
"47990"
REMOTE_USER
""
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1732193888
REQUEST_TIME_FLOAT
1732193888.1206
REQUEST_URI
"/api/banner/v1/cpc?prod=tour&dim=300-250&origin=&destination=23298&zone=&platform=mobile"
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"

Parent Request

Return to parent request (token = 0a7fa0)

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
"194a35"