Repository: penpot/penpot

Issue #5499: bug: Error while exporting assets from design
Created: 2024-12-27T10:24:32Z
Steps To Reproduce
Simply export any assets from design and you will get error.
also why its too difficult to report bugs, means what is backend trace, what is frontend trace, where to get these?
Expected behavior
When we click export image it should export that image in particular format.
Actual behavior
When I select any layer in design and click on Export element button it shows me internal error.
Screenshots or video

Desktop (please complete the following information)
Windows 11
Chrome: Version 131.0.6778.205 (Official Build) (64-bit)
Smartphone (please complete the following information)
No response
Environment (please complete the following information)
No response
Frontend Stack Trace
Hint:    locator.waitFor: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('#screenshot-afba5c25-cd34-803c-8005-6ed668961d55') to be visible

Prof ID: d72c757d-42c5-8058-8005-792f5822fcb9
Team ID: --

Data:
{:type :server-error,
 :hint
 "locator.waitFor: Timeout 10000ms exceeded.\nCall log:\n  - waiting for locator('#screenshot-afba5c25-cd34-803c-8005-6ed668961d55') to be visible\n"}

Trace:
Error: http error
  at new PENPOT.$g (https://design.penpot.app/js/shared.d6f98a6c7-1734945897.js:299:97)
  at PENPOT.ah (https://design.penpot.app/js/shared.d6f98a6c7-1734945897.js:299:419)
  at PENPOT.bh (https://design.penpot.app/js/shared.d6f98a6c7-1734945897.js:299:372)
  at PENPOT.rUa (https://design.penpot.app/js/shared.d6f98a6c7-1734945897.js:1262:410)
  at https://design.penpot.app/js/shared.d6f98a6c7-1734945897.js:1237:242
  at h (https://design.penpot.app/js/libs.js?ts=1734946515493:592:16436)
  at e._ [as _nextOverride] (https://design.penpot.app/js/libs.js?ts=1734946515493:592:16386)
  at e.Lut [as _next] (https://design.penpot.app/js/libs.js?ts=1734946515493:592:1873)
  at e.next (https://design.penpot.app/js/libs.js?ts=1734946515493:592:1370)
  at e.next [as _nextOverride] (https://design.penpot.app/js/libs.js?ts=1734946515493:592:13985)
  at e.Lut [as _next] (https://design.penpot.app/js/libs.js?ts=1734946515493:592:1873)
  at e.next (https://design.penpot.app/js/libs.js?ts=1734946515493:592:1370)
  at e.next [as _nextOverride] (https://design.penpot.app/js/libs.js?ts=1734946515493:592:16499)
  at e.Lut [as _next] (https://design.penpot.app/js/libs.js?ts=1734946515493:592:1873)
  at e.next (https://design.penpot.app/js/libs.js?ts=1734946515493:592:1370)
  at e.next [as _nextOverride] (https://design.penpot.app/js/libs.js?ts=1734946515493:592:13985)
  at e.Lut [as _next] (https://design.penpot.app/js/libs.js?ts=1734946515493:592:1873)
  at e.next (https://design.penpot.app/js/libs.js?ts=1734946515493:592:1370)
  at https://design.penpot.app/js/libs.js?ts=1734946515493:592:4469

Last events:
[":app.main.data.viewer/hover-shape"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.viewer/hover-shape"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.viewer/hover-shape"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.viewer/hover-shape"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.viewer/hover-shape"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.viewer/hover-shape"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.viewer/hover-shape"
 ":app.main.data.exports.assets/request-simple-export"
 ":app.main.data.events/event"
 ":app.main.data.exports.assets/clear-export-state"
 ":app.main.data.viewer/finalize"
 ":app.main.data.shortcuts/pop-shortcuts"
 ":app.main.data.events/event"
 ":app.main.data.viewer/fetch-bundle"
 ":app.main.data.viewer/fetch-comment-threads"
 ":app.main.data.viewer/initialize"
 ":app.main.data.fonts/team-fonts-loaded"
 ":app.main.features/initialize"
 ":app.util.router/navigate"
 ":app.main.data.viewer/update-zoom-querystring"
 ":app.main.data.viewer/zoom-to-fill"
 ":app.util.router/navigate"
 ":app.main.data.viewer/go-to-frame-by-index"
 ":app.main.data.viewer/bundle-fetched"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.shortcuts/push-shortcuts"
 ":app.main.data.viewer/set-viewport-size"
 ":app.util.router/navigate"
 ":app.main.data.viewer/update-zoom-querystring"
 ":app.main.data.viewer/zoom-to-fill"
 ":app.util.router/navigate"
 ":app.main.data.viewer/update-zoom-querystring"
 ":app.main.data.viewer/zoom-to-fill"
 ":app.main.data.viewer/hover-shape"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.viewer/hover-shape"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.viewer/hover-shape"
 ":app.main.data.viewer/select-shape"
 ":app.main.data.exports.assets/request-simple-export"
 ":app.main.data.events/event"
 ":app.main.data.exports.assets/clear-export-state"
 ":app.main.data.viewer/finalize"
 ":app.main.data.shortcuts/pop-shortcuts"
 ":app.main.data.events/event"]
Backend Stack Trace
Additional context
No response

Duplicate issue #5743: bug: Penpot PNG export
Created: 2025-02-01T17:46:57Z
Steps To Reproduce

Create artboard
Add multiple components
Export artboard in any format

Expected behavior
If png selected, export the selected in png format.
Actual behavior
If exporting as PNG, it fails and takes you to internal error page
Screenshots or video

Desktop (please complete the following information)

OS: Arch
Browser: Firefox (latest)

Smartphone (please complete the following information)
No response
Environment (please complete the following information)

Host: both local and https://design.penpot.app

Frontend Stack Trace
Hint:    repository requet error
Prof ID: 5a06de77-2a55-80cc-8005-ab10d065dd22
Team ID: 5a06de77-2a55-80cc-8005-ab10d0666b1e

Data:
{:type :internal,
 :hint "repository requet error",
 :headers
 {"referrer-policy" "same-origin",
  "x-firefox-spdy" "h2",
  "server" "cloudflare",
  "content-type" "text/html; charset=UTF-8",
  "content-length" "6358",
  "x-frame-options" "SAMEORIGIN",
  "expires" "Thu, 01 Jan 1970 00:00:01 GMT",
  "cf-ray" "90b3b80c5bce2db5-YVR",
  "date" "Sat, 01 Feb 2025 17:40:06 GMT",
  "cache-control" "private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0"},
 :status 504,
 :code :repository-access-error,
 :uri "https://design.penpot.app/api/export",
 :data "(...)"}

Trace:
u@https://design.penpot.app/plugins-runtime/index.js?ts=1738236867115:3434:42
PENPOT.bh@https://design.penpot.app/js/shared.10ca2b20e-1738235758.js:299:102
PENPOT.ch@https://design.penpot.app/js/shared.10ca2b20e-1738235758.js:299:419
PENPOT.dh@https://design.penpot.app/js/shared.10ca2b20e-1738235758.js:299:372
PENPOT.qUa@https://design.penpot.app/js/shared.10ca2b20e-1738235758.js:1263:447
cTa/<@https://design.penpot.app/js/shared.10ca2b20e-1738235758.js:1237:242
h@https://design.penpot.app/js/libs.js?ts=1738236867115:592:16436
_@https://design.penpot.app/js/libs.js?ts=1738236867115:592:16386
Fut@https://design.penpot.app/js/libs.js?ts=1738236867115:592:1873
next@https://design.penpot.app/js/libs.js?ts=1738236867115:592:1370
next@https://design.penpot.app/js/libs.js?ts=1738236867115:592:13985
Fut@https://design.penpot.app/js/libs.js?ts=1738236867115:592:1873
next@https://design.penpot.app/js/libs.js?ts=1738236867115:592:1370
next@https://design.penpot.app/js/libs.js?ts=1738236867115:592:16499
Fut@https://design.penpot.app/js/libs.js?ts=1738236867115:592:1873
next@https://design.penpot.app/js/libs.js?ts=1738236867115:592:1370
next@https://design.penpot.app/js/libs.js?ts=1738236867115:592:13985
Fut@https://design.penpot.app/js/libs.js?ts=1738236867115:592:1873
next@https://design.penpot.app/js/libs.js?ts=1738236867115:592:1370
Hut/</<@https://design.penpot.app/js/libs.js?ts=1738236867115:592:4469


Last events:
[":app.main.data.persistence/run-persistence-task"
 ":app.main.data.persistence/update-file-revn"
 ":app.main.data.workspace.guides/set-hover-guide"
 ":app.main.data.workspace.highlight/highlight-shape"
 ":app.main.data.workspace.highlight/dehighlight-shape"
 ":app.main.data.workspace.highlight/highlight-shape"
 ":app.main.data.workspace.highlight/dehighlight-shape"
 ":app.main.data.workspace.highlight/highlight-shape"
 ":app.main.data.workspace.highlight/dehighlight-shape"
 ":app.main.data.workspace.highlight/highlight-shape"
 ":app.main.data.workspace.highlight/dehighlight-shape"
 ":app.main.data.workspace.highlight/highlight-shape"
 ":app.main.data.workspace.collapse/expand-all-parents"
 ":app.main.data.workspace.selection/select-shape"
 ":app.main.data.workspace.highlight/dehighlight-shape"
 ":app.main.data.changes/apply-changes-localy"
 ":app.main.data.changes/update-indexes"
 ""
 ":app.main.data.changes/commit"
 ":app.main.data.workspace.undo/append-undo"
 ":app.main.data.changes/commit-changes"
 ":app.main.data.workspace.shapes/update-shapes"
 ":app.main.data.persistence/update-status"
 ":app.main.data.persistence/persist-commit"
 ":app.main.data.persistence/run-persistence-task"
 ":app.main.data.persistence/update-status"
 ":app.main.data.persistence/append-commit"
 ":app.main.data.exports.assets/request-simple-export"
 ":app.main.data.events/event"
 ":app.main.data.persistence/commit-persisted"
 ":app.main.data.persistence/discard-commit"
 ":app.main.data.persistence/update-status"
 ":app.main.data.persistence/run-persistence-task"
 ":app.main.data.persistence/update-file-revn"
 ":app.main.data.workspace.guides/set-hover-guide"
 ":app.main.data.workspace/workspace-focus-lost"
 ":app.main.data.workspace.guides/set-hover-guide"
 ":app.main.data.workspace.undo/check-open-transactions"
 ":app.main.data.workspace.guides/set-hover-guide"
 ":app.main.data.workspace/workspace-focus-lost"
 ":app.main.data.websocket/opened"
 ":app.main.data.exports.assets/clear-export-state"
 ":app.main.data.workspace.colors/stop-picker"
 ":app.main.data.modal/hide-modal"
 ":app.main.data.notifications/hide"
 ":app.main.data.workspace.notifications/finalize"
 ":app.main.data.workspace.shape-layout/finalize"
 ":app.main.data.workspace/finalize-file"
 ":app.main.data.workspace/finalize-page"
 ":app.main.data.shortcuts/pop-shortcuts"
 ":app.main.data.events/event"]


Backend Stack Trace

Additional context
No response

Closing comment (2025-02-03T01:15:55Z): Might be related to #5499