assertion "cb == jq_util_input_next_input_cb" failed: file "/usr/src/ports/jq/jq-1.6-1.x86_64/src/jq-1.6/src/util.c", line 371, function: jq_util_input_get_position
To fix this I replaced this (l. 72):
$(echo "$*" | tr ' _' '+')
with this, which seems to be more reliable:
$(echo "$*" | jq -sRr @uri)
I also removed --accept
from wget as it was not working correctly for uppercase extensions.