Replies: 2 comments 7 replies
-
Im a bit confused, is the |
Beta Was this translation helpful? Give feedback.
7 replies
-
This discussion has been automatically closed due to inactivity. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am trying to implement a custom api for duplicati
The response is correct and is also shown in the Homepage error widget, but I just can't map the values. The Homepage logs say something about an invalide token in JSON, but I am able to parse the JSON response of Duplicati without any issue in NodeJS and also JS.
Here is the error message
homepage version
v0.9.2 (af16956, Jun 6, 2024)
Installation method
Docker
Configuration
Container Logs
[2024-07-02T08:13:22.361Z] warn: Invalid data for widget 'customapi' endpoint 'undefined':
Expected:undefined
Parse error: SyntaxError: Unexpected token in JSON at position 0
Data: {"type":"Buffer","data":[239,187,191,123,10,32,32,34,66,97,99,107,117,112,73,68,34,58,32,34,50,34,44,10,32,32,34,84,97,115,107,73,68,34,58,32,54,44,10,32,32,34,66,97,99,107,101,110,100,65,99,116,105,111,110,34,58,32,34,80,117,116,34,44,10,32,32,34,66,97,99,107,101,110,100,80,97,116,104,34,58,32,34,80,97,114,97,108,108,101,108,85,112,108,111,97,100,34,44,10,32,32,34,66,97,99,107,101,110,100,70,105,108,101,83,105,122,101,34,58,32,49,57,55,49,54,56,49,49,52,56,56,44,10,32,32,34,66,97,99,107,101,110,100,70,105,108,101,80,114,111,103,114,101,115,115,34,58,32,49,57,55,49,54,56,49,49,52,56,56,44,10,32,32,34,66,97,99,107,101,110,100,83,112,101,101,100,34,58,32,57,48,57,56,55,52,53,44,10,32,32,34,66,97,99,107,101,110,100,73,115,66,108,111,99,107,105,110,103,34,58,32,102,97,108,115,101,44,10,32,32,34,67,117,114,114,101,110,116,70,105,108,101,110,97,109,101,34,58,32,34,47,66,105,103,66,111,105,47,110,101,120,116,99,108,111,117,100,47,100,97,116,97,47,68,97,118,105,100,47,102,105,108,101,115,47,80,104,111,116,111,115,47,49,56,45,48,55,45,48,54,32,48,49,45,48,49,45,53,53,32,48,57,57,56,46,109,111,118,34,44,10,32,32,34,67,117,114,114,101,110,116,70,105,108,101,115,105,122,101,34,58,32,49,48,57,51,56,49,57,50,49,48,44,10,32,32,34,67,117,114,114,101,110,116,70,105,108,101,111,102,102,115,101,116,34,58,32,48,44,10,32,32,34,67,117,114,114,101,110,116,70,105,108,101,99,111,109,112,108,101,116,101,34,58,32,102,97,108,115,101,44,10,32,32,34,80,104,97,115,101,34,58,32,34,66,97,99,107,117,112,95,80,114,111,99,101,115,115,105,110,103,70,105,108,101,115,34,44,10,32,32,34,79,118,101,114,97,108,108,80,114,111,103,114,101,115,115,34,58,32,48,46,48,44,10,32,32,34,80,114,111,99,101,115,115,101,100,70,105,108,101,67,111,117,110,116,34,58,32,49,53,54,50,55,44,10,32,32,34,80,114,111,99,101,115,115,101,100,70,105,108,101,83,105,122,101,34,58,32,52,52,51,53,56,53,54,52,48,49,51,50,44,10,32,32,34,84,111,116,97,108,70,105,108,101,67,111,117,110,116,34,58,32,49,54,51,57,48,53,44,10,32,32,34,84,111,116,97,108,70,105,108,101,83,105,122,101,34,58,32,53,57,49,57,49,54,50,55,50,53,52,55,44,10,32,32,34,83,116,105,108,108,67,111,117,110,116,105,110,103,34,58,32,102,97,108,115,101,10,125]}
Browser Logs
No response
Troubleshooting
wget http://duplicati:8200/api/v1/progressstate --header X-Xsrf-Token:--REDACTED--
Response:
Connecting to duplicati:8200 (172.19.0.28:8200) saving to 'progressstate' progressstate 100% |**********************************************************************************************| 628 0:00:00 ETA 'progressstate' saved
Beta Was this translation helpful? Give feedback.
All reactions