Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Internal server Error while calling answer API #1340

Open
2 tasks done
mousumi2002 opened this issue Oct 18, 2024 · 5 comments
Open
2 tasks done

🐛 Bug Report: Internal server Error while calling answer API #1340

mousumi2002 opened this issue Oct 18, 2024 · 5 comments

Comments

@mousumi2002
Copy link
Contributor

📜 Description

On calling the /answer API I get Internal server error. I am using the prod url: https://gptcloud.arc53.com/api/answer

Here is the JSON body I am passing:

{
  "question": "Help me to setup VSCode",
  "history": [],
  "conversation_id": null,
  "prompt_id": "default",
  "chunks": 2,
  "token_limit": 0,
  "api_key": "hidden",
  "isNoneDoc": true
}

Here is the response:

{
    "error": "Internal Server Error",
    "message": "PlanExecutor error during aggregation :: caused by :: \"filter.source_id.$eq\" must be a boolean, objectId, number, string, date, uuid, or null, full error: {'ok': 0.0, 'errmsg': 'PlanExecutor error during aggregation :: caused by :: \"filter.source_id.$eq\" must be a boolean, objectId, number, string, date, uuid, or null', 'code': 8, 'codeName': 'UnknownError', '$clusterTime': {'clusterTime': Timestamp(1729252751, 1), 'signature': {'hash': b\"i\\xa2w\\x95\\x11=\\x82\\x12.C'\\xa3q{\\xa49je\\xeb8\", 'keyId': 7384906587107753985}}, 'operationTime': Timestamp(1729252751, 1)}"
}

👟 Reproduction steps

Hit the answer API using Postman or any other client

👍 Expected behavior

It should generate answer

👎 Actual Behavior with Screenshots

Internal Server Error

💻 Operating system

MacOS

What browsers are you seeing the problem on?

Something else

🤖 What development environment are you experiencing this bug on?

Docker

🔒 Did you set the correct environment variables in the right path? List the environment variable names (not values please!)

No response

📃 Provide any additional context for the Bug.

No response

📖 Relevant log output

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🔗 Are you willing to submit PR?

None

🧑‍⚖️ Code of Conduct

  • I agree to follow this project's Code of Conduct
@mousumi2002
Copy link
Contributor Author

@dartpain Could you help me if I am missing out on anything here that will help me call the API properly?

@ManishMadan2882
Copy link
Collaborator

ManishMadan2882 commented Oct 18, 2024

Works on my postman, by the way I generated an api_key to substitute in the request body from https://app.docsgpt.cloud/settings > Chatbots

@mousumi2002
Copy link
Contributor Author

@ManishMadan2882 had done the same myself, hid the api key here so that it doesn't get exposed. Will try generating another one and check.

@mousumi2002
Copy link
Contributor Author

mousumi2002 commented Oct 18, 2024

@ManishMadan2882 still not working for me. Can I share a test api key from my side with you somewhere so you may take a look. I had set all fields as default in the chatbot section of the website.

@ManishMadan2882
Copy link
Collaborator

Hi, you can share on discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants