jagrosh / jagrosh/MusicBot

[Bug Report] Play with .png file attachment

Open
#1,269 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.8k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

### Bug Description

Executing play command with URL [[link](https://cdn.discordapp.com/attachments/1029873804924694561/1064237733339480074/donkeh.png)]

displays
![image](https://user-images.githubusercontent.com/77748206/212557901-be164676-b0bd-4076-ac6d-65a0dca5e7b9.png)
and bot immediately disconnects from a voice channel.

### Steps to Reproduce

1. !play https://cdn.discordapp.com/attachments/1029873804924694561/1064237733339480074/donkeh.png

### Expected Result

Bot prints out
```Error loading: Unknown file format```
and doesn't leave a voice channel.

### Debug Output

```System Properties:
java.version = 17.0.4.1
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.version = 17
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 17.0.4.1+1
java.specification.version = 17
os.arch = amd64
os.name = Windows 10

JMusicBot Information:
Version = 0.3.8
Owner = 689431450508066911
Prefix = !
AltPrefix = null
MaxSeconds = 0
NPImages = false
SongInStatus = false
StayInChannel = false
UseEval = false
UpdateAlerts = true

Dependency Information:
JDA Version = 4.4.0_352
JDA-Utilities Version = 3.0.5
Lavaplayer Version = 1.3.78

Runtime Information:
Total Memory = 37
Used Memory = 16

Discord Information:
ID = 1029868760045207602
Guilds = 2
Users = 4
```

### Additional Info

Bot behaves as expected for some other URLs containing .png files, eg. [link](https://cdn.discordapp.com/attachments/1029873804924694561/1064240958474043486/FeelsGoodMan.png)

### Checklist

- [X] I have looked for information about this [within the documentation](https://jmusicbot.com/)
- [X] I have searched for similar issues [on the issues page](https://github.com/jagrosh/MusicBot/issues?q=is%3Aissue)
- [X] I am running the latest version of the bot: ![Release](https://img.shields.io/github/release/jagrosh/MusicBot.svg)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `play` command and reproduce the reported Discord CDN `.png` URL, comparing it with the other `.png` URL that works. Trace the error-loading and voice-channel behavior; done means the bot reports `Error loading: Unknown file format` and remains connected instead of disconnecting.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
audio-video-rtc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.