Skip to content

bug: file upload fails #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
megheaiulian opened this issue Feb 12, 2025 · 2 comments
Open

bug: file upload fails #130

megheaiulian opened this issue Feb 12, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@megheaiulian
Copy link

megheaiulian commented Feb 12, 2025

What happened?

Using the default generated configs file upload fails with

type | "InternalError"
location | "crates/core/files/src/lib.rs:103:5"
@megheaiulian megheaiulian added the bug Something isn't working label Feb 12, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Untriaged in Revolt Project Feb 12, 2025
@VoidNullWarp
Copy link

for me, i seem to be able to upload some files, but others fail and gifs and videos don't work

@nukke
Copy link

nukke commented Mar 13, 2025

I am running into the same issue as @VoidNullWarp . I am able to upload files, but GIFs fail. Here is what I'm seeing in the logs:

Upload is successful and image is displayed

$  docker compose logs | grep IMG
autumn-1         |  INFO  revolt_autumn::api    > Received file IMG_4206.jpeg
api-1            |  INFO  revolt_database::tasks::ack                                      > User None ack in <CHANNEL_ID> with ProcessMessage { messages: [(Some(PushNotification { author: "<NAME>", icon: "https://<PUBLIC_URL>/api/users/<USER_ID>/default_avatar", image: Some("https://<PUBLIC_URL>/autumn/attachments/<FILE_ID>-xFT59SXstLt14HhVVVh9nPCi"), body: "", tag: "<CHANNEL_ID>", timestamp: 1741834212, url: "https://<PUBLIC_URL>/channel/<CHANNEL_ID>/<MESSAGE_ID>", message: Message { id: "<MESSAGE_ID>", nonce: Some("01JP6PHNC43Z7XQ6CZ5CNXWQV3"), channel: "<CHANNEL_ID>", author: "<USER_ID>", user: Some(User { id: "<USER_ID>", username: "<NAME>", discriminator: "6651", display_name: None, avatar: None, relations: [], badges: 0, status: None, flags: 0, privileged: false, bot: None, relationship: None, online: true }), member: Some(Member { id: MemberCompositeKey { server: "<SERVER_ID>", user: "<USER_ID>" }, joined_at: Timestamp("2025-03-12T21:45:42.927000000Z"), nickname: None, avatar: None, roles: [], timeout: None }), webhook: None, content: Some(""), system: None, attachments: Some([File { id: "<FILE_ID>-xFT59SXstLt14HhVVVh9nPCi", tag: "attachments", filename: "IMG_4206.jpeg", metadata: Image { width: 4032, height: 3024 }, content_type: "image/jpeg", size: 2006248, deleted: None, reported: None, message_id: None, user_id: None, server_id: None, object_id: None }]), edited: None, embeds: None, mentions: None, replies: None, reactions: {}, interactions: Interactions { reactions: None, restrict_reactions: false }, masquerade: None, pinned: None, flags: 0 }, channel: TextChannel { id: "<CHANNEL_ID>", server: "<SERVER_ID>", name: "📷visionary", description: None, icon: None, last_message_id: None, default_permissions: None, role_permissions: {}, nsfw: false } }), Message { id: "<MESSAGE_ID>", nonce: Some("01JP6PHNC43Z7XQ6CZ5CNXWQV3"), channel: "<CHANNEL_ID>", author: "<USER_ID>", webhook: None, content: Some(""), system: None, attachments: Some([File { id: "<FILE_ID>-xFT59SXstLt14HhVVVh9nPCi", tag: "attachments", filename: "IMG_4206.jpeg", hash: Some("acdf71b1f8da3cbec3051dabf9ccdf663ace6c657739bebc888d9f4ddc54d8f7"), uploaded_at: Some(Timestamp("2025-03-13T02:50:12.640000000Z")), uploader_id: Some("<USER_ID>"), used_for: None, deleted: None, reported: None, metadata: Image { width: 4032, height: 3024 }, content_type: "image/jpeg", size: 2006248, message_id: None, user_id: None, server_id: None, object_id: None }]), edited: None, embeds: None, mentions: None, replies: None, reactions: {}, interactions: Interactions { reactions: None, restrict_reactions: false }, masquerade: None, pinned: None, flags: None }, [], false)] }

Upload appears to be successful but GIF is not displayed.

$  docker compose logs | grep MangoCatDanceGIF
autumn-1         |  INFO  revolt_autumn::api    > Received file MangoCatDanceGIF.gif
web-1            |   [02:32:07] 404 ─ 0.05ms ─ /attachments/YRPW7H592ozVtWYkQTK3XXLZL9q75i3zuynFUFnQpq/MangoCatDanceGIF.gif
web-1            |   [02:32:12] 404 ─ 0.06ms ─ /attachments/YRPW7H592ozVtWYkQTK3XXLZL9q75i3zuynFUFnQpq/MangoCatDanceGIF.gif
web-1            |   [02:32:21] 404 ─ 0.04ms ─ /attachments/YRPW7H592ozVtWYkQTK3XXLZL9q75i3zuynFUFnQpq/MangoCatDanceGIF.gif
web-1            |   [02:32:39] 404 ─ 0.05ms ─ /attachments/YRPW7H592ozVtWYkQTK3XXLZL9q75i3zuynFUFnQpq/MangoCatDanceGIF.gif
web-1            |   [02:42:55] 404 ─ 0.05ms ─ /attachments/YRPW7H592ozVtWYkQTK3XXLZL9q75i3zuynFUFnQpq/MangoCatDanceGIF.gif
api-1            |  INFO  revolt_database::tasks::ack                                      > User None ack in <CHANNEL_KEY> with ProcessMessage { messages: [(Some(PushNotification { author: "<NAME>", icon: "https://<PUBLIC_URL>/api/users/<USER_ID>/default_avatar", image: Some("https://<PUBLIC_URL>/autumn/attachments/YRPW7H592ozVtWYkQTK3XXLZL9q75i3zuynFUFnQpq"), body: "", tag: "<CHANNEL_KEY>", timestamp: 1741833127, url: "https://<PUBLIC_URL>/channel/<CHANNEL_KEY>/<MSG_ID>", message: Message { id: "<MSG_ID>", nonce: Some("<SOME_ID>"), channel: "<CHANNEL_KEY>", author: "<USER_ID>", user: Some(User { id: "<USER_ID>", username: "<NAME>", discriminator: "6651", display_name: None, avatar: None, relations: [], badges: 0, status: None, flags: 0, privileged: false, bot: None, relationship: None, online: true }), member: Some(Member { id: MemberCompositeKey { server: "<SERVER_ID>", user: "<USER_ID>" }, joined_at: Timestamp("2025-03-12T21:45:42.927000000Z"), nickname: None, avatar: None, roles: [], timeout: None }), webhook: None, content: Some(""), system: None, attachments: Some([File { id: "YRPW7H592ozVtWYkQTK3XXLZL9q75i3zuynFUFnQpq", tag: "attachments", filename: "MangoCatDanceGIF.gif", metadata: Image { width: 376, height: 498 }, content_type: "image/gif", size: 13984806, deleted: None, reported: None, message_id: None, user_id: None, server_id: None, object_id: None }]), edited: None, embeds: None, mentions: None, replies: None, reactions: {}, interactions: Interactions { reactions: None, restrict_reactions: false }, masquerade: None, pinned: None, flags: 0 }, channel: TextChannel { id: "<CHANNEL_KEY>", server: "<SERVER_ID>", name: "🛋lounge", description: None, icon: None, last_message_id: None, default_permissions: None, role_permissions: {}, nsfw: false } }), Message { id: "<MSG_ID>", nonce: Some("<SOME_ID>"), channel: "<CHANNEL_KEY>", author: "<USER_ID>", webhook: None, content: Some(""), system: None, attachments: Some([File { id: "YRPW7H592ozVtWYkQTK3XXLZL9q75i3zuynFUFnQpq", tag: "attachments", filename: "MangoCatDanceGIF.gif", hash: Some("65bae6ef70fab8cb33af761fab2e96dcff30b7d0b119384d2ca89036ce9b43d9"), uploaded_at: Some(Timestamp("2025-03-13T02:32:07.458000000Z")), uploader_id: Some("<USER_ID>"), used_for: None, deleted: None, reported: None, metadata: Image { width: 376, height: 498 }, content_type: "image/gif", size: 13984806, message_id: None, user_id: None, server_id: None, object_id: None }]), edited: None, embeds: None, mentions: None, replies: None, reactions: {}, interactions: Interactions { reactions: None, restrict_reactions: false }, masquerade: None, pinned: None, flags: None }, [], false)] }

I can provide additional logs upon request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 Untriaged
Development

No branches or pull requests

3 participants