Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For what it's worth, I see a lot of errors from within the Android HTTP library. From Barcode Scanner I get stack traces from across about 35M people, and so I think I've seen one of everything. Here's all the weird stuff we just catch and swallow in the app, below. I recommend you work around it as a platform bug and fail gracefully.</p> <p><a href="https://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/HttpHelper.java" rel="nofollow">https://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/HttpHelper.java</a></p> <pre><code> private static int safelyConnect(String uri, HttpURLConnection connection) throws IOException { try { connection.connect(); } catch (NullPointerException npe) { // this is an Android bug: http://code.google.com/p/android/issues/detail?id=16895 Log.w(TAG, "Bad URI? " + uri); throw new IOException(npe.toString()); } catch (IllegalArgumentException iae) { // Also seen this in the wild, not sure what to make of it. Probably a bad URL Log.w(TAG, "Bad URI? " + uri); throw new IOException(iae.toString()); } catch (SecurityException se) { // due to bad VPN settings? Log.w(TAG, "Restricted URI? " + uri); throw new IOException(se.toString()); } catch (IndexOutOfBoundsException ioobe) { // Another Android problem? https://groups.google.com/forum/?fromgroups#!topic/google-admob-ads-sdk/U-WfmYa9or0 Log.w(TAG, "Bad URI? " + uri); throw new IOException(ioobe.toString()); } try { return connection.getResponseCode(); } catch (NullPointerException npe) { // this is maybe this Android bug: http://code.google.com/p/android/issues/detail?id=15554 Log.w(TAG, "Bad URI? " + uri); throw new IOException(npe.toString()); } catch (NumberFormatException nfe) { // Again seen this in the wild for bad header fields in the server response! Log.w(TAG, "Bad server status? " + uri); throw new IOException(nfe.toString()); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload