Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

rendering_timed_out? error #19

@dcaccavano

Description

@dcaccavano

I am getting

TypeError - can't convert String into an exact number

when using the middleware, it would seem that this method:

def rendering_timed_out?
  Time.now - @request.session["phantom-rendering"][render_to] > @options[:request_timeout]
end

is the culprit.

@request.session["phantom-rendering"][render_to] is returning a string, and not a Time object, resulting in this error. I monkey-patched it on my end to convert .to_time so that this would not break.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions