Getting [ERROR]: Connection error.
jaustinuf
HOBBYOP

5 months ago

On my second deployment, I'm getting: '[ERROR]: Connection error.' when I enter a query for the MCP client (Anthropic LLM).

This deployment is very much like the first (which runs correctly):

  • same Anthropic key (entered in Production --> settings, found in Service --> Variables

  • same requirements.txt

  • very similar scripts and code

How do I debug this?

$10 Bounty

10 Replies

Railway
BOT

5 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


5 months ago

Are there two services? Are these in two different projects?


jaustinuf
HOBBYOP

5 months ago

Yes, two projects, each with one service:

  • 'medical_project_deploy' in 'inspiring-serenity': runs correctly

  • 'drug_finder_deploy' in 'respectful-balance': returns the error

I'm assuming this error indicates a problem in connecting to Anthropic, so I just:

  • copied the Anthropic key from the project that works to the one that doesn't,

  • deleted and reselected the key in the service variables tab.

No luck, same error. Do you have suggestions for troubleshooting this problem?


jaustinuf
HOBBYOP

5 months ago

Now that I'm more familiar with Railway's project/service structure: should I have deployed this second app as a second service in the project with the first service?


jaustinuf

Now that I'm more familiar with Railway's project/service structure: should I have deployed this second app as a second service in the project with the first service?

5 months ago

Yes. They will never connect cross project.


jaustinuf
HOBBYOP

5 months ago

Although the second app is an enhanced version of the first, they are totally independent and don't connect to each other. I'm assuming the 'Connection Error' is with Anthropic, to verify the Anthropic key.


jaustinuf
HOBBYOP

5 months ago

This support request has been posted for 5 days, with no useful response. Is this normal support response for Railway ... at least at the 'Hobby' plan level? Would support be better on a higher-priced plans?


jaustinuf

This support request has been posted for 5 days, with no useful response. Is this normal support response for Railway ... at least at the 'Hobby' plan level? Would support be better on a higher-priced plans?

5 months ago

For non platform issues- yes. This is an issue with your program. Railway is not responsible for that.


jaustinuf
HOBBYOP

5 months ago

How did you determine this is a "non platform issue"? A start at troubleshooting would be to identify 'who/what' is returning the '[ERROR]: Connection error' error indication.


jaustinuf
HOBBYOP

5 months ago

  • Deleted service/project returning error.

  • Built second service in existing project from same (unchanged) GitHub repo.

  • App works as expected.

Does anyone here think this was a "non platform issue"? This is not a 'solution', this is a work-around ...


Loading...