Skip to content

Bug: HTTP Request throws "TypeError: fetch failed" (500) during execution but works in "Test request" #2320

@arbin-mahato

Description

@arbin-mahato

I am encountering a 500 Internal Server Error with the message Error from Typebot server: TypeError: fetch failed when executing an HTTP Request block during a chat flow (server-side execution).

There is a discrepancy between the builder and the runtime:

Test Mode: Clicking "Test the request" inside the builder succeeds and returns data (Status 200).

Runtime (Preview/Web): The exact same request fails immediately with Status 500.

To Reproduce
Steps to reproduce the behavior:

  1. Add an HTTP Request block to the flow.

  2. Configure the request:

  1. Click Test the request inside the configuration panel.
  • Observation: Request is successful (Status 200) and returns the JSON list of cities.
  1. Close the configuration and click Restart in the Preview panel to run the flow.

  2. Observation: The block fails to execute.

Error Log:

  "response": {
    "statusCode": 500,
    "data": {
      "message": "Error from Typebot server: TypeError: fetch failed"
    }
  }
} 

Expected behavior
The HTTP request should execute successfully during the bot runtime (server-side), matching the successful result observed in the "Test the request" feature.

Screen recording

Screen.Recording.2025-12-19.at.12.43.10.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions