object(stdClass)#1863 (9) {
  ["__CLASS__"]=>
  string(47) "Shopware\Components\HttpClient\RequestException"
  ["body:Shopware\Components\HttpClient\RequestException:private"]=>
  string(25083) "

  
    RuntimeError: Error generating PDF from HTML input at https://aetzkunst.de/media/pdf/articleDocs/680dde36e9445_articles.html // Werkzeug Debugger
    
    
    
    
    
    
      var TRACEBACK = 140458115863552,
          CONSOLE_MODE = false,
          EVALEX = true,
          EVALEX_TRUSTED = false,
          SECRET = "d4flYAjIGCirwYGDt9gl";
    
  
  
    
RuntimeError

  RuntimeError: Error generating PDF from HTML input at https://aetzkunst.de/media/pdf/articleDocs/680dde36e9445_articles.html

Traceback (most recent call last)

  
  
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py",
      line 2464,
      in __call__
   
    def __call__(self, environ, start_response):
        """The WSGI server calls the Flask application object as the
        WSGI application. This calls :meth:`wsgi_app` which can be
        wrapped to applying middleware."""
        return self.wsgi_app(environ, start_response)
 
    def __repr__(self):
        return "" % (self.__class__.__name__, self.name)



  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py",
      line 2450,
      in wsgi_app
              try:
                ctx.push()
                response = self.full_dispatch_request()
            except Exception as e:
                error = e
                response = self.handle_exception(e)
            except:  # noqa: B001
                error = sys.exc_info()[1]
                raise
            return response(environ, start_response)
        finally:



  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py",
      line 1867,
      in handle_exception
              # if we want to repropagate the exception, we can attempt to
            # raise it with the whole traceback in case we can do that
            # (the function was actually called from the except part)
            # otherwise, we just raise the error again
            if exc_value is e:
                reraise(exc_type, exc_value, tb)
            else:
                raise e
 
        self.log_exception((exc_type, exc_value, tb))
        server_error = InternalServerError()



  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/_compat.py",
      line 39,
      in reraise
      import collections.abc as collections_abc
 
    def reraise(tp, value, tb=None):
        if value.__traceback__ is not tb:
            raise value.with_traceback(tb)
        raise value
 
    implements_to_string = _identity
 
else:
    iterkeys = lambda d: d.iterkeys()



  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py",
      line 2447,
      in wsgi_app
          ctx = self.request_context(environ)
        error = None
        try:
            try:
                ctx.push()
                response = self.full_dispatch_request()
            except Exception as e:
                error = e
                response = self.handle_exception(e)
            except:  # noqa: B001
                error = sys.exc_info()[1]



  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py",
      line 1952,
      in full_dispatch_request
              request_started.send(self)
            rv = self.preprocess_request()
            if rv is None:
                rv = self.dispatch_request()
        except Exception as e:
            rv = self.handle_user_exception(e)
        return self.finalize_request(rv)
 
    def finalize_request(self, rv, from_error_handler=False):
        """Given the return value from a view function this finalizes
        the request by converting it into a response and invoking the



  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py",
      line 1821,
      in handle_user_exception
              return self.handle_http_exception(e)
 
        handler = self._find_error_handler(e)
 
        if handler is None:
            reraise(exc_type, exc_value, tb)
        return handler(e)
 
    def handle_exception(self, e):
        """Handle an exception that did not have an error handler
        associated with it, or that was raised from an error handler.



  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/_compat.py",
      line 39,
      in reraise
      import collections.abc as collections_abc
 
    def reraise(tp, value, tb=None):
        if value.__traceback__ is not tb:
            raise value.with_traceback(tb)
        raise value
 
    implements_to_string = _identity
 
