Closed maxguzenski closed 7 years ago
It looks like you are not passing any user agent in to be parsed. An example for that might be calling Plug.Conn.get_req_header/2
when no header exists.
By arbitrary (and perhaps sort of bad) decision the interface currently actually requires a string so you should be fine by modifying your lookup a bit:
UAInspector.parse(user_agent || "")
That way your errors should go away until I have whipped together a new release so these failures are prevented in the first place...
I have just released a new version with the appropriate fix in place. If your problem still persists please re-open this issue or open a new one.
I'm receiving a lot of this on production: