Error 401 Unauthorized

GET https://dev.doctozed.com/api/v1/city/all

Request / Response

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\Api\City\CityApiController::all"
_firewall_context
"security.firewall.map.context.api"
_route
"cityapi_all"
_route_params
[]
_stateless
true
_stopwatch_token
"0ea7a7"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, deflate"
connection
"close"
content-length
""
content-type
""
from
"gptbot(at)openai.com"
host
"dev.doctozed.com"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
x-forwarded-for
"20.171.207.75"
x-forwarded-host
"dev.doctozed.com"
x-openai-host-hash
"254864963"
x-php-ob-level
"1"
x-real-ip
"20.171.207.75"

Request Content

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

Response

Response Headers

Header Value
cache-control
"private, must-revalidate"
content-type
"application/json"
date
"Sat, 05 Apr 2025 06:14:19 GMT"
expires
"-1"
pragma
"no-cache"
www-authenticate
"Bearer"
x-debug-token
"d43bac"

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_ENV
"dev"
APP_SECRET
"0c9a7c4ab77053edca948e1c4673520b"
DATABASE_URL
"mysql://doctozed-user:dZOij7AUNZBC4s0BQxNv@127.0.0.1:3306/doctozed-db?serverVersion=8.0.32&charset=utf8mb4"
JWT_PASSPHRASE
"b03002c4dad1d9a5259eb858baf2af229b30fda1e4d8f7c4cc4830377cfed23e"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"
MAILER_DSN
"smtp://noreply@doctozed.com:HtReGwzNbyjUXvze@ssl0.ovh.net:465?encryption=ssl&smtpauth=true"
MERCURE_JWT_SECRET
"!ChangeThisMercureHubJWTSecretKey!"
MERCURE_PUBLIC_URL
"https://example.com/.well-known/mercure"
MERCURE_URL
"https://example.com/.well-known/mercure"
MESSENGER_TRANSPORT_DSN
"doctrine://default?auto_setup=0"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTENT_LENGTH
""
CONTENT_TYPE
""
DOCUMENT_ROOT
"/home/doctozed-dev/htdocs/dev.doctozed.com/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
GEOIP_CITY
"Falls Church"
GEOIP_CITY_CONTINENT_CODE
"NA"
GEOIP_CITY_COUNTRY_CODE
"US"
GEOIP_CITY_COUNTRY_CODE3
"USA"
GEOIP_CITY_COUNTRY_NAME
"United States"
GEOIP_COUNTRY_CODE
"US"
GEOIP_COUNTRY_CODE3
"USA"
GEOIP_COUNTRY_NAME
"United States"
GEOIP_LATITUDE
"38.8640"
GEOIP_LONGITUDE
"-77.1922"
GEOIP_POSTAL_CODE
"22042"
GEOIP_REGION
"VA"
HOME
"/home/doctozed-dev"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, deflate"
HTTP_CONNECTION
"close"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"dev.doctozed.com"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
HTTP_X_FORWARDED_FOR
"20.171.207.75"
HTTP_X_FORWARDED_HOST
"dev.doctozed.com"
HTTP_X_OPENAI_HOST_HASH
"254864963"
HTTP_X_REAL_IP
"20.171.207.75"
MGT
"1"
PHP_SELF
"/index.php"
PHP_VALUE
"""
\n
error_log=/home/doctozed-dev/logs/php/error.log;\n
memory_limit=1G;\n
max_execution_time=60;\n
max_input_time=60;\n
max_input_vars=10000;\n
post_max_size=64M;\n
upload_max_filesize=64M;\n
date.timezone=UTC;\n
display_errors=off;
"""
QUERY_STRING
""
REDIRECT_STATUS
"200"
REMOTE_ADDR
"20.171.207.75"
REMOTE_PORT
""
REQUEST_METHOD
"GET"
REQUEST_TIME
1743833659
REQUEST_TIME_FLOAT
1743833659.6322
REQUEST_URI
"/api/v1/city/all"
SCRIPT_FILENAME
"/home/doctozed-dev/htdocs/dev.doctozed.com/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"127.0.0.1"
SERVER_NAME
"dev.doctozed.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.0"
SERVER_SOFTWARE
"nginx/1.21.4"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,MESSENGER_TRANSPORT_DSN,JWT_SECRET_KEY,JWT_PUBLIC_KEY,JWT_PASSPHRASE,MERCURE_URL,MERCURE_PUBLIC_URL,MERCURE_JWT_SECRET,MAILER_DSN"
USER
"doctozed-dev"