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

Can't paste images #10010

Closed
lnicola opened this issue Jun 11, 2019 · 1 comment
Closed

Can't paste images #10010

lnicola opened this issue Jun 11, 2019 · 1 comment
Labels

Comments

@lnicola
Copy link

lnicola commented Jun 11, 2019

Description

Can't paste PNG images from clipboard:

image

Server logs:

synapse[3521]: 2019-06-11 11:01:41,361 - synapse.http.server - 112 - ERROR - POST-21 - Failed handle request via 'UploadResource': <XForwardedForRequest at 0x7f3c582ccc18 method='POST' uri='/_matrix/media/v1/upload?filename=image.png' clientproto='HTTP/1.0' site=8008>
synapse[3521]: Traceback (most recent call last):
synapse[3521]:   File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
synapse[3521]:     result = g.send(result)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/synapse/storage/_base.py", line 527, in runWithConnection
synapse[3521]:     defer.returnValue(result)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 1362, in returnValue
synapse[3521]:     raise _DefGen_Return(val)
synapse[3521]: twisted.internet.defer._DefGen_Return: None
synapse[3521]: During handling of the above exception, another exception occurred:
synapse[3521]: Traceback (most recent call last):
synapse[3521]:   File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
synapse[3521]:     result = g.send(result)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/synapse/storage/_base.py", line 487, in runInteraction
synapse[3521]:     defer.returnValue(result)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 1362, in returnValue
synapse[3521]:     raise _DefGen_Return(val)
synapse[3521]: twisted.internet.defer._DefGen_Return: None
synapse[3521]: During handling of the above exception, another exception occurred:
synapse[3521]: Traceback (most recent call last):
synapse[3521]:   File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
synapse[3521]:     result = g.send(result)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/synapse/storage/_base.py", line 586, in _simple_insert
synapse[3521]:     defer.returnValue(True)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 1362, in returnValue
synapse[3521]:     raise _DefGen_Return(val)
synapse[3521]: twisted.internet.defer._DefGen_Return: True
synapse[3521]: During handling of the above exception, another exception occurred:
synapse[3521]: Traceback (most recent call last):
synapse[3521]:   File "/usr/lib/python3.7/site-packages/synapse/http/server.py", line 81, in wrapped_request_handler
synapse[3521]:     yield h(self, request)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/synapse/rest/media/v1/upload_resource.py", line 95, in _async_render_POST
synapse[3521]:     content_length, requester.user
synapse[3521]:   File "/usr/lib/python3.7/site-packages/synapse/rest/media/v1/media_repository.py", line 176, in create_content
synapse[3521]:     None, media_id, media_id, media_type,
synapse[3521]:   File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
synapse[3521]:     result = g.send(result)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/synapse/rest/media/v1/media_repository.py", line 573, in _generate_thumbnails
synapse[3521]:     thumbnailer = Thumbnailer(input_path)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/synapse/rest/media/v1/thumbnailer.py", line 43, in __init__
synapse[3521]:     self.image = Image.open(input_path)
synapse[3521]:   File "/usr/lib/python3.7/site-packages/PIL/Image.py", line 2705, in open
synapse[3521]:     % (filename if filename else fp))
synapse[3521]: OSError: cannot identify image file '/var/lib/synapse/media_store/local_content/vi/XO/lhlBSJHGjKpTnqzomjBu'

Contents of uploaded file:

function stream() {
    [native code]
}

Looks like you're sending the definition of a function called stream instead of a field. The strange thing is that sometimes it's working.

Version information

  • Platform: Web
  • Browser: Firefox Nightly
  • OS: Arch Linux
  • URL: Self-hosted riot-web 1.2.1, matrix-synapse 0.99.5-1
@t3chguy
Copy link
Member

t3chguy commented Jun 11, 2019

Duplicate of #9913

