Midio docs
  • Getting Started
    • Welcome
    • Quick Start Guide
  • Your First Midio App
  • Guides
    • HTTP
      • Making HTTP Requests
      • Responding to HTTP Requests
      • How to reach your own endpoints
      • CORS
      • Server-Sent Events (SSE)
    • Branching
    • Loops
    • Map, filter, reduce
    • Working with Data
    • Expressions
    • Building Agents
      • Streaming Agent API (experimental)
    • Debugging
    • Secrets and Environment variables
    • Convert JSON to data nodes
    • Writing tests
    • Cleaning up your flows
  • Package Manager
  • Integrating with third party services
  • Troubleshooting
  • Tutorials
    • Connecting LLMs to MCP-servers using the MCP-client package
    • Making Your Own MCP Server in Midio
    • A Fast Path to Functional RAG Agents
    • How to build a streaming agent using Server-Sent Events (SSE)
  • Reference
    • The Midio Editor
      • The Node Editor
      • User Traces
      • Traces (execution)
      • Processes
      • Log
      • Services
      • Problems
      • Function Signature
      • Data
      • Settings
    • The Midio Language
      • Nodes and execution
      • Functions and Events
        • Anonymous functions
      • Modules
      • Contexts
      • Data type
      • Local variables
      • Portals
      • Waypoint node
      • Partial function application
  • The Midio Engine
  • Built in Nodes
    • Core (std)
    • HTTP
    • LLM
Powered by GitBook
On this page
  • Execution error: Failed to consume context
  • Error notifications when trying to perform edits
  • 502 when sending HTTP request to the editor
  • Internal error when trying to delete module with types that are referenced from other modules

Was this helpful?

Edit on GitHub

Troubleshooting

PreviousIntegrating with third party servicesNextConnecting LLMs to MCP-servers using the MCP-client package

Last updated 2 months ago

Was this helpful?

Midio is still in early development, and there will inevitably be bugs. Here is a list of known bugs, and some workarounds.

Execution error: Failed to consume context

Error notifications when trying to perform edits

This might mean that the editor server or engine has crashed. Try refreshing the browser.

502 when sending HTTP request to the editor

This can happen if the URL is malformed, like for example of the port number is not in the right location. Make sure to put the port before the resource part of the url, for example: https://<my-project>.midio.dev:<port-number>/some/resource

Internal error when trying to delete module with types that are referenced from other modules

The compiler will fail if it is not able to resolve all types, and the editor won’t save changes that cause the compiler to fail. That is why this notification will appear if you try to delete a module with a type that is in use by functions in another module. A workaround until we streamline this case is to first change all uses of that type to another type first, and then try again.

This error can occur if you’ve put nodes that either consume or borrow from their execution context inside your own functions. Examples of functions like this include and Testing.Assert. You can see what contexts a node requires by hovering its input trigger. See Contexts for more information, and for how you can make your own function use them. The quick fix is to add the EndpointContext to your functions input trigger consumes section.

Response
#how-it-works