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.

Diagram from URL does not load

See original GitHub issue

When using a diagram URL, the error _this.substituteHashPrefixedNotation is not a function is thrown. (Full stack trace below.) This causes the diagram to never be displayed. If you visit the URL manually and copy-paste the text into the content field, it loads fine. As per the documentation, the URL returns a text/plain string.

I’m running version 1.4.4, cloned directly from this repo. (commit: 440689793ab6da82019c5ee43b49438dfef976d5)

Stack Trace:

TypeError: _this.substituteHashPrefixedNotation is not a function (vendor.2305a8e1d478628b1297.js:43)
    at DiagramCtrl.updateDiagram_cont (diagramControl.js:292)
    at successCallback (diagramControl.js:317)
    at u (vendor.2305a8e1d478628b1297.js:43)
    at vendor.2305a8e1d478628b1297.js:43
    at f.$digest (vendor.2305a8e1d478628b1297.js:43)
    at f.$apply (vendor.2305a8e1d478628b1297.js:43)
    at vendor.2305a8e1d478628b1297.js:43
    at i (vendor.2305a8e1d478628b1297.js:43)
    at vendor.2305a8e1d478628b1297.js:43 "Possibly unhandled rejection: {}"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ben-turnercommented, Dec 22, 2017

Thank you very much for the fix! I’m excited to start using it.

I think if a cache was added it would need to be configurable. My use case for using a URL is that the diagram layout changes regularly. A cache would make it no better than a hard-coded diagram.

Something like what grafana does with template vars could be okay though Refresh:

  • Never
  • On Dashboard Load
  • On Time Range Change
2reactions
brianganncommented, Dec 22, 2017

I have the fix ready and tested with remote urls and local diagrams. I noticed the remote diagrams was not populating the node colors, that’s been fixed also.

A cache mechanism would be useful for the URL method too to prevent pulling the mermaid file on every refresh.

Read more comments on GitHub >

github_iconTop Results From Across the Web

draw io diagram not loading - Google Groups
I am using this for a course, and my students are suddenly unable to read my workflow diagram. They get the error: Error...
Read more >
Publicly publish a diagram as a link
As different browsers have varying URL size limitations, very large diagrams may not be able to be loaded from a overly long URL....
Read more >
Diagram App not loading - Help / Discuss - XWiki Forum
Hello, I recently tried out the Diagram App and then upgraded to Pro Version. After my trial expired, I fully uninstalled the Extension...
Read more >
Visio Services does not render diagrams - Office
Provides a workaround for a problem in which Visio Services does not render diagrams. This problem occurs when the diagrams are hosted on ......
Read more >
Encode a diagram in a URL
Very large diagrams may not be able to be loaded from a overly long URL as browsers have varying limits on the length...
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