Skip to content

Server stop responding after submitting an invalid payload #12310

@daneatmastra

Description

@daneatmastra

This issue was created from Discord post 1465315975464357989:

Open in Discord

I'm using the latest mastra and encountered unexpected behavior:

  • Setup a weather-agent app using the template from mastra. It works normally
  • Create a workflow run.
curl -X 'POST' \
  'http://localhost:4111/api/workflows/weather-workflow/create-run?runId=test-3' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json'
#=> {"runId":"test-3"}
  • Call the API to start the workflow with a malformed JSON
curl -X 'POST' 'http://localhost:4111/api/workflows/weather-workflow/start?runId=test-3' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{"inputData":{"city":"NYC"}'
#=> {"message":"Workflow run started"}
  • An error appears on the server, and it stops responding to any subsequent requests.

I'm reporting this because I'm investigating an issue in my staging environment (Vercel on a Fluid instance) where the mastra server stops responding after an error.


Screenshot 1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions