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

ErrorController

Request

GET Parameters

Key Value
destination
"23042"
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
"9cf234"
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"
accept-language
"en-US,en;q=0.9"
ar-real-country
"IR"
ar-real-ip
"188.121.128.246"
ar-sid
"2067"
cdn-loop
"arvancloud; count=1"
connection
"close"
host
"ads.safarmarket.com"
origin
"https://safarmarket.com"
referer
"https://safarmarket.com/"
sec-fetch-dest
"empty"
sec-fetch-mode
"cors"
sec-fetch-site
"same-site"
true-client-ip
"188.121.128.246"
user-agent
"Mozilla/5.0 (iPhone; CPU iPhone OS 17_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.7 Mobile/15E148 Safari/604.1"
x-country-code
"IR"
x-forwarded-for
"188.121.128.246, 94.101.182.9"
x-forwarded-port
"443"
x-forwarded-proto
"http"
x-php-ob-level
"1"
x-real-ip
"94.101.182.9"
x-request-id
"2451fa4053a69715c31aba26cd37261e"
x-sid
"2067"

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 13:28:39 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
"533744"

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"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.9"
HTTP_AR_REAL_COUNTRY
"IR"
HTTP_AR_REAL_IP
"188.121.128.246"
HTTP_AR_SID
"2067"
HTTP_CDN_LOOP
"arvancloud; count=1"
HTTP_CONNECTION
"close"
HTTP_HOST
"ads.safarmarket.com"
HTTP_ORIGIN
"https://safarmarket.com"
HTTP_REFERER
"https://safarmarket.com/"
HTTP_SEC_FETCH_DEST
"empty"
HTTP_SEC_FETCH_MODE
"cors"
HTTP_SEC_FETCH_SITE
"same-site"
HTTP_TRUE_CLIENT_IP
"188.121.128.246"
HTTP_USER_AGENT
"Mozilla/5.0 (iPhone; CPU iPhone OS 17_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.7 Mobile/15E148 Safari/604.1"
HTTP_X_COUNTRY_CODE
"IR"
HTTP_X_FORWARDED_FOR
"188.121.128.246, 94.101.182.9"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_PROTO
"http"
HTTP_X_REAL_IP
"94.101.182.9"
HTTP_X_REQUEST_ID
"2451fa4053a69715c31aba26cd37261e"
HTTP_X_SID
"2067"
PHP_SELF
"/index.php"
QUERY_STRING
"prod=tour&dim=300-250&origin=&destination=23042&zone=&platform=mobile"
REDIRECT_STATUS
"200"
REMOTE_ADDR
"172.31.28.151"
REMOTE_PORT
"55022"
REMOTE_USER
""
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"http"
REQUEST_TIME
1732195719
REQUEST_TIME_FLOAT
1732195719.5504
REQUEST_URI
"/api/banner/v1/cpc?prod=tour&dim=300-250&origin=&destination=23042&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 = 60760b)

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
"470b4d"