Closed skinnyjames closed 7 months ago
I think this is related to https://github.com/crystal-lang/crystal/issues/13150 in that by default I've been forcing the fast path API. However in this case it seems JIT mode isn't available, which is handled by the stdlib implementation, but because the extension is forcing it, we get the error.
Should be easy enough to fix.
I think Athena controllers return 500 when resolving routes when using PCRE2 without JIT support.
Crystal Regex checks the return from
jit_compile
but I don't think it is being checked in the regex ext for athena routing.https://github.com/athena-framework/athena/blob/master/src/components/routing/src/ext/regex.cr#L46
Fix / workaround is to check the result from
jit_compile