Git Product home page Git Product logo

Comments (5)

simojenki avatar simojenki commented on July 22, 2024

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.

mreitschuster avatar mreitschuster commented on July 22, 2024

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.

simojenki avatar simojenki commented on July 22, 2024

That's interesting. What happens if you include the character '<', '>', '"' or '&' in your password?

from bonob.

mreitschuster avatar mreitschuster commented on July 22, 2024

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.

mreitschuster avatar mreitschuster commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.