Comments (5)
That's interesting, never seen that kind of thing happen before.
Perhaps it is related to your music collection itself?
Looks like there is an incorrectly escapted \u0002 char in some json somewhere.
SyntaxError: Unexpected token \u0002 in JSON at position 47
from bonob.
thank you!
Perhaps it is related to your music collection itself?
that was it.
I removed a significant chunk of my music library, rescanned in navidrome, stumbled upon a (unrelated?) issue and voila: I can now access my NavidromeMusic Library from Sonos. I will now try to narrow down which file it was.
the unrelated issue: I feel special characters in navidrome login might cause an issue with bonob. When I used an autogenerated PW with many special characters I would often get
navidrome-bonob-1 | {"message":{"level":"debug","data":"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tns=\"http://www.sonos.com/Services/1.1\"><soap:Body><soap:Fault><faultcode>Client.LoginUnauthorized</faultcode><faultstring>Failed to authenticate, try Re-Authorising your account in the sonos app</faultstring></soap:Fault></soap:Body></soap:Envelope>"},"level":"debug","service":"bonob","timestamp":"2023-02-05 09:43:06"}
And in Sonos App it would show something like "your trial with bonob is over". As soon as i changed PW to something simple with only letters and numbers I stopped having that issue.
from bonob.
That's interesting. What happens if you include the character '<', '>', '"' or '&' in your password?
from bonob.
I have now finished readding all music to my library and could not reproduce the initial issue
SyntaxError: Unexpected token \u0002 in JSON at position 47
I think the issue with the password is triggered by the € character. A pw with the 4 characters you mentioned works, but as soon as i add € it fails. The exact message in Sonos is Unable to browse music - your bonob trial has expired
. and the log shows:
navidrome-bonob-1 | {"message":{"level":"debug","data":"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tns=\"http://www.sonos.com/Services/1.1\"><soap:Body><soap:Fault><faultcode>Client.LoginUnauthorized</faultcode><faultstring>Failed to authenticate, try Re-Authorising your account in the sonos app</faultstring></soap:Fault></soap:Body></soap:Envelope>"},"level":"debug","service":"bonob","timestamp":"2023-02-05 13:19:16"}
I have a hunch now this might actually be connected to the "unable to browse music/unexpected token in json" issue. Because what happened initially was I get the "trial expired" message, and a while later it would then change into the "unable to browse music" without any config or library change. When I encountered the "unable to browse" error I still had a € in the password.
I will now leave my config as is (with € pw) for an hour or two to see if that really is what happens.
from bonob.
I was not able to reproduce the SyntaxError: Unexpected token \u0002 in JSON at position 47
. Everything is working fine for me now. What I did since it popped up was:
- remove all music from navidrom music folder, refresh library in navidrome and add again the the library in batches to the folder and refreshing the library in navidrome in between each batch
- change my password to a password not containing the € symbol
the second is reliably reproducing the Unable to browse music - your bonob trial has expired
issue when I change my pw.
@simojenki Thank you very much for your help and this great tool!
from bonob.
Related Issues (20)
- Random by Artist HOT 4
- Handling trailing slash on BNB_SUBSONIC_URL HOT 1
- Remote VPS HOT 13
- Unhandled error HOT 1
- Feature Request: Change service image listed on SONOS HOT 4
- Can't login to navidrome anymore. Bearer token problem. HOT 2
- Sort albums by artist
- Title search not working correctly HOT 1
- Bonob keeps stopping unexpectedly with Synology Dsm 7.2.1 HOT 2
- Sonos play not working without correct TZ settings HOT 2
- Feature request : radio stations from gonic HOT 12
- Does not observe transcodedContentType field when track will be transcoded to a different format
- Getting error tryingi to play song from navidrome HOT 6
- Function request: Add Navidrome's songs menu
- Question / Add years containers and albums display HOT 2
- Unable to get bonob configured correctly HOT 16
- How do I change the bonob icon on the Sonos S1 app interface ? HOT 1
- bonob missing after Sonos 80.00 update HOT 95
- Raspberry Pi Model B - ARMv6 HOT 4
- Object is possibly 'null' when trying to build HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bonob.