@t3chguy t3chguy closed this as completed Jun 11, 2019
su-ex added a commit to SchildiChat/element-web that referenced this issue Feb 28, 2023
* Description of QR code sign in labs feature ([\element-hq#23513](element-hq#23513)). Contributed by @hughns.
* Add option to find own location in map views ([\element-hq#10083](matrix-org/matrix-react-sdk#10083)).
* Render poll end events in timeline ([\element-hq#10027](matrix-org/matrix-react-sdk#10027)). Contributed by @kerryarchibald.
* Indicate unread messages in tab title ([\element-hq#10096](matrix-org/matrix-react-sdk#10096)). Contributed by @tnt7864.
* Open message in editing mode when keyboard up is pressed (RTE) ([\element-hq#10079](matrix-org/matrix-react-sdk#10079)). Contributed by @florianduros.
* Hide superseded rooms from the room list using dynamic room predecessors ([\element-hq#10068](matrix-org/matrix-react-sdk#10068)). Contributed by @andybalaam.
* Support MSC3946 in RoomListStore ([\element-hq#10054](matrix-org/matrix-react-sdk#10054)). Fixes element-hq#24325. Contributed by @andybalaam.
* Auto focus security key field ([\element-hq#10048](matrix-org/matrix-react-sdk#10048)).
* use Poll model with relations API in poll rendering ([\element-hq#9877](matrix-org/matrix-react-sdk#9877)). Contributed by @kerryarchibald.
* Support MSC3946 in the RoomCreate tile ([\element-hq#10041](matrix-org/matrix-react-sdk#10041)). Fixes element-hq#24323. Contributed by @andybalaam.
* Update labs flag description for RTE ([\#10058](matrix-org/matrix-react-sdk#10058)). Contributed by @florianduros.
* Change ul list style to disc when editing message ([\element-hq#10043](matrix-org/matrix-react-sdk#10043)). Contributed by @alunturner.
* Improved click detection within PiP windows ([\element-hq#10040](matrix-org/matrix-react-sdk#10040)). Fixes element-hq#24371.
* Add RTE keyboard navigation in editing ([\element-hq#9980](matrix-org/matrix-react-sdk#9980)). Fixes element-hq#23621. Contributed by @florianduros.
* Paragraph integration for rich text editor ([\element-hq#10008](matrix-org/matrix-react-sdk#10008)). Contributed by @alunturner.
* Add  indentation increasing/decreasing to RTE ([\element-hq#10034](matrix-org/matrix-react-sdk#10034)). Contributed by @florianduros.
* Add ignore user confirmation dialog ([\element-hq#6116](matrix-org/matrix-react-sdk#6116)). Fixes element-hq#14746.
* Use monospace font for room, message IDs in View Source modal ([\element-hq#9956](matrix-org/matrix-react-sdk#9956)). Fixes element-hq#21937. Contributed by @paragpoddar.
* Implement MSC3946 for AdvancedRoomSettingsTab ([\#9995](matrix-org/matrix-react-sdk#9995)). Fixes element-hq#24322. Contributed by @andybalaam.
* Implementation of MSC3824 to make the client OIDC-aware ([\element-hq#8681](matrix-org/matrix-react-sdk#8681)). Contributed by @hughns.
* Improves a11y for avatar uploads ([\element-hq#9985](matrix-org/matrix-react-sdk#9985)). Contributed by @GoodGuyMarco.
* Add support for [token authenticated registration](https ([\element-hq#7275](matrix-org/matrix-react-sdk#7275)). Fixes element-hq#18931. Contributed by @govynnus.
* Jitsi requests 'requires_client' capability if auth token is provided ([\element-hq#24294](element-hq#24294)). Contributed by @maheichyk.
* Remove duplicate white space characters from translation keys ([\element-hq#10152](matrix-org/matrix-react-sdk#10152)). Contributed by @luixxiul.
* Fix the caption of new sessions manager on Labs settings page for localization ([\element-hq#10143](matrix-org/matrix-react-sdk#10143)). Contributed by @luixxiul.
* Prevent start another DM with a user if one already exists ([\element-hq#10127](matrix-org/matrix-react-sdk#10127)). Fixes element-hq#23138.
* Remove white space characters before the horizontal ellipsis ([\element-hq#10130](matrix-org/matrix-react-sdk#10130)). Contributed by @luixxiul.
* Fix Selectable Text on 'Delete All' and 'Retry All' Buttons ([\element-hq#10128](matrix-org/matrix-react-sdk#10128)). Fixes element-hq#23232. Contributed by @akshattchhabra.
* Correctly Identify emoticons ([\element-hq#10108](matrix-org/matrix-react-sdk#10108)). Fixes element-hq#19472. Contributed by @adarsh-sgh.
* Should open new 1:1 chat room after leaving the old one ([\element-hq#9880](matrix-org/matrix-react-sdk#9880)). Contributed by @ahmadkadri.
* Remove a redundant white space ([\element-hq#10129](matrix-org/matrix-react-sdk#10129)). Contributed by @luixxiul.
* Fix a crash when removing persistent widgets (updated) ([\element-hq#10099](matrix-org/matrix-react-sdk#10099)). Fixes element-hq#24412. Contributed by @andybalaam.
* Fix wrongly grouping 3pid invites into a single repeated transition ([\element-hq#10087](matrix-org/matrix-react-sdk#10087)). Fixes element-hq#24432.
* Fix scrollbar colliding with checkbox in add to space section ([\element-hq#10093](matrix-org/matrix-react-sdk#10093)). Fixes element-hq#23189. Contributed by @Arnabdaz.
* Add a whitespace character after 'broadcast?' ([\element-hq#10097](matrix-org/matrix-react-sdk#10097)). Contributed by @luixxiul.
* Seekbar in broadcast PiP view is now updated when switching between different broadcasts ([\element-hq#10072](matrix-org/matrix-react-sdk#10072)). Fixes element-hq#24415.
* Add border to "reject" button on room preview card for clickable area indication. It fixes element-hq#22623 ([\element-hq#9205](matrix-org/matrix-react-sdk#9205)). Contributed by @gefgu.
* Element-R: fix rageshages ([\element-hq#10081](matrix-org/matrix-react-sdk#10081)). Fixes element-hq#24430.
* Fix markdown paragraph display in timeline ([\element-hq#10071](matrix-org/matrix-react-sdk#10071)). Fixes element-hq#24419. Contributed by @alunturner.
* Prevent the remaining broadcast time from being exceeded ([\#10070](matrix-org/matrix-react-sdk#10070)).
* Fix cursor position when new line is created by pressing enter (RTE) ([\element-hq#10064](matrix-org/matrix-react-sdk#10064)). Contributed by @florianduros.
* Ensure room is actually in space hierarchy when resolving its latest version ([\element-hq#10010](matrix-org/matrix-react-sdk#10010)).
* Fix new line for inline code ([\element-hq#10062](matrix-org/matrix-react-sdk#10062)). Contributed by @florianduros.
* Member avatars without canvas ([\element-hq#9990](matrix-org/matrix-react-sdk#9990)). Contributed by @clarkf.
* Apply more general fix for base avatar regressions ([\element-hq#10045](matrix-org/matrix-react-sdk#10045)). Fixes element-hq#24382 and element-hq#24370.
* Replace list, code block and quote icons by new icons ([\element-hq#10035](matrix-org/matrix-react-sdk#10035)). Contributed by @florianduros.
* fix regional emojis converted to flags ([\element-hq#9294](matrix-org/matrix-react-sdk#9294)). Fixes element-hq#19000. Contributed by @grimhilt.
* resolved emoji description text overflowing issue ([\element-hq#10028](matrix-org/matrix-react-sdk#10028)). Contributed by @fahadNoufal.
* Fix MessageEditHistoryDialog crashing on complex input ([\element-hq#10018](matrix-org/matrix-react-sdk#10018)). Fixes element-hq#23665. Contributed by @clarkf.
* Unify unread notification state determination ([\element-hq#9941](matrix-org/matrix-react-sdk#9941)). Contributed by @clarkf.
* Fix layout and visual regressions around default avatars ([\element-hq#10031](matrix-org/matrix-react-sdk#10031)). Fixes element-hq#24375 and element-hq#24369.
* Fix useUnreadNotifications exploding with falsey room, like in notif panel ([\element-hq#10030](matrix-org/matrix-react-sdk#10030)). Fixes matrix-org/element-web-rageshakes#19334.
* Fix "[object Promise]" appearing in HTML exports ([\element-hq#9975](matrix-org/matrix-react-sdk#9975)). Fixes element-hq#24272. Contributed by @clarkf.
* changing the color of message time stamp ([\element-hq#10016](matrix-org/matrix-react-sdk#10016)). Contributed by @nawarajshah.
* Fix link creation with backward selection ([\element-hq#9986](matrix-org/matrix-react-sdk#9986)). Fixes element-hq#24315. Contributed by @florianduros.
* Misaligned reply preview in thread composer element-hq#23396 ([\element-hq#9977](matrix-org/matrix-react-sdk#9977)). Fixes element-hq#23396. Contributed by @mustafa-kapadia1483.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants