Giter VIP home page Giter VIP logo

depictr's People

Contributors

c17r avatar dependabot[bot] avatar thedoctor0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

depictr's Issues

Response time & SEO

Won't this package increase the response time for crawlers since the middleware is launching a new Chromium instance? Therefor resulting in a negative SEO effect for bots that doesn't parse and execute JS?

unknown error: cannot find Chrome binary

Hello, I wanted to test whether the rendering result was successful, so I added a Laravel project and installed Depictr, running in my Homestead, and forced to return the rendered page:

vendor/juhlinus/depictr/src/Middleware.php

<?php

...

    public function handle($request, Closure $next): Response
    {
        $response = $this->requestRenderedPage($request->fullUrl());

        return response($response['content'], $response['code']);

        // if ($this->shouldDepict($request)) {
        //     try {
        //         $response = $this->requestRenderedPage($request->fullUrl());
        //     } catch (RuntimeException $exception) {
        //         return $next($request);
        //     }

        //     return response(
        //         $response['content'],
        //         $response['code'],
        //     );
        // }

        // return $next($request);
    }

But when I browse the Laravel page, I get the following error:

Error

How can I solve it?

More expansive documentation

Would it be possible to include a demonstration setup within the project. It looks like a great piece of software, but I don't know where to begin troubleshooting since it doesn't appear to be doing anything in my setup.

Are extra dependencies required? Or should it just be a case of require and publish?

Curl error thrown for http DELETE to /session/...

Hi! Thx for package!
I got error here src/Middleware.php
try {
$response = $this->requestRenderedPage($request->fullUrl());
}

Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http DELETE to /session/fde5d9782c2792d530ff42f7a9b2fd0b

Operation timed out after 30000 milliseconds with 0 bytes received in file /home/ivan/www/inertia/vendor/php-webdriver/webdriver/lib/Remote/HttpCommandExecutor.php on line 331

php 7.4
Laravel 8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.