Skip to content

Extraneous Input regex.Matcher #5

@tggreene

Description

@tggreene

I'm getting the following error on some requests, it looks like pattern matching on the accept-content header throwing an exception:

Jun  1 01:41:49 ip-172-31-26-211 web: Extraneous input: {:matcher #object[java.util.regex.Matcher 0x58f9dc87 "java.util.regex.Matcher[pattern=.* region=34,52 lastmatch=*; q=.2, */*; q=.2]"], :result ({:juxt.reap.alpha.rfc7231/media-range "text/html", :juxt.reap.alpha.rfc7231/type "text", :juxt.reap.alpha.rfc7231/subtype "html", :juxt.reap.alpha.rfc7231/parameters {}} {:juxt.reap.alpha.rfc7231/media-range "image/gif", :juxt.reap.alpha.rfc7231/type "image", :juxt.reap.alpha.rfc7231/subtype "gif", :juxt.reap.alpha.rfc7231/parameters {}} {:juxt.reap.alpha.rfc7231/media-range "image/jpeg", :juxt.reap.alpha.rfc7231/type "image", :juxt.reap.alpha.rfc7231/subtype "jpeg", :juxt.reap.alpha.rfc7231/parameters {}}), :remainder "*; q=.2, *…", :crux.db/id nil, :juxt.site.alpha/type "Request", :ring.request/headers nil}
Jun  1 01:41:49 ip-172-31-26-211 web: clojure.lang.ExceptionInfo: Extraneous input
Jun  1 01:41:49 ip-172-31-26-211 web: at juxt.reap.alpha.combinators$complete$fn__6026.invoke(combinators.clj:244)
Jun  1 01:41:49 ip-172-31-26-211 web: at juxt.reap.alpha.ring$headers__GT_decoded_preferences$iter__12626__12630$fn__12631$fn__12632.invoke(ring.clj:36)
Jun  1 01:41:49 ip-172-31-26-211 web: at juxt.reap.alpha.ring$headers__GT_decoded_preferences$iter__12626__12630$fn__12631.invoke(ring.clj:35)
Jun  1 01:41:49 ip-172-31-26-211 web: at clojure.lang.LazySeq.sval(LazySeq.java:42)

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