-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
"Error: Diagram error not found." on await mermaid.mermaidAPI.render(id, text) #4140
Comments
Causemermaid/packages/mermaid/src/diagram-api/diagramAPI.ts Lines 68 to 73 in 6b251de
Stack Trace (without mermaidAPI)
Stack Trace (with mermaidAPI)
|
It's a concurrency bug when |
const { svg } = await mermaid.render( // mermaid 10: svg -> { svg }
'mermaid',
value
)
const buff = Buffer.from(svg) |
@knsv It turns out you can actually cause this two ways:
The second case is not fixed. I lack permission to re-open, but please consider doing so. |
@AlbinoGeek can you please share an example how it can be reproduced with I suspect I'm running into this too in |
I don't quite know what changed, but it's all fixed now, can no longer reproduce! |
Description
When I call the new async
mermaid.mermaidAPI.render
-- I get the error (see title).Steps to reproduce
Screenshots
Code Sample
Setup
Desktop
Additional Context
Non-descript error is non-descript.
The text was updated successfully, but these errors were encountered: