ClientException {#638
  -request: Request {#627
    -method: "GET"
    -requestTarget: null
    -uri: Uri {#623
      -scheme: "https"
      -userInfo: ""
      -host: "app.lucretia.io"
      -port: null
      -path: "/osiris/api/longfonds/research/file/20904890420EFC327FE0FA6089ADD77F/3.2.09.049%20Final%20report.pdf"
      -query: "access-token=WFHfY-e2VkVHK5JcT9VS8c1c1r63tk4t"
      -fragment: ""
    }
    -headers: array:2 [
      "User-Agent" => array:1 [
        0 => "GuzzleHttp/6.3.3 curl/7.53.1 PHP/7.0.29"
      ]
      "Host" => array:1 [
        0 => "app.lucretia.io"
      ]
    ]
    -headerNames: array:2 [
      "user-agent" => "User-Agent"
      "host" => "Host"
    ]
    -protocol: "1.1"
    -stream: Stream {#626
      -stream: stream resource @16
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 0
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -response: Response {#634
    -reasonPhrase: "Not Found"
    -statusCode: 404
    -headers: array:10 [
      "Date" => array:1 [
        0 => "Fri, 19 Oct 2018 20:10:12 GMT"
      ]
      "Content-Type" => array:1 [
        0 => "application/json; charset=UTF-8"
      ]
      "Content-Length" => array:1 [
        0 => "88"
      ]
      "Connection" => array:1 [
        0 => "keep-alive"
      ]
      "Server" => array:1 [
        0 => "Apache/2.4.27 (Amazon) PHP/7.0.29"
      ]
      "X-Powered-By" => array:1 [
        0 => "PHP/7.0.29"
      ]
      "Set-Cookie" => array:2 [
        0 => "PHPSESSID=g9h900lpf6js26niku8jvmm1b5; path=/; HttpOnly"
        1 => "_csrf=857d7b44816bbf2ffb30fdd2a62287fbcbc9311dd2a4f69e584833ff5a8dd528a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22bkLsbuYplBEsr1BR1DKMoL21hzRYKi8k%22%3B%7D; path=/; HttpOnly"
      ]
      "Expires" => array:1 [
        0 => "Thu, 19 Nov 1981 08:52:00 GMT"
      ]
      "Cache-Control" => array:1 [
        0 => "no-store, no-cache, must-revalidate"
      ]
      "Pragma" => array:1 [
        0 => "no-cache"
      ]
    ]
    -headerNames: array:10 [
      "date" => "Date"
      "content-type" => "Content-Type"
      "content-length" => "Content-Length"
      "connection" => "Connection"
      "server" => "Server"
      "x-powered-by" => "X-Powered-By"
      "set-cookie" => "Set-Cookie"
      "expires" => "Expires"
      "cache-control" => "Cache-Control"
      "pragma" => "Pragma"
    ]
    -protocol: "1.1"
    -stream: Stream {#632
      -stream: stream resource @22
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 88
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -handlerContext: []
  #message: """
    Client error: `GET https://app.lucretia.io/osiris/api/longfonds/research/file/20904890420EFC327FE0FA6089ADD77F/3.2.09.049%20Final%20report.pdf?access-token=WFHfY-e2VkVHK5JcT9VS8c1c1r63tk4t` resulted in a `404 Not Found` response:\n
    {"name":"Not Found","message":"","code":0,"status":404,"type":"yii\\web\\HttpException"}\n
    """
  #code: 404
  #file: "/mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php"
  #line: 113
  trace: {
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 {
      › 
      ›     return new $className($message, $request, $response, $previous, $ctx);}
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/guzzle/src/Middleware.php:66 {    }    throw RequestException::create($request, $response);}
      arguments: {
        $request: Request {#627}
        $response: Response {#634}
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/promises/src/Promise.php:203 {if (isset($handler[$index])) {    $promise->resolve($handler[$index]($value));} elseif ($index === 1) {
      arguments: {
        Response {#634}
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/promises/src/Promise.php:156 {foreach ($handlers as $handler) {    self::callHandler($id, $value, $handler);}
      arguments: {
        $index: 1
        $value: Response {#634}
        $handler: array:3 [ …3]
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/promises/src/TaskQueue.php:47 {while ($task = array_shift($this->queue)) {    $task();}
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/promises/src/Promise.php:246 {    $this->waitFn = null;    $wfn(true);} catch (\Exception $reason) {
      arguments: {
        true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/promises/src/Promise.php:223 {} elseif ($this->waitFn) {    $this->invokeWaitFn();} elseif ($this->waitList) {
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/promises/src/Promise.php:267 {while (true) {    $result->waitIfPending();}
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/promises/src/Promise.php:225 {} elseif ($this->waitList) {    $this->invokeWaitList();} else {
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/promises/src/Promise.php:62 {{    $this->waitIfPending();}
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/guzzlehttp/guzzle/src/Client.php:131 {    $options[RequestOptions::SYNCHRONOUS] = true;    return $this->requestAsync($method, $uri, $options)->wait();}
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/sites/all/modules/swigle/profit_import/profit_import.connection.php:70 {try {\r    return $this->client->request($this->method, $this->endPoint . '/' . $action . ($params ? '/' . $params : '') . '?access-token=' . $this->accessToken . ($page ? '&page=' . $page : ''), ['headers' => $this->headers]);\r}\r
      arguments: {
        $method: "GET"
        $uri: "https://app.lucretia.io/osiris/api/longfonds/research/file/20904890420EFC327FE0FA6089ADD77F/3.2.09.049 Final report.pdf?access-token=WFHfY-e2VkVHK5JcT9VS8c1c1r63tk4t"
        $options: array:2 [ …2]
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/sites/all/modules/swigle/profit_import/profit_import.connection.php:53 {\t} else\r\t\treturn json_decode($this->_request($action, $page, $params)->getBody(), true);\r}\r
      arguments: {
        $action: "file"
        $page: false
        $params: "20904890420EFC327FE0FA6089ADD77F/3.2.09.049 Final report.pdf"
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/sites/all/modules/swigle/profit_import/profit_import.connection.php:46 {public function getFile($id, $filename) {\r\treturn $this->_fetchResults('file', false, [$id, $filename]);\t\t\r}\r
      arguments: {
        $action: "file"
        $page: false
        $params: array:2 [ …2]
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/sites/all/modules/swigle/profit_import/src/Controllers/FileController.php:12 {\t\t$conn = new Connection();\r\t\t$file = $conn->getFile($id, $filename);\r//\t\tvar_dump($file);\r
      arguments: {
        $id: "20904890420EFC327FE0FA6089ADD77F"
        $filename: "3.2.09.049 Final report.pdf"
      }
    }
    Drupal\profit_import\Controllers\FileController->getFile() {}
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123 {  // Now call the actual controller, just like HttpKernel does.  return call_user_func_array($controller, $arguments);});
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: array:2 [ …2]
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/lib/Drupal/Core/Render/Renderer.php:582 {$this->setCurrentRenderContext($context);$result = $callable();// @todo Convert to an assertion in https://www.drupal.org/node/2408013
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:124 {  return call_user_func_array($controller, $arguments);});arguments: {
        $context: RenderContext {#231 …}
        $callable: Closure {#357 …}
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:97 {$event->setController(function () use ($controller, $arguments) {  return $this->wrapControllerExecutionInRenderContext($controller, $arguments);});
      arguments: {
        $controller: array:2 [ …2]
        $arguments: array:2 [ …2]
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/symfony/http-kernel/HttpKernel.php:151 {// call controller$response = \call_user_func_array($controller, $arguments);}
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/symfony/http-kernel/HttpKernel.php:68 {try {    return $this->handleRaw($request, $type);} catch (\Exception $e) {
      arguments: {
        $request: Request {#2 …}
        $type: 1
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/lib/Drupal/Core/StackMiddleware/Session.php:57 {
      › 
      › $result = $this->httpKernel->handle($request, $type, $catch);arguments: {
        $request: Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php:47 {
      › 
      ›   return $this->httpKernel->handle($request, $type, $catch);}
      arguments: {
        $request: Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php:184 {/** @var \Symfony\Component\HttpFoundation\Response $response */$response = $this->httpKernel->handle($request, $type, $catch);arguments: {
        $request: Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php:121 {else {  $response = $this->fetch($request, $type, $catch);}
      arguments: {
        $request: Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php:75 {if ($type === static::MASTER_REQUEST && $this->requestPolicy->check($request) === RequestPolicyInterface::ALLOW) {  $response = $this->lookup($request, $type, $catch);}
      arguments: {
        $request: Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php:47 {  static::setSettingsOnRequest($request, $this->settings);  return $this->httpKernel->handle($request, $type, $catch);}
      arguments: {
        $request: Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php:52 {  }  return $this->app->handle($request, $type, $catch);}
      arguments: {
        $request: Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23 {{    return $this->app->handle($request, $type, $catch);}
      arguments: {
        $request: Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/core/lib/Drupal/Core/DrupalKernel.php:665 {  $this->boot();  $response = $this->getHttpKernel()->handle($request, $type, $catch);}
      arguments: {
        $request: Request {#2 …}
        $type: 1
        $catch: true
      }
    }
    /mnt/filer/codebase/production/nl.longfonds.research/htdocs/web/index.php:19 {$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();
      arguments: {
        $request: Request {#2 …}
      }
    }
  }
}
"""
Client error: `GET https://app.lucretia.io/osiris/api/longfonds/research/file/20904890420EFC327FE0FA6089ADD77F/3.2.09.049%20Final%20report.pdf?access-token=WFHfY-e2VkVHK5JcT9VS8c1c1r63tk4t` resulted in a `404 Not Found` response:\n
{"name":"Not Found","message":"","code":0,"status":404,"type":"yii\\web\\HttpException"}\n
"""
error