Skip to content

[BUG] API status error from OpenAI API: Error code: 400 - Invalid schema for function 'fetch_all_orders'Β #43

@theboringhumane

Description

@theboringhumane

πŸ› Bug Description

Error received from OpenAI API integration via Azure deployment when calling the function 'fetch_all_orders'. The error message returned is:

API status error from OpenAI API: Error code: 400 - {'error': {'message': '{"error":{"message":"Invalid schema for function 'fetch_all_orders': In context=('properties', 'expand'), array schema missing items.","code":"invalid_function_parameters"}}\n', 'type': 'error'}}

πŸ” Steps To Reproduce

  1. Use OpenAI API with Azure deployment for the function 'fetch_all_orders'.
  2. Observe the returned error message.

πŸ€” Expected Behavior

The function call should succeed if parameters are valid and the schema is correct.

πŸ“± Environment

  • LLM Deployment: OpenAI Azure
  • Function: fetch_all_orders, or even any other tool which i call.
  • Docker version of Razorpay MCP server

πŸ“ Additional Context

  • I have a deployment URL if needed.

More context can be provided if needed.

πŸ“Š Logs/Screenshots

Error shown above. Please advise on how to resolve this or if schema update is required.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions