question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JSONObject["volume"] is not an int.

See original GitHub issue

Sometimes when sending a volume opcode this exception gets internally thrown https://sentry.io/share/issue/a8e1284d7e314fd09ac0eabc6cb53120/ https://sentry.io/share/issue/c9f238c5786448b894aad74e7a4ae868/ The json payload is

{"volume":100,"op":"volume","guildId":"451579004370026511"}

I haven’t been able to reliably reproduce this myself but I’ll update this issue when I find a way to reproduce it

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
duncte123commented, Jun 4, 2019

Actually, it seems that I have configured one of my lavalink nodes to use the wrong dsn. This is what someone is sending and I know who to yell at, sorry for wasting your time

{"volume":{"mutes":[],"cases":4,"prefix":"a!","modrole":"0","muterole":"0","adminrole":"0","defvolume":50,"logchannel":"583093638
0reactions
freyacodescommented, Jun 4, 2019

Have you tried grep? grep -B 2 "is not an int" spring*

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error invalid int when parsing JSONObject into an integer
It looks like the issue is your json value is a number plus additional spaces which Integer.parseInt does not handle. Try Integer.
Read more >
The given data was not valid JSON. | Apple Developer Forums
The error message is accurate. In your example data, the token NULL is not valid JSON. It's case-sensitive so it needs to be...
Read more >
Json Geometry Hierarchy Map - Read the Docs
The encoded value is a Json object with two entries: the header Json object ... the Acts::GeometryIdentifier is specified by name and stored...
Read more >
JSONObject - Android Developers
When the requested type is an int, other Number types will be coerced using ... Although null cannot be coerced, the sentinel value...
Read more >
An Introduction to JSON - DigitalOcean
JSON — short for JavaScript Object Notation — is a format for sharing data. As its name suggests, JSON is derived from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found