question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Copy URN" button in UI throws exception on "reading writeText"

See original GitHub issue

Describe the bug When clicking on the “Copy URN” button in the UI, the urn is not placed into clipboard and instead the UI throws an exception

To Reproduce Steps to reproduce the behavior:

  1. Open Developer Tools (or something to see javascript console)
  2. Go to to a screen that has the button
  3. Click on the button
  4. See following exception:
react-dom.production.min.js:101 Uncaught TypeError: Cannot read properties of undefined (reading 'writeText')
    at onClick (EntityHeader.tsx:180:45)
    at J (button.js:233:57)
    at Object.qe (react-dom.production.min.js:52:317)
    at Ye (react-dom.production.min.js:52:471)
    at react-dom.production.min.js:53:35
    at wr (react-dom.production.min.js:100:68)
    at Sr (react-dom.production.min.js:101:380)
    at react-dom.production.min.js:113:65
    at je (react-dom.production.min.js:292:189)
    at react-dom.production.min.js:50:57

Expected behavior The URN should be placed into clipboard

Screenshots copy_urn_button

Desktop (please complete the following information):

  • macOS Catalina 10.15.7
  • Google Chrome
  • 99.0.4844.83 (Official Build) (x86_64)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jjoyce0510commented, Jul 12, 2022

Hi folks.

This has been Resolved in recent versions of DataHub.

Closing the ticket as fixed.

Thanks John

0reactions
YTQ419commented, May 13, 2022

I have the same problem,Have you solved it

Chrome-version 101.0.4951.67

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clipboard.writeText() - Web APIs | MDN
The Clipboard interface's writeText() property writes the specified text string to the system clipboard. Text may be read back using either ...
Read more >
DOMException on calling navigator.clipboard.readText()
Ironically, this caused the text to not be copied. The workaround was quite simple: clipboard.writeText(clippy_button.href).then(function( ...
Read more >
Unblocking clipboard access - web.dev
To copy text to the clipboard call writeText() . Since this API is asynchronous, the writeText() function returns a Promise that resolves or...
Read more >
Copy snippet action doesn't work without HTTPs #13776
Launch a storybook on a non-secure origin (ie, no https and no localhost) · Go to a story snippet and click on the...
Read more >
Clipboard service not able to copy the text when you select ...
As i'm not able to copy the text when you select folder path and it is showing as exception. Could not find 'clipboard'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found