Error 500 Internal Server Error

GET https://dev.fcsprint2.nl/openai_api_v4/streamed/v5?p=openai_api_v4%2Fstreamed%2Fv5

Forwarded to ErrorController (075a74)

Exceptions

Warning: Undefined array key "hash"

ErrorException

Show exception properties
0 of 0
ErrorException {#505 â–¼ #severity: E_WARNING }
  1. #[Route(path: '/openai_api_v4/streamed/v5', name: 'openai_api_v4_streamed_v5', methods: ['GET'])]
  2. public function OpenAiApiV4StreamedV5(Request $request): StreamedResponse {
  3. $data = $request->query->all();
  4. $result = json_decode(rawurldecode(base64_decode($data['hash'])), true);
  5. //
  6. ////dd(json_decode(rawurldecode(base64_decode($result['hash'])), true));
  7. $application = $this->em->getRepository(Application::class)->find($result['application']);
  8. $template = new OpenAiTemplate();
  9. $template->setTitle($result['title']);
in vendor/symfony/http-kernel/HttpKernel.php -> OpenAiApiV4StreamedV5 (line 181)
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. $this->boot();
  2. ++$this->requestStackSize;
  3. $this->resetServices = true;
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
Kernel->handle() in public/index.php (line 38)
  1. //// Request::HEADER_FORWARDED
  2. //
  3. //// or, if you're using AWS ELB
  4. //// Request::HEADER_X_FORWARDED_AWS_ELB
  5. //);
  6. $response = $kernel->handle($request);
  7. $response->send();
  8. $kernel->terminate($request, $response);