Skip to content

Instantly share code, notes, and snippets.

@cyberrob-zz
cyberrob-zz / gist:2cfeed1b9019a5abb939b0232a18d710
Created June 15, 2018 07:23
Unhandled exception on dashboard
06-15 15:22:25.493 12147-13803/com.noodoe.sunray.china.alpha E/MapManager:2104: timeout
java.net.SocketTimeoutException: timeout
at okio.Okio$3.newTimeoutException(Okio.java:212)
at okio.AsyncTimeout.exit(AsyncTimeout.java:288)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:242)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:325)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:314)
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:210)
at okhttp3.internal.http.Http1xStream.readResponse(Http1xStream.java:184)
at okhttp3.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:125)
@cyberrob-zz
cyberrob-zz / gist:24106feb4dfe0b810efb401dd91429c1
Created January 26, 2018 03:22
login with wechat succeed
01-26 11:21:14.482 24877-2938/com.noodoe.sunray.china.alpha D/OkHttp: --> POST https://sunray-dev.noodoe.com.cn/createCustomTokenByWechat http/1.1
01-26 11:21:14.482 24877-2938/com.noodoe.sunray.china.alpha D/OkHttp: Content-Type: application/json; charset=UTF-8
01-26 11:21:14.482 24877-2938/com.noodoe.sunray.china.alpha D/OkHttp: Content-Length: 164
01-26 11:21:14.482 24877-2938/com.noodoe.sunray.china.alpha D/OkHttp: {"access_token":"6_x54AWIFkuYJVJwqopiOAYkGAvjXX2Ylpzlh-ASMML2USdThBLJBoCiIpeUn5C5aXt0LjfJyf2OEiCeGzTm0XdA","isLegacy":true,"open_id":"oqxhe0k1XHEddi4SpcZEG3VkEV8M"}
01-26 11:21:14.483 24877-2938/com.noodoe.sunray.china.alpha D/OkHttp: --> END POST (164-byte body)
01-26 11:21:20.013 24877-2938/com.noodoe.sunray.china.alpha D/OkHttp: <-- 200 OK https://sunray-dev.noodoe.com.cn/createCustomTokenByWechat (5530ms)
01-26 11:21:20.013 24877-2938/com.noodoe.sunray.china.alpha D/OkHttp: server: Cowboy
01-26 11:21:20.013 24877-2938/com.noodoe.sunray.china.alpha D/OkHttp: connection: close
01-26 11:21:20.
@cyberrob-zz
cyberrob-zz / gist:5f17d15a41c5ae0b0ff2a1178ee0def2
Created January 26, 2018 02:52
http 403 when create user with wechat
01-26 10:50:56.852 24877-27789/com.noodoe.sunray.china.alpha D/OkHttp: --> POST https://sunray-dev.noodoe.com.cn/createCustomTokenByWechat http/1.1
01-26 10:50:56.852 24877-27789/com.noodoe.sunray.china.alpha D/OkHttp: Content-Type: application/json; charset=UTF-8
01-26 10:50:56.852 24877-27789/com.noodoe.sunray.china.alpha D/OkHttp: Content-Length: 185
01-26 10:50:56.852 24877-27789/com.noodoe.sunray.china.alpha D/OkHttp: {"access_token":"6_PfrkEOHe8Oh53hliQajHFGjb5NbFVLSyuj_VdQnxvjYObEqN_2RAX_1czh4bAMDxWQrPXV9Hhs86oq63RzTjxGIJyFqpr3_jn8cSv_O6LU4","isLegacy":true,"open_id":"oqxhe0qrSb-W1BWE6yiA_gryEJtk"}
01-26 10:50:56.852 24877-27789/com.noodoe.sunray.china.alpha D/OkHttp: --> END POST (185-byte body)
01-26 10:51:00.839 24877-27789/com.noodoe.sunray.china.alpha D/OkHttp: <-- 403 Forbidden https://sunray-dev.noodoe.com.cn/createCustomTokenByWechat (3986ms)
01-26 10:51:00.839 24877-27789/com.noodoe.sunray.china.alpha D/OkHttp: server: Cowboy
01-26 10:51:00.839 24877-27789/com.noodoe.sunray.china.alpha D/OkHtt
@cyberrob-zz
cyberrob-zz / gist:bacb05d756d5f537c3ff35320680faa6
Last active January 25, 2018 02:37
crash when changing from km to miles
01-25 10:36:28.363 2362-2362/com.noodoe.sunray.dev E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.noodoe.sunray.dev, PID: 2362
rx.exceptions.OnErrorNotImplementedException: apiHandler is null
at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:386)
at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:383)
at rx.internal.util.ActionSubscriber.onError(ActionSubscriber.java:44)
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:153)
@cyberrob-zz
cyberrob-zz / gist:8e5e91ef187cc525e88c358e0ed44631
Created January 24, 2018 02:45
permission denied attempting to listen certain path after user logged out.
01-24 10:43:09.019 2110-2110/com.noodoe.sunray.dev D/ActivityCache:156: User #M4C248sah4PD1nGfackufDJ937x1 logged out
01-24 10:43:09.023 2110-2110/com.noodoe.sunray.dev D/FirebaseAuth: Notifying listeners about a sign-out event.
01-24 10:43:09.064 2110-2110/com.noodoe.sunray.dev D/FirebaseApp: Notifying auth state listeners.
01-24 10:43:09.064 2110-2110/com.noodoe.sunray.dev D/FirebaseApp: Notified 1 auth state listeners.
01-24 10:43:09.098 2110-3470/com.noodoe.sunray.dev D/FA: Logging event (FE): _e, Bundle[{_o=auto, _et=2097, _sc=AccountSettingsActivity, _si=5771100990451793052}]
01-24 10:43:09.291 2110-2255/com.noodoe.sunray.dev W/SyncTree: Listen at /userGroupActions/M4C248sah4PD1nGfackufDJ937x1 failed: DatabaseError: This client does not have permission to perform this operation
01-24 10:43:09.304 2110-2255/com.noodoe.sunray.dev W/SyncTree: Listen at /presets failed: DatabaseError: This client does not have permission to perform this operation
01-24 10:43:09.315 2110-2255/com.noodoe.sunray.dev W/SyncTree
@cyberrob-zz
cyberrob-zz / gist:e592f992db376354a15ca735e2b7bb70
Created January 23, 2018 08:12
Permission denied after first time sign-up & sign-in
01-23 16:08:22.342 28429-28615/com.noodoe.sunray.dev W/SyncTree: Listen at /activity failed: DatabaseError: Permission denied
01-23 16:08:22.365 28429-28429/com.noodoe.sunray.dev E/ActivityManagerImpl$FirebaseActivityListener:157: Permission denied
01-23 16:08:22.377 28429-28429/com.noodoe.sunray.dev E/null: Permission denied
01-23 16:08:22.391 28429-28429/com.noodoe.sunray.dev E/ActivityManagerImpl:102: Permission denied
01-23 16:08:22.393 28429-28429/com.noodoe.sunray.dev E/null: Permission denied
01-23 16:08:22.400 28429-28622/com.noodoe.sunray.dev E/ActivityCache:195: Error occurred while loading all activities:Firebase Database error: Permission denied
01-23 16:08:22.401 28429-28622/com.noodoe.sunray.dev E/null: Error occurred while loading all activities:Firebase Database error: Permission denied
@cyberrob-zz
cyberrob-zz / gist:93e86fdfb2a57b2aadd1474acac54fd7
Created January 4, 2018 02:41
crash_when_reinstall_with_old_polnavmobile_directory
01-04 10:27:16.506 17146-17146/com.noodoe.sunray.dev E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.noodoe.sunray.dev, PID: 17146
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.noodoe.sunray.dev/com.noodoe.sunray.navigation.ui.NavigationActivity}: android.view.InflateException: Binary XML file line #50: Binary XML file line #50: Error inflating class com.noodoe.map.NoodoeMapView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2725)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2786)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
12-21 11:46:40.323 14956-14956/? I/zygote: Late-enabling -Xcheck:jni
12-21 11:46:40.395 14956-14963/? E/zygote: Failed sending reply to debugger: Broken pipe
12-21 11:46:40.396 14956-14963/? I/zygote: Debugger is no longer active
12-21 11:46:40.541 14956-14961/? I/zygote: Do partial code cache collection, code=30KB, data=24KB
12-21 11:46:40.542 14956-14961/? I/zygote: After code cache collection, code=30KB, data=24KB
12-21 11:46:40.542 14956-14961/? I/zygote: Increasing code cache capacity to 128KB
12-21 11:46:40.556 14956-14956/? I/MultiDex: VM with version 2.1.0 has multidex support
12-21 11:46:40.556 14956-14956/? I/MultiDex: install
12-21 11:46:40.556 14956-14956/? I/MultiDex: VM has multidex support, MultiDex support library is disabled.
12-21 11:46:40.556 14956-14956/? I/MultiDex: install
@cyberrob-zz
cyberrob-zz / gist:99194812381d9dc18b621ceb4353af5f
Created December 2, 2017 14:42
Open Find My Scooter and then crash
12-02 22:40:42.239 10395-10395/com.noodoe.sunray.dev D/BreathingLightManager:78: on ACTION_FIND_MY_SCOOTER_START
12-02 22:40:42.240 10395-10427/com.noodoe.sunray.dev D/BreathingLightManager$LightHandler:239: turn on breathing light on ACTION_FIND_MY_SCOOTER_START
12-02 22:40:42.241 10395-10427/com.noodoe.sunray.dev D/BreathingLightManager:137: turn on breathing light
12-02 22:40:42.245 10395-10395/com.noodoe.sunray.dev D/ServiceInvoker:58: Action: com.noodoe.sunray.intent.action.ACTION_DEPRECATE_DEVICE_CONNECTED_STATUS_NOTICE
12-02 22:40:42.247 10395-12078/com.noodoe.sunray.dev I/SunrayControlCommandHandler$ControlCommandInternalHandler:510: ControlCommandHandler handle message: 0x110207, messageName: SEND_BREATHING_LIGHT
12-02 22:40:42.249 10395-10395/com.noodoe.sunray.dev D/ServiceInvoker:123: ACTION_DEVICE_CONNECTED_STATUS_NOTICE : false
12-02 22:40:42.267 10395-12078/com.noodoe.sunray.dev I/OutputCommandProcessor$OutputCommandHandler:626: OutputCommandHandler handle message: 0x92701, messageName: ADD_OUTP
@cyberrob-zz
cyberrob-zz / gist:1cdd0bc806f3611f69584c68c542d55d
Created December 2, 2017 14:11
若是先經過ref code做installLicense,Noodoe app打開地圖就會出現這樣個錯誤。
12-02 22:09:40.008 8968-8968/com.noodoe.sunray.dev D/SdkWrapperModule:41: sdk: /storage/emulated/0/Android/PolnavMobile/, scooterId: uuid, phoneId: phone-id, mapExpiredData: [MapExpiredData{MapName='Taiwan_RM', ExpiredDate=Mon Jan 01 00:00:00 GMT+08:00 2018}], vehicleCCVal: 0
12-02 22:09:40.082 8968-9143/com.noodoe.sunray.dev W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": ".value"' at users/2u6ycwcEl1Vn6fxKkxuPdkeYX3q1/collect to your security and Firebase Database rules for better performance
12-02 22:09:40.195 8968-8973/com.noodoe.sunray.dev I/zygote: Do partial code cache collection, code=252KB, data=195KB
12-02 22:09:40.197 8968-8973/com.noodoe.sunray.dev I/zygote: After code cache collection, code=246KB, data=192KB
12-02 22:09:40.197 8968-8973/com.noodoe.sunray.dev I/zygote: Increasing code cache capacity to 1024KB
12-02 22:09:40.426 8968-8968/com.noodoe.sunray.dev E/Environment2: kann vold.fstab nicht lesen: /system/etc/vold.fstab (No such file or directory)
12-