JackuB / mermaid-preview

Create Mermaid diagrams and charts in Slack
https://mermaid-preview.com
MIT License
15 stars 0 forks source link

API Error occurred: method_deprecated #5

Closed elusive closed 2 months ago

elusive commented 3 months ago

I added the app to my slack channel and am able to use the /mermaid command to open the dialog that prompts for the diagram syntax. The sample from mermaid-preview.com fails as does the other simple diagram i tried. So finally I have tried

graph TD;
A---B
A---C

and it fails also. No matter what i try i get:

image
elusive commented 3 months ago

sorry I forgot that mermarid would render the diagram on GH. the simplest syntax I tried and that I put in the description above (but that was rendered into a diagram) was graph TD; A---B A---C

JackuB commented 2 months ago

I couldn't replicate this exact error message, but I ran into an array of different API errors in the past few weeks. After some investigation, it turns out the culprit was the fly.io. Maybe they changed something on their side or had load issues, but their shared CPU instances couldn't handle the Mermaid-CLI rendering 🤔

I switched to their dedicated CPU instances and it seems resolved for now. I'm closing this issue - but please reopen it or start a new one if you run into a similar error 🙏