Closed eshanmandan closed 4 months ago
plugin:tickticksync:47015 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'statusCode')
That's strange. This error is indicating that a call to TickTick happened, but the plugin got back an invalid response.
Which is strange, because plugin:tickticksync:59314 {"baseUrl":"ticktick.com","token":"[0CAB80045A...] len: 368"}
indicates that the plugin logged you in at least once.
I'm in process of changing the login sequence because I'm making the plugin mobile compatible.
So, you have two options:
<vault folder>\.obsidian\plugins\tickticksync
. I think I found one issue, which I fixed on the fly, but if it didn't fix it, it will give us better information on what's going on.tickticksycn-1.0.7-debugMain.zip
Please keep me posted.
Thanks for getting back to me. I tried the debug zip you sent, but it didn't fix the problem. However, I figured out what was causing the issue. I mainly use Obsidian for work. I noticed that when I'm on the company's Ethernet network, I can't sync my tasks, but everything works fine on the company's Wi-Fi. That's why I could log in and sync my tasks at least once. So, I'll just stick to using Wi-Fi from now on. You can consider this problem closed for now.
Thanks for the update. Glad you resolved it.
Whenever I try to login using TickTickSync, it redirects me to the login page. Enter correct credentials and still cant access the tasks. I can see all the tasks in the small floating browser.
Please check the console log for your reference.
No Token TickTickRestAPI @ plugin:tickticksync:59310 plugin:tickticksync:68874 API Initialization Failed. onload @ plugin:tickticksync:68874 plugin:tickticksync:69043 TickTickSync 1.0.17 loaded! plugin:obsidian-excalidraw-plugin:95 Initialized Excalidraw Image Cache plugin:tickticksync:59314 {"baseUrl":"ticktick.com","token":"[0CAB80045A...] len: 368"} plugin:tickticksync:47015 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'statusCode') at Tick3.setError (plugin:tickticksync:47015:37) at Tick3.eval (plugin:tickticksync:46452:30) at step (plugin:tickticksync:46301:23) at Object.eval [as next] (plugin:tickticksync:46248:18) at eval (plugin:tickticksync:46234:71) at new Promise ()
at awaiter (plugin:tickticksync:46216:14)
at Request.eval [as _callback] (plugin:tickticksync:46449:26)
at self2.callback (plugin:tickticksync:44958:27)
at Request.emit (node:events:513:28)
at Request.onRequestError (plugin:tickticksync:45503:13)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:502:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Tick3.setError @ plugin:tickticksync:47015
eval @ plugin:tickticksync:46452
step @ plugin:tickticksync:46301
eval @ plugin:tickticksync:46248
eval @ plugin:tickticksync:46234
awaiter @ plugin:tickticksync:46216
eval @ plugin:tickticksync:46449
self2.callback @ plugin:tickticksync:44958
emit @ node:events:513
Request.onRequestError @ plugin:tickticksync:45503
emit @ node:events:513
socketErrorListener @ node:_http_client:502
emit @ node:events:513
emitErrorNT @ node:internal/streams/destroy:151
emitErrorCloseNT @ node:internal/streams/destroy:116
processTicksAndRejections @ node:internal/process/task_queues:82
plugin:tickticksync:59314 {"baseUrl":"ticktick.com","token":"[0CAB80045A...] len: 368"}
plugin:tickticksync:47015 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'statusCode')
at Tick3.setError (plugin:tickticksync:47015:37)
at Tick3.eval (plugin:tickticksync:46452:30)
at step (plugin:tickticksync:46301:23)
at Object.eval [as next] (plugin:tickticksync:46248:18)
at eval (plugin:tickticksync:46234:71)
at new Promise ()
at awaiter (plugin:tickticksync:46216:14)
at Request.eval [as _callback] (plugin:tickticksync:46449:26)
at self2.callback (plugin:tickticksync:44958:27)
at Request.emit (node:events:513:28)
at Request.onRequestError (plugin:tickticksync:45503:13)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:502:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Tick3.setError @ plugin:tickticksync:47015
eval @ plugin:tickticksync:46452
step @ plugin:tickticksync:46301
eval @ plugin:tickticksync:46248
eval @ plugin:tickticksync:46234
awaiter @ plugin:tickticksync:46216
eval @ plugin:tickticksync:46449
self2.callback @ plugin:tickticksync:44958
emit @ node:events:513
Request.onRequestError @ plugin:tickticksync:45503
emit @ node:events:513
socketErrorListener @ node:_http_client:502
emit @ node:events:513
emitErrorNT @ node:internal/streams/destroy:151
emitErrorCloseNT @ node:internal/streams/destroy:116
processTicksAndRejections @ node:internal/process/task_queues:82
plugin:tickticksync:59245 TypeError: Cannot read properties of undefined (reading 'value')
at eval (plugin:tickticksync:59241:30)
eval @ plugin:tickticksync:59245
Promise.catch (async)
eval @ plugin:tickticksync:59244
apply @ plugin:tickticksync:91
eval @ plugin:tickticksync:591
eval @ plugin:tickticksync:576
emit @ node:events:525
onMessage @ node:electron/js2c/renderer_init:2
plugin:tickticksync:59314 {"baseUrl":"ticktick.com","token":"[0CAB80045A...] len: 368"}
plugin:tickticksync:47015 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'statusCode')
at Tick3.setError (plugin:tickticksync:47015:37)
at Tick3.eval (plugin:tickticksync:46452:30)
at step (plugin:tickticksync:46301:23)
at Object.eval [as next] (plugin:tickticksync:46248:18)
at eval (plugin:tickticksync:46234:71)
at new Promise ()
at awaiter (plugin:tickticksync:46216:14)
at Request.eval [as _callback] (plugin:tickticksync:46449:26)
at self2.callback (plugin:tickticksync:44958:27)
at Request.emit (node:events:513:28)
at Request.onRequestError (plugin:tickticksync:45503:13)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:502:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Tick3.setError @ plugin:tickticksync:47015
eval @ plugin:tickticksync:46452
step @ plugin:tickticksync:46301
eval @ plugin:tickticksync:46248
eval @ plugin:tickticksync:46234
awaiter @ plugin:tickticksync:46216
eval @ plugin:tickticksync:46449
self2.callback @ plugin:tickticksync:44958
emit @ node:events:513
Request.onRequestError @ plugin:tickticksync:45503
emit @ node:events:513
socketErrorListener @ node:_http_client:502
emit @ node:events:513
emitErrorNT @ node:internal/streams/destroy:151
emitErrorCloseNT @ node:internal/streams/destroy:116
processTicksAndRejections @ node:internal/process/task_queues:82