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.

[ BUG ] "reason":"STOPPED" instead of "reason":"FINISHED"

See original GitHub issue


Describe the bug/issue.

My discord bot has TrackEnded function. This function is triggered by Victoria when a track ends. In this function i have a check like this:

if (!args.Reason.ShouldPlayNext())
          return;

With the latest version of Lavalink when the track ends and the reason is “STOPPED”. I downgraded to Lavalink 3.3.1.4 and the reason changed to “FINISHED” (as it should be). No errors shown in Lavalink.

Stacktrace / Screenshots

With Lavalink 3.3.2.1: [Victoria] {“op”:“event”,“reason”:“STOPPED”,“type”:“TrackEndEvent”,“track”:““,“guildId”:””}

With Lavalink 3.3.1.4: [Victoria] {“op”:“event”,“reason”:“FINISHED”,“type”:“TrackEndEvent”,“track”:““,“guildId”:””}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
Yuckedcommented, Dec 5, 2020

I’m currently following the Lavalink issue dakata1337 opened and did ask him few questions. STOPPED was supposed to send only and only if you called StopAsync which meant to completely stop the player. But now, Lavalink is sending STOPPED for every normal track as well which is obviously going to make it extremely difficult to determine whether a user wants to stop the player all together or play the next song.

0reactions
dakata1337commented, Dec 22, 2020

Please make sure v5.1.11 fixes your issue. v5.1.11 fixed all the issues i’ve had. Thank you for all the help @Yucked!

Read more comments on GitHub >

github_iconTop Results From Across the Web

PrescribeIT® Prescription - Identifiers
The resource is called "MedicationOrder" rather than "MedicationPrescription" to generalize the use across inpatient and outpatient ... reasonEnded, example.
Read more >
PrescribeIT® PMS Prescription - Definitions
The resource is called "MedicationOrder" rather than "MedicationPrescription" to generalize the use across inpatient and outpatient settings as well as for ...
Read more >
Uses of Class org.hl7.fhir.dstu2.model.CodeableConcept
Description of clinical condition indicating why referral/transfer of care is requested. protected CodeableConcept. MedicationOrder. reasonEnded. The reason why ...
Read more >
Prescription of medication for patient
Name Type Cardinality identifier 0..* dateWritten dateTime 0..1 status code 0..1
Read more >
ExactOnline.Client.Models.xml
[CDATA[ID of account to be invoiced instead of this account]]> ... ReasonEnd"> <! ... [CDATA[Contains the error message if an error occurred during...
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