Error when resizing an Avatar image #1650

Open
opened 2023-11-13 08:08:45 +00:00 by elemenn · 15 comments

Description

It seems there is not possible to resize "Avatar" image to another size then the default size since afterward during uploading the image i.e. to max size it shows me: "Error: Bad request".

Vikunja Frontend Version

0.21.0

Vikunja API Version

0.21.0

Browser and version

Mozilla Firefox (119.0.1)

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

### Description It seems there is not possible to resize "Avatar" image to another size then the default size since afterward during uploading the image i.e. to max size it shows me: "Error: Bad request". ### Vikunja Frontend Version 0.21.0 ### Vikunja API Version 0.21.0 ### Browser and version Mozilla Firefox (119.0.1) ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots _No response_
elemenn added the
kind/bug
label 2023-11-13 08:08:45 +00:00
Owner

I was not able to reproduce this using Firefox 118. What kind of image did you use?

I was not able to reproduce this using Firefox 118. What kind of image did you use?
Author

I was not able to reproduce this using Firefox 118. What kind of image did you use?

I've used this image downloaded in its original size:
https://unsplash.com/photos/close-up-photo-of-llama-ftF9k0ynr4Q

> I was not able to reproduce this using Firefox 118. What kind of image did you use? I've used this image downloaded in its original size: https://unsplash.com/photos/close-up-photo-of-llama-ftF9k0ynr4Q
Owner

Still not able to reproduce. Which size did you set it to? Which OS are you using?

Still not able to reproduce. Which size did you set it to? Which OS are you using?
Author

I've found out that it works correctly with Firefox on Android. But on W10 Firefox it shows the error when resizing.

I've found out that it works correctly with Firefox on Android. But on W10 Firefox it shows the error when resizing.
Owner

Still not able to reproduce in a Windows 10 vm with Firefox 118.

Does it work with a different image?

Still not able to reproduce in a Windows 10 vm with Firefox 118. Does it work with a different image?
Author

No. Another images work fine. You can replicate the issue by following these steps:

  1. Download the image from "unsplash.com" site in original size:
    https://unsplash.com/photos/close-up-photo-of-llama-ftF9k0ynr4Q

  2. Upload the image to Vikunja in Avatar setting.

  3. Resize it to have a maximal square that is possible to have in setting the avatar image.

  4. After resizing, move the square showing the avatar profile a little down.

  5. Upload the image and you will see the error message.

No. Another images work fine. You can replicate the issue by following these steps: 1. Download the image from "unsplash.com" site in original size: https://unsplash.com/photos/close-up-photo-of-llama-ftF9k0ynr4Q 2. Upload the image to Vikunja in Avatar setting. 3. Resize it to have a maximal square that is possible to have in setting the avatar image. 4. After resizing, move the square showing the avatar profile a little down. 5. Upload the image and you will see the error message.
Owner

Nope, still not reproducible. Can you check with dev tools opened what the response from the server upload is?

Nope, still not reproducible. Can you check with dev tools opened what the response from the server upload is?
Author

image

![image](/attachments/4aa84e49-84fa-4fe3-a862-7d4e72b79ff2)
313 KiB
Owner

@elemenn What's the server response? What's in the api logs (on the server?)

@elemenn What's the server response? What's in the api logs (on the server?)
Author

Where can I find the api logs?

Where can I find the api logs?
Owner

If you're hosting with docker, use the docker logs command for the api container. If you're hosting with systemd, use journalctl.

If you're hosting with docker, use the docker logs command for the api container. If you're hosting with systemd, use journalctl.
Author

And what about hosting on Windows 10? Which tool to use for that?

And what about hosting on Windows 10? Which tool to use for that?
Owner

How are you hosting with Windows?

How are you hosting with Windows?
Author

I am hosting Vikunja on W10 basically by running the binaries and opening Vikunja frontend in Mozilla.

I am hosting Vikunja on W10 basically by running the binaries and opening Vikunja frontend in Mozilla.
Owner

Are you running the binary in a terminal? Then you should see the logs in the terminal.

Are you running the binary in a terminal? Then you should see the logs in the terminal.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1650
No description provided.