Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Attachment not available: failed to copy file when receiving voice messages #64

Closed
Mozoloa opened this issue Nov 16, 2022 · 5 comments
Closed

Comments

@Mozoloa
Copy link

Mozoloa commented Nov 16, 2022

As the title says, when receiving voice messages now, it always says "Attachment not available: failed to copy file" and I can't hear it (obviously), wasn't always like this.

Using Element web & android
from what I can tell i'm using 0.2.2 so the latest

@tulir
Copy link
Member

tulir commented Nov 16, 2022

You need to check the logs to find out why it failed

@Mozoloa
Copy link
Author

Mozoloa commented Nov 16, 2022

can you tell me where I can see that ? I'm not really in charge of maintaining my matrix instance

@Mozoloa
Copy link
Author

Mozoloa commented Nov 20, 2022

Here's what it says

Nov 20 19:31:06 MATRIX matrix-mautrix-instagram[3962]: [2022-11-20 18:31:06,492] [WARNING@mau.portal.340282366841710300949128286954620688414] Failed to upload media
Nov 20 19:31:06 MATRIX matrix-mautrix-instagram[3962]: Traceback (most recent call last):
Nov 20 19:31:06 MATRIX matrix-mautrix-instagram[3962]:   File "/usr/lib/python3.10/site-packages/mautrix_instagram/portal.py", line 929, in _convert_instagram_media
Nov 20 19:31:06 MATRIX matrix-mautrix-instagram[3962]:     content = await reupload_func(source, media_data, intent)
Nov 20 19:31:06 MATRIX matrix-mautrix-instagram[3962]:   File "/usr/lib/python3.10/site-packages/mautrix_instagram/portal.py", line 789, in _reupload_instagram_voice
Nov 20 19:31:06 MATRIX matrix-mautrix-instagram[3962]:     content = await self._reupload_instagram_file(
Nov 20 19:31:06 MATRIX matrix-mautrix-instagram[3962]:   File "/usr/lib/python3.10/site-packages/mautrix_instagram/portal.py", line 833, in _reupload_instagram_file
Nov 20 19:31:06 MATRIX matrix-mautrix-instagram[3962]:     if not info.width and not info.height and info.mimetype.startswith("image/"):
Nov 20 19:31:06 MATRIX matrix-mautrix-instagram[3962]: AttributeError: 'AudioInfo' object has no attribute 'width'

@Mozoloa
Copy link
Author

Mozoloa commented Nov 20, 2022

could this has been fixed in 5a4ebc7 ?

@tulir
Copy link
Member

tulir commented Nov 20, 2022

Yes

@tulir tulir closed this as completed Nov 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants