https://apinutriciona.dkreativo.es/api/materials/import

RawMaterialController :: import

Request

GET Parameters

No GET parameters

POST Parameters

No POST parameters

Uploaded Files

No files were uploaded

Request Attributes

Key Value
_controller
"App\Controller\RawMaterialController::import"
_firewall_context
"security.firewall.map.context.main"
_links
Symfony\Component\WebLink\GenericLinkProvider {#2994
  -links: [
    2993 => Symfony\Component\WebLink\Link {#2993
      -href: "https://apinutriciona.dkreativo.es/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_raw_materials_import"
_route_params
[]
_security_firewall_run
"_security_main"
_stopwatch_token
"53b667"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, deflate"
connection
"close"
from
"gptbot(at)openai.com"
host
"apinutriciona.dkreativo.es"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.3; +https://openai.com/gptbot)"
x-accel-internal
"/internal-nginx-static-location"
x-openai-host-hash
"859807114"
x-php-ob-level
"1"
x-real-ip
"74.7.227.30"

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
"Tue, 16 Dec 2025 02:36:21 GMT"
expires
"-1"
link
"<https://apinutriciona.dkreativo.es/api/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation""
pragma
"no-cache"
x-debug-exception
"Warning%3A%20is_dir%28%29%3A%20open_basedir%20restriction%20in%20effect.%20File%28%2Fvar%2Fwww%2Fvhost%2Fdkreativo.es%2Fapinutriciona.dkreativo.es%2Fimportar%2F%29%20is%20not%20within%20the%20allowed%20path%28s%29%3A%20%28%2Fvar%2Fwww%2Fvhosts%2Fdkreativo.es%2F%3A%2Ftmp%2F%29"
x-debug-exception-file
"%2Fvar%2Fwww%2Fvhosts%2Fdkreativo.es%2Fapinutriciona.dkreativo.es%2Fsrc%2FService%2FImportarMateriasHelper.php:30"
x-debug-token
"2dd513"
x-debug-token-link
"https://apinutriciona.dkreativo.es/_profiler/1bc3cd"
x-previous-debug-token
"1bc3cd"
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_ENV
"dev"
APP_SECRET
"445c5313fadc9a6ad089a5468afd3012"
CORS_ALLOW_ORIGIN
"*"
DATABASE_URL
"mysql://nutricionatester:0nV$99iu2@apinutriciona.dkreativo.es:3306/nutricionatester?serverVersion=10.2.39-mariadb"
RUTA_IMPORTACION
"/var/www/vhost/dkreativo.es/apinutriciona.dkreativo.es/importar"
UPLOAD_REPORT_FOLDER
"/var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/reports"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/public"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/public"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www/vhosts/dkreativo.es"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, deflate"
HTTP_CONNECTION
"close"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"apinutriciona.dkreativo.es"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.3; +https://openai.com/gptbot)"
HTTP_X_ACCEL_INTERNAL
"/internal-nginx-static-location"
HTTP_X_OPENAI_HOST_HASH
"859807114"
HTTP_X_REAL_IP
"74.7.227.30"
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_HTTPS
"on"
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_SSL_TLS_SNI
"apinutriciona.dkreativo.es"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"aUDFpSj6d4AKjn3MxTrcfgAAAMM"
REDIRECT_URL
"/api/materials/import"
REMOTE_ADDR
"74.7.227.30"
REMOTE_PORT
"47214"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1765852581
REQUEST_TIME_FLOAT
1765852581.6626
REQUEST_URI
"/api/materials/import"
SCRIPT_FILENAME
"/var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"178.33.163.152"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"apinutriciona.dkreativo.es"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.0"
SERVER_SIGNATURE
"<address>Apache Server at apinutriciona.dkreativo.es Port 443</address>\n"
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"apinutriciona.dkreativo.es"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,RUTA_IMPORTACION,UPLOAD_REPORT_FOLDER,DATABASE_URL,CORS_ALLOW_ORIGIN"
UNIQUE_ID
"aUDFpSj6d4AKjn3MxTrcfgAAAMM"
USER
"sanchezyjuradouser"
proxy-nokeepalive
"1"

Sub Requests 1

ErrorController (token = 1bc3cd)

Key Value
_controller
"error_controller"
_links
Symfony\Component\WebLink\GenericLinkProvider {#1112
  -links: [
    1100 => Symfony\Component\WebLink\Link {#1100
      -href: "https://apinutriciona.dkreativo.es/api/docs.jsonld"
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => "http://www.w3.org/ns/hydra/core#apiDocumentation"
      ]
      -attributes: []
    }
  ]
}
_stopwatch_token
"665c88"
exception
ErrorException {#766
  #message: "Warning: is_dir(): open_basedir restriction in effect. File(/var/www/vhost/dkreativo.es/apinutriciona.dkreativo.es/importar/) is not within the allowed path(s): (/var/www/vhosts/dkreativo.es/:/tmp/)"
  #code: 0
  #file: "/var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/src/Service/ImportarMateriasHelper.php"
  #line: 30
  #severity: E_WARNING
  trace: {
    /var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/src/Service/ImportarMateriasHelper.php:30 {
      App\Service\ImportarMateriasHelper->importar(): array …
      › $archivo = ''; //echo $ruta;if (is_dir($ruta)) {    $dir = opendir($ruta);
    }
    /var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/src/Controller/RawMaterialController.php:25 {
      App\Controller\RawMaterialController->import(ImportarMateriasHelper $importarMateriasHelper): JsonResponse …
      › {    return new JsonResponse($importarMateriasHelper->importar());}
    }
    /var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/vendor/symfony/http-kernel/HttpKernel.php:153 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/vendor/symfony/http-kernel/HttpKernel.php:75 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->handleRaw($request, $type);} catch (\Exception $e) {
    }
    /var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/vendor/symfony/http-kernel/Kernel.php:202 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
    }
    /var/www/vhosts/dkreativo.es/apinutriciona.dkreativo.es/public/index.php:20 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
    }
  }
}
logger
Symfony\Bridge\Monolog\Logger {#10 …8}