OpenBMB / OpenBMB/ChatDev

Getting socket hang up issue

Open
#441 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
34.3k
Forks
4.3k
PR merge metrics
No merged PRs in 30d

Description

When I try with multiple phases, I am getting socket hang up error on Postman. Actually I have created app,py file on top of run.py and using Flask like

On each phase I am giving responsibility to create multiple files based on my requirement.

app = Flask(__name__)

@app.route('/generate_project', methods=['POST'])
def run_endpoint():

    try:
        # Only pass the required parameters and use defaults for the rest
        result = run_chat_chain(app_name=app_name, other_detail: details
        )
        return jsonify(result), 200
        # return result, 200
    except Exception as e:
        return jsonify({"status": "error", "message": str(e)}), 500

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with app.py and run.py, then reproduce the multiple-phase POST request to /generate_project from Postman. Trace the run_chat_chain call and capture where the socket hang up occurs; done means the failure is reproducible with a clear cause and the endpoint behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, postman, python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.