Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extraneous Input regex.Matcher #5

Open
tggreene opened this issue Jun 1, 2021 · 0 comments
Open

Extraneous Input regex.Matcher #5

tggreene opened this issue Jun 1, 2021 · 0 comments

Comments

@tggreene
Copy link
Collaborator

tggreene commented Jun 1, 2021

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant