Coder Social home page Coder Social logo

Comments (6)

hahnbeelee avatar hahnbeelee commented on June 2, 2024

@kvyb hi where did you reach out? We'd love to help. Was it over email or the slack community..?

from docs.

kvyb avatar kvyb commented on June 2, 2024

@hahnbeelee it was over intercom on the 500 page.

from docs.

kvyb avatar kvyb commented on June 2, 2024

@hahnbeelee can I get an update on this please?

from docs.

rpmccarter avatar rpmccarter commented on June 2, 2024

@kvyb the issue is that you have unescaped curly braces in api-reference/example-usage. If you attempt to navigate to this page using our CLI, you'll see:

ReferenceError: entity_id is not defined
    at _createMdxContent (eval at <anonymous> (/Users/rpmccarter/.mintlify/mint/client/.next/server/chunks/623.js:38233:35), <anonymous>:142:110)
    ...

This is because, in mdx, curly braces are used to invoke variables. Our mdx parser is attempting to replace {entity_id} with the value of the variable entity_id, but the variable does not exist. (We don't support variables at the moment.) To fix this, escape the curly brackets with a backslash:

make a GET request to /get\_question/\{entity_id\}, replacing \{entity_id\} with the ID
...
make a POST request to /process\_chunk/\{entity_id\}

Let me know if this works for you! Also, we have plans to block deployments that contain syntax errors in the future, since this should never get deployed in the first place. Stay tuned for that feature

from docs.

kvyb avatar kvyb commented on June 2, 2024

@rpmccarter thanks for the update. It's interesting that there are no errors or unusual behaviour when running it locally.

from docs.

rpmccarter avatar rpmccarter commented on June 2, 2024

@kvyb the error in my response showed up when running locally - it should for you as well. Make sure your CLI is up-to-date with npm upgrade -g mintlify

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.