else:
    iterkeys = lambda d: d.iterkeys()



  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py",
      line 1950,
      in full_dispatch_request
          self.try_trigger_before_first_request_functions()
        try:
            request_started.send(self)
            rv = self.preprocess_request()
            if rv is None:
                rv = self.dispatch_request()
        except Exception as e:
            rv = self.handle_user_exception(e)
        return self.finalize_request(rv)
 
    def finalize_request(self, rv, from_error_handler=False):



  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py",
      line 1936,
      in dispatch_request
              getattr(rule, "provide_automatic_options", False)
            and req.method == "OPTIONS"
        ):
            return self.make_default_options_response()
        # otherwise dispatch to the handler for that endpoint
        return self.view_functions[rule.endpoint](**req.view_args)
 
    def full_dispatch_request(self):
        """Dispatches the request and on top of that performs request
        pre and postprocessing as well as HTTP exception catching and
        error handling.



  File "/home/bitbucket/pdf_services/htmltopdfservice.prod/api_auth_provider.py",
      line 37,
      in decorated
      """Provides token based authentication for any decorated function. """
    def decorated(*args, **kwargs):
        token = get_token_from_header()
        if token not in tokens:
            raise AuthorizationError("Invalid auth token.")
        return f(*args, **kwargs)
    return decorated
 
 
def check_and_initialize_secret_list():
    """ Check if secret list for configured runtime environment already exists,



  File "/home/bitbucket/pdf_services/htmltopdfservice.prod/pdf_api.py",
      line 37,
      in get_pdf
          return _pdf_update(pdf_input_url)
 
    # Convert and merge passed list of input files.
    inputs = get_query_parameter_as_list(pdf_api_provider.API_PARAMETER_INPUTS)
    if inputs:
        return _merge_and_convert_to_pdfs(inputs)
 
    raise ValueError('No mandatory argument(s) passed.')
 
 
def _pdf_update(pdf_input_url):



  File "/home/bitbucket/pdf_services/htmltopdfservice.prod/pdf_api.py",
      line 209,
      in _merge_and_convert_to_pdfs
          files_to_be_merged.append(output_file)
        if input_url.endswith('.pdf'):
            pdf_content = requests.get(input_url)
            output_file.write(pdf_content.content)
        elif not chrome_pdf.html_to_pdf_by_input_url(input_url, output_file):
            raise RuntimeError('Error generating PDF from HTML input at %s' % input_url)
 
    with tempfile.NamedTemporaryFile(suffix='.pdf') as merged_output_file:
        paths = [f.name for f in files_to_be_merged]
        _merge_pdfs(paths, merged_output_file.name)
        return send_file(merged_output_file.name,


  RuntimeError: Error generating PDF from HTML input at https://aetzkunst.de/media/pdf/articleDocs/680dde36e9445_articles.html



  
    
      
      This is the Copy/Paste friendly version of the traceback.  You can also paste this traceback into
      a gist:
      
    
    Traceback (most recent call last):
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py", line 2464, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py", line 2450, in wsgi_app
    response = self.handle_exception(e)
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py", line 1867, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/simonm/sandbox/htmltopdfservice.prod/env/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/bitbucket/pdf_services/htmltopdfservice.prod/api_auth_provider.py", line 37, in decorated
    return f(*args, **kwargs)
  File "/home/bitbucket/pdf_services/htmltopdfservice.prod/pdf_api.py", line 37, in get_pdf
    return _merge_and_convert_to_pdfs(inputs)
  File "/home/bitbucket/pdf_services/htmltopdfservice.prod/pdf_api.py", line 209, in _merge_and_convert_to_pdfs
    raise RuntimeError('Error generating PDF from HTML input at %s' % input_url)
RuntimeError: Error generating PDF from HTML input at https://aetzkunst.de/media/pdf/articleDocs/680dde36e9445_articles.html
  


  The debugger caught an exception in your WSGI application.  You can now
  look at the traceback which led to the error.  
  If you enable JavaScript you can also use additional features such as code
  execution (if the evalex feature is enabled), automatic pasting of the
  exceptions and much more.

      
        Brought to you by DON'T PANIC, your
        friendly Werkzeug powered traceback interpreter.
      
    

    
      
        Console Locked
        
          The console is locked and needs to be unlocked by entering the PIN.
          You can find the PIN printed out on the standard output of your
          shell that runs the server.
        
          PIN:
            
            
        
      
    
  



"
  ["message:protected"]=>
  string(452) "Server error response [url] http://87.106.205.38:9001/pdf?inputs%5B%5D=https%3A%2F%2Faetzkunst.de%2Fcustom%2Fplugins%2FCsAdvancedPdfButton%2FResources%2Fpdf%2Faetzkunst-first.pdf&inputs%5B%5D=https%3A%2F%2Faetzkunst.de%2Fmedia%2Fpdf%2FarticleDocs%2F680dde36e9445_articles.html&inputs%5B%5D=https%3A%2F%2Faetzkunst.de%2Fcustom%2Fplugins%2FCsAdvancedPdfButton%2FResources%2Fpdf%2Faetzkunst-last.pdf [status code] 500 [reason phrase] INTERNAL SERVER ERROR"
  ["string:Exception:private"]=>
  string(0) ""
  ["code:protected"]=>
  int(500)
  ["file:protected"]=>
  string(92) "/www/htdocs/w018b842/aetzkunst.de/engine/Shopware/Components/HttpClient/GuzzleHttpClient.php"
  ["line:protected"]=>
  int(56)
  ["trace:Exception:private"]=>
  array(16) {
    [0]=>
    string(8) "Array(6)"
    [1]=>
    string(8) "Array(6)"
    [2]=>
    string(8) "Array(6)"
    [3]=>
    string(8) "Array(6)"
    [4]=>
    string(8) "Array(6)"
    [5]=>
    string(8) "Array(6)"
    [6]=>
    string(8) "Array(6)"
    [7]=>
    string(8) "Array(6)"
    [8]=>
    string(8) "Array(6)"
    [9]=>
    string(8) "Array(6)"
    [10]=>
    string(8) "Array(6)"
    [11]=>
    string(8) "Array(6)"
    [12]=>
    string(8) "Array(6)"
    [13]=>
    string(8) "Array(6)"
    [14]=>
    string(8) "Array(6)"
    [15]=>
    string(8) "Array(6)"
  }
  ["previous:Exception:private"]=>
  object(stdClass)#1865 (10) {
    ["__CLASS__"]=>
    string(36) "GuzzleHttp\Exception\ServerException"
    ["request:GuzzleHttp\Exception\RequestException:private"]=>
    string(26) "GuzzleHttp\Message\Request"
    ["response:GuzzleHttp\Exception\RequestException:private"]=>
    string(27) "GuzzleHttp\Message\Response"
    ["message:protected"]=>
    string(452) "Server error response [url] http://87.106.205.38:9001/pdf?inputs%5B%5D=https%3A%2F%2Faetzkunst.de%2Fcustom%2Fplugins%2FCsAdvancedPdfButton%2FResources%2Fpdf%2Faetzkunst-first.pdf&inputs%5B%5D=https%3A%2F%2Faetzkunst.de%2Fmedia%2Fpdf%2FarticleDocs%2F680dde36e9445_articles.html&inputs%5B%5D=https%3A%2F%2Faetzkunst.de%2Fcustom%2Fplugins%2FCsAdvancedPdfButton%2FResources%2Fpdf%2Faetzkunst-last.pdf [status code] 500 [reason phrase] INTERNAL SERVER ERROR"
    ["string:Exception:private"]=>
    string(0) ""
    ["code:protected"]=>
    int(500)
    ["file:protected"]=>
    string(93) "/www/htdocs/w018b842/aetzkunst.de/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php"
    ["line:protected"]=>
    int(89)
    ["trace:Exception:private"]=>
    string(9) "Array(27)"
    ["previous:Exception:private"]=>
    NULL
  }
}