Skip to content

[Bug]: Can't call Anthropic in AI chat via Railway deployed site #96

Description

@MichaelJFordham

Summary

Hey, first off let me say I really love the project and how you're going about it. Would also be keen to be involved in some capacity, hmu!

I was just testing the app and AI chat + building works locally, but when I deployed to Railway with a Postgres DB the AI tool no longer works. Gives this error:

Image

Steps to reproduce

  1. Deploy via Railway (Postgres version)
  2. Set Antrophic API key
  3. Select Sonnet 4.6 model
  4. Enter prompt
  5. Send
  6. Get error

Expected behavior

The AI acts on the prompt and doesn't error

Actual behavior

The AI call produces an error:

Image

Version or commit

No response

Deployment mode

Railway

Logs or screenshots

Anthropic error (400): messages.0: user messages must have non-empty content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions