{"action":"closed","issue":{"url":"https://api.github.com/repos/adjust/unity_sdk/issues/86","repository_url":"https://api.github.com/repos/adjust/unity_sdk","labels_url":"https://api.github.com/repos/adjust/unity_sdk/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/adjust/unity_sdk/issues/86/comments","events_url":"https://api.github.com/repos/adjust/unity_sdk/issues/86/events","html_url":"https://github.com/adjust/unity_sdk/issues/86","id":182714118,"number":86,"title":"Failed to read response and track session when sending data","user":{"login":"pika-shiro","id":22808720,"avatar_url":"https://avatars.githubusercontent.com/u/22808720?v=3","gravatar_id":"","url":"https://api.github.com/users/pika-shiro","html_url":"https://github.com/pika-shiro","followers_url":"https://api.github.com/users/pika-shiro/followers","following_url":"https://api.github.com/users/pika-shiro/following{/other_user}","gists_url":"https://api.github.com/users/pika-shiro/gists{/gist_id}","starred_url":"https://api.github.com/users/pika-shiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pika-shiro/subscriptions","organizations_url":"https://api.github.com/users/pika-shiro/orgs","repos_url":"https://api.github.com/users/pika-shiro/repos","events_url":"https://api.github.com/users/pika-shiro/events{/privacy}","received_events_url":"https://api.github.com/users/pika-shiro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-13T07:21:09Z","updated_at":"2016-10-17T01:23:24Z","closed_at":"2016-10-17T01:23:24Z","body":"Adjust Version: unity4.10.0(Sandbox-Mode)\r\nDevice: ASUS_Z00AD\r\nDevice-Android Version: 5.0\r\n\r\nget this error in logcat for every event:\r\n\r\n    E     Failed to read response. (Attempt to invoke virtual method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference)\r\n    E     Failed to track session. (Runtime exception: java.lang.NullPointerException: Attempt to invoke virtual method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference)\r\n\r\nSimilar to this problem\r\n[https://github.com/adjust/android_sdk/issues/228](url)\r\n\r\nBelow are debug-logs from both Adjust versions after first app-start:\r\n\r\n**os_version 5.0**\r\n\r\n    A\t\t\t SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!\r\n    D\t\t\t Attribution file not found\r\n    D\t\t\t Activity state file not found\r\n    D\t\t\t Session Callback parameters file not found\r\n    D\t\t\t Session Partner parameters file not found\r\n    I\t\t\t Google Play Services Advertising ID read correctly at start time\r\n    V\t\t\t Foreground timer configured to fire after 60.0 seconds of starting and cycles every 60.0 seconds\r\n    D\t\t\t Package queue file not found\r\n    V\t\t\t Foreground timer starting\r\n    V\t\t\t Subsession start\r\n    D\t\t\t Added package 1 (session)\r\n    V\t\t\t Path: /session\r\n    V\t\t\t ClientSdk: unity4.10.0@android4.10.1\r\n    V\t\t\t Parameters:\r\n    V\t\t\t android_uuid xxxxx\r\n    V\t\t\t api_level 21\r\n    V\t\t\t app_token xxxxx\r\n    V\t\t\t app_version xxxxx\r\n    V\t\t\t attribution_deeplink 1\r\n    V\t\t\t country JP\r\n    V\t\t\t cpu_type x86\r\n    V\t\t\t created_at 2016-10-13T11:46:18.970Z+0900\r\n    V\t\t\t device_manufacturer asus\r\n    V\t\t\t device_name ASUS_Z00AD\r\n    V\t\t\t device_type phone\r\n    V\t\t\t display_height 1920\r\n    V\t\t\t display_width 1080\r\n    V\t\t\t environment sandbox\r\n    V\t\t\t event_buffering_enabled 0\r\n    V\t\t\t gps_adid xxxxx\r\n    V\t\t\t hardware_name LRX21V.JP-ASUS_Z00A-2.20.40.174_20160310_0673_user\r\n    V\t\t\t language ja\r\n    V\t\t\t needs_response_details 1\r\n    V\t\t\t os_name android\r\n    V\t\t\t os_version 5.0\r\n    V\t\t\t package_name xxxxx\r\n    V\t\t\t screen_density high\r\n    V\t\t\t screen_format long\r\n    V\t\t\t screen_size normal\r\n    V\t\t\t session_count 1\r\n    V\t\t\t tracking_enabled 1\r\n    D\t\t\t Wrote Activity state: ec:0 sc:1 ssc:1 sl:0.0 ts:0.0 la:11:12:13 uuid:a203054a-e44b-4c3f-b6aa-174544dcaacc\r\n    D\t\t\t Wrote Package queue: [session]\r\n    V\t\t\t Foreground timer is already started\r\n    V\t\t\t Subsession start\r\n    V\t\t\t Time span since last activity too short for a new subsession\r\n    D\t\t\t Package handler wrote 1 packages\r\n    V\t\t\t Package handler is already sending\r\n    E\t\t\t Failed to read response. (Attempt to invoke virtual method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference)\r\n    E\t\t\t Failed to track session. (Runtime exception: java.lang.NullPointerException: Attempt to invoke virtual method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference)\r\n    D\t\t\t Wrote Package queue: []\r\n    D\t\t\t Launching failed session tracking listener\r\n    D\t\t\t Package handler wrote 0 packages\r\n    V\t\t\t Package handler can send\r\n\r\n\r\nand it might be a little different \r\nthis OS also occured simillar problem\r\n\r\n**os_version  4.2.2**\r\n\r\n    A\t\t\t SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!\r\n    D\t\t\t Attribution file not found\r\n    D\t\t\t Activity state file not found\r\n    D\t\t\t Session Callback parameters file not found\r\n    D\t\t\t Session Partner parameters file not found\r\n    I\t\t\t Google Play Services Advertising ID read correctly at start time\r\n    V\t\t\t Foreground timer configured to fire after 60.0 seconds of starting and cycles every 60.0 seconds\r\n    D\t\t\t Package queue file not found\r\n    V\t\t\t Foreground timer starting\r\n    V\t\t\t Subsession start\r\n    D\t\t\t Added package 1 (session)\r\n    V\t\t\t Path: /session\r\n    V\t\t\t ClientSdk: unity4.10.0@android4.10.1\r\n    V\t\t\t Parameters:\r\n    V\t\t\t android_uuid xxxxx\r\n    V\t\t\t api_level 17\r\n    V\t\t\t app_token xxxxx\r\n    V\t\t\t app_version xxxxx\r\n    V\t\t\t attribution_deeplink 1\r\n    V\t\t\t country JP\r\n    V\t\t\t cpu_type armeabi-v7a\r\n    V\t\t\t created_at 2016-10-13T12:00:40.648Z+0900\r\n    V\t\t\t device_manufacturer Sony\r\n    V\t\t\t device_name SO-02E\r\n    V\t\t\t device_type phone\r\n    V\t\t\t display_height 1776\r\n    V\t\t\t display_width 1080\r\n    V\t\t\t environment sandbox\r\n    V\t\t\t event_buffering_enabled 0\r\n    V\t\t\t gps_adid xxxxx\r\n    V\t\t\t hardware_name 10.3.1.B.1.1\r\n    V\t\t\t language ja\r\n    V\t\t\t needs_response_details 1\r\n    V\t\t\t os_name android\r\n    V\t\t\t os_version 4.2.2\r\n    V\t\t\t package_name xxxxx\r\n    V\t\t\t screen_density high\r\n    V\t\t\t screen_format normal\r\n    V\t\t\t screen_size normal\r\n    V\t\t\t session_count 1\r\n    V\t\t\t tracking_enabled 1\r\n    D\t\t\t Wrote Activity state: ec:0 sc:1 ssc:1 sl:0.0 ts:0.0 la:11:12:13 uuid:fd3c2f02-42b0-4751-ac9a-00ddb755b16a\r\n    V\t\t\t Foreground timer is already started\r\n    V\t\t\t Subsession start\r\n    V\t\t\t Time span since last activity too short for a new subsession\r\n    D\t\t\t Wrote Package queue: [session]\r\n    D\t\t\t Package handler wrote 1 packages\r\n    V\t\t\t Package handler is already sending\r\n    E\t\t\t Failed to read response. (Socket is closed)\r\n    E\t\t\t Failed to track session. (Request failed: java.net.SocketException: Socket is closed) Will retry later\r\n    V\t\t\t Waiting for 64.6 seconds before retrying the 1 time\r\n    D\t\t\t Launching failed session tracking listener\r\n    V\t\t\t Foreground timer suspended with 37.4 seconds left\r\n    V\t\t\t Subsession end\r\n\r\n**os_version 4.1.2**\r\n\r\n    A\t\t\t SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!\r\n    D\t\t\t Attribution file not found\r\n    D\t\t\t Activity state file not found\r\n    D\t\t\t Session Callback parameters file not found\r\n    D\t\t\t Session Partner parameters file not found\r\n    I\t\t\t Google Play Services Advertising ID read correctly at start time\r\n    V\t\t\t Foreground timer configured to fire after 60.0 seconds of starting and cycles every 60.0 seconds\r\n    D\t\t\t Package queue file not found\r\n    V\t\t\t Foreground timer starting\r\n    V\t\t\t Subsession start\r\n    D\t\t\t Added package 1 (session)\r\n    D\t\t\t Wrote Activity state: ec:0 sc:1 ssc:1 sl:0.0 ts:0.0 la:11:12:13 uuid:99f1055c-ed53-4d1f-8a3c-94f7e113e4a0\r\n    V\t\t\t Foreground timer is already started\r\n    V\t\t\t Subsession start\r\n    V\t\t\t Time span since last activity too short for a new subsession\r\n    V\t\t\t Path: /session\r\n    V\t\t\t ClientSdk: unity4.10.0@android4.10.1\r\n    V\t\t\t Parameters:\r\n    V\t\t\t android_uuid xxxxx\r\n    V\t\t\t api_level 16\r\n    V\t\t\t app_token xxxxx\r\n    V\t\t\t app_version xxxxx\r\n    V\t\t\t attribution_deeplink 1\r\n    V\t\t\t country JP\r\n    V\t\t\t cpu_type armeabi-v7a\r\n    V\t\t\t created_at 2016-10-13T12:10:37.756Z+0900\r\n    V\t\t\t device_manufacturer samsung\r\n    V\t\t\t device_name SC-06D\r\n    V\t\t\t device_type phone\r\n    V\t\t\t display_height 1280\r\n    V\t\t\t display_width 720\r\n    V\t\t\t environment sandbox\r\n    V\t\t\t event_buffering_enabled 0\r\n    V\t\t\t fb_id xxxxx\r\n    V\t\t\t gps_adid xxxxx\r\n    V\t\t\t hardware_name JZO54K.SC06DOMBMK2\r\n    V\t\t\t language ja\r\n    V\t\t\t needs_response_details 1\r\n    V\t\t\t os_name android\r\n    V\t\t\t os_version 4.1.2\r\n    V\t\t\t package_name xxxxx\r\n    V\t\t\t screen_density high\r\n    V\t\t\t screen_format long\r\n    V\t\t\t screen_size normal\r\n    V\t\t\t session_count 1\r\n    V\t\t\t tracking_enabled 1\r\n    D\t\t\t Wrote Package queue: [session]\r\n    D\t\t\t Package handler wrote 1 packages\r\n    V\t\t\t Package handler is already sending\r\n    E\t\t\t Failed to read response. (Socket is closed)\r\n    E\t\t\t Failed to track session. (Request failed: java.net.SocketException: Socket is closed) Will retry later\r\n    V\t\t\t Waiting for 89.6 seconds before retrying the 1 time\r\n    D\t\t\t Launching failed session tracking listener\r\n\r\n"}}
{"actor":{"display_login":"pika-shiro"}}