Skip to content
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

Bug: Cannot upload emoji #1056

Open
yetiinabox opened this issue Oct 25, 2024 · 0 comments
Open

Bug: Cannot upload emoji #1056

yetiinabox opened this issue Oct 25, 2024 · 0 comments
Labels
Bug New Issue Please apply this label to any new issues :)

Comments

@yetiinabox
Copy link

Describe the bug
The operation to upload an emoji, from the Instance Configuration menu, fails.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Instance Configuration.
  2. Click on Custom Emoji
  3. Fill in the three fields - name, tag, and file to upload.
  4. Click 'Add'
  5. Error message appears: "Please check all inputs and try again"

Expected behavior
Not sure; I've never been able to upload an emoji successfully.

Screenshots
If applicable, add screenshots to help explain your problem.

Bonfire environment (please complete the following information):

  • Running with Docker? yes, using Abra, on remote server running Debian 6.1.112 with Docker 27.3.1
  • Running env: prod
  • Running version (check on your instance's homepage): [0.9.10-beta.134 JS en]
  • Running flavour: community
  • Running any extra/forked extensions:

Device (please complete the following information):

  • Device: Linux laptop
  • OS: Ubuntu 22.04
  • Browser : Vivaldi 7.0.3495.6 stable, also Firefox 132.0b9

Additional context
Logs from event, captured using abra app log (domainname)

�2024-10-25T20:01:32.924406248Z 20:01:32.924 [error] ** Elixir.FunctionClauseError: no function clause matching in Access.get/3: elixir 1.17.2: lib/access.ex:320: Access.get({:move_original, true}, :move_original, nil)
f2024-10-25T20:01:32.924453910Z bonfire_files 0.1.0: lib/files.ex:106: Bonfire.Files.maybe_do_upload/5
j2024-10-25T20:01:32.924460500Z bonfire_common 0.1.0: lib/utils.ex:647: Bonfire.Common.Utils.maybe_apply/4
�2024-10-25T20:01:32.924465970Z bonfire_ui_common 0.1.0: lib/ui_common.ex:844: anonymous fn/5 in Bonfire.UI.Common.live_upload_files/5
�2024-10-25T20:01:32.924471370Z phoenix_live_view 0.20.17: lib/phoenix_live_view/upload_channel.ex:21: Phoenix.LiveView.UploadChannel.consume/3
_2024-10-25T20:01:32.924476801Z elixir 1.17.2: lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
�2024-10-25T20:01:32.924482261Z bonfire_ui_common 0.1.0: lib/ui_common.ex:873: Bonfire.UI.Common.maybe_consume_uploaded_entries/3
t2024-10-25T20:01:32.924487651Z bonfire_ui_common 0.1.0: lib/ui_common.ex:839: Bonfire.UI.Common.live_upload_files/5
2024-10-25T20:01:32.924493031Z
m2024-10-25T20:01:32.924498261Z Bonfire.Common.Utils.maybe_apply/4 @ deps/bonfire_common/lib/utils.ex:652
�2024-10-25T20:01:32.924503632Z anonymous fn/5 in Bonfire.UI.Common.live_upload_files/5 @ deps/bonfire_ui_common/lib/ui_common.ex:844
�2024-10-25T20:01:32.924508982Z Phoenix.LiveView.UploadChannel.consume/3 @ deps/phoenix_live_view/lib/phoenix_live_view/upload_channel.ex:21
�2024-10-25T20:01:32.924530253Z Enum."-map/2-lists^map/1-1-"/2 @ /home/runner/work/elixir/elixir/lib/elixir/lib/enum.ex:1703
�2024-10-25T20:01:32.924536103Z Bonfire.UI.Common.maybe_consume_uploaded_entries/3 @ deps/bonfire_ui_common/lib/ui_common.ex:873
w2024-10-25T20:01:32.924541393Z Bonfire.UI.Common.live_upload_files/5 @ deps/bonfire_ui_common/lib/ui_common.ex:839
�2024-10-25T20:01:32.924546613Z Bonfire.Files.Web.UploadEmojiLive."handle_event (overridable 1)"/3 @ deps/bonfire_files/lib/web/upload_emoji_live.ex:58
�2024-10-25T20:01:32.924552263Z Bonfire.UI.Common.ErrorHandling.undead/3 @ deps/bonfire_ui_common/lib/error/error_handling.ex:7
2024-10-25T20:01:32.924557583Z
�2024-10-25T20:01:32.925060171Z 20:01:32.924 [warning] maybe_apply: A pattern matching error occurred when trying to maybe_apply Elixir.Bonfire.Files.upload/5 - with args: [Bonfire.Files.EmojiUploader, :instance, "/tmp/plug-1729-8rhn/live_view_upload-1729886489-680377789208-1", %{metadata: %{label: "autism", media_type: "emoji", shortcode: ":autism:"}, client_name: "autism.png"}, {:move_original, true}] - and opts: []
�2024-10-25T20:01:32.929894651Z 20:01:32.929 [error] Did not upload autism.png: A pattern matching error occurred when trying to maybe_apply Elixir.Bonfire.Files.upload/5
�2024-10-25T20:01:32.929920502Z anonymous fn/2 in Bonfire.UI.Common.live_upload_files/5 @ deps/bonfire_ui_common/lib/ui_common.ex:862
�2024-10-25T20:01:32.929926932Z Phoenix.LiveView.UploadChannel.consume/3 @ deps/phoenix_live_view/lib/phoenix_live_view/upload_channel.ex:21
�2024-10-25T20:01:32.930094599Z Enum."-map/2-lists^map/1-1-"/2 @ /home/runner/work/elixir/elixir/lib/elixir/lib/enum.ex:1703
�2024-10-25T20:01:32.930119419Z Bonfire.UI.Common.maybe_consume_uploaded_entries/3 @ deps/bonfire_ui_common/lib/ui_common.ex:873
w2024-10-25T20:01:32.930125680Z Bonfire.UI.Common.live_upload_files/5 @ deps/bonfire_ui_common/lib/ui_common.ex:839
�2024-10-25T20:01:32.930131029Z Bonfire.Files.Web.UploadEmojiLive."handle_event (overridable 1)"/3 @ deps/bonfire_files/lib/web/upload_emoji_live.ex:58
�2024-10-25T20:01:32.930164482Z Bonfire.UI.Common.ErrorHandling.undead/3 @ deps/bonfire_ui_common/lib/error/error_handling.ex:7
�2024-10-25T20:01:32.930203123Z anonymous fn/4 in Phoenix.LiveView.Channel.inner_component_handle_event/4 @ deps/phoenix_live_view/lib/phoenix_live_view/channel.ex:735
2024-10-25T20:01:32.930225044Z
[2024-10-25T20:01:32.931992066Z 20:01:32.931 [warning] [error: "Did not upload autism.png"]
�2024-10-25T20:01:32.932011907Z anonymous fn/2 in Bonfire.Files.Web.UploadEmojiLive."handle_event (overridable 1)"/3 @ deps/bonfire_files/lib/web/upload_emoji_live.ex:95
�2024-10-25T20:01:32.932019276Z Bonfire.UI.Common.ErrorHandling.undead/3 @ deps/bonfire_ui_common/lib/error/error_handling.ex:7
�2024-10-25T20:01:32.932025076Z anonymous fn/4 in Phoenix.LiveView.Channel.inner_component_handle_event/4 @ deps/phoenix_live_view/lib/phoenix_live_view/channel.ex:735
w2024-10-25T20:01:32.932045508Z :telemetry.span/3 @ (telemetry 1.2.1) /opt/app/deps/telemetry/src/telemetry.erl:321
�2024-10-25T20:01:32.932051777Z Phoenix.LiveView.Diff.write_component/4 @ deps/phoenix_live_view/lib/phoenix_live_view/diff.ex:209
2024-10-25T20:01:32.932071888Z

@yetiinabox yetiinabox added Bug New Issue Please apply this label to any new issues :) labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug New Issue Please apply this label to any new issues :)
Projects
None yet
Development

No branches or pull requests

1 participant