Skip to content

[Bug]: HTTPException: 500: Failed to convert presentation to PPTX model #485

@alexbevz

Description

@alexbevz

Bug type

Generation bug (slides/content incorrect)

Summary

I use presenton MCP in openwebui (v0.6.33). Don't generate presentation.
Comfyui works ok.
Custom LLM works ok.
I have only trouble with MCP.
Maybe, do i need to try openapi?

My settings:
Image

openwebui tool logs:

[{'type': 'text', 'text': "Error calling tool 'generate_presentation': HTTP error 500: Internal Server Error - {'detail': 'Presentation generation failed'}", 'annotations': None, 'meta': None}]

docker logs:

presenton  | INFO:     127.0.0.1:43720 - "POST /api/v1/ppt/openai/models/available HTTP/1.0" 422 Unprocessable Entity
presenton  | i { detail: 'Presentation slides not found' }
presenton  | Traceback (most recent call last):
presenton  |   File "/app/servers/fastapi/api/v1/ppt/endpoints/presentation.py", line 811, in generate_presentation_sync
presenton  |     return await generate_presentation_handler(
presenton  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
presenton  |   File "/app/servers/fastapi/api/v1/ppt/endpoints/presentation.py", line 801, in generate_presentation_handler
presenton  |     raise e
presenton  |   File "/app/servers/fastapi/api/v1/ppt/endpoints/presentation.py", line 750, in generate_presentation_handler
presenton  |     presentation_and_path = await export_presentation(
presenton  |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
presenton  |   File "/app/servers/fastapi/utils/export_utils.py", line 30, in export_presentation
presenton  |     raise HTTPException(
presenton  | fastapi.exceptions.HTTPException: 500: Failed to convert presentation to PPTX model
presenton  | Failed to get PPTX model: {"detail":"Presentation slides not found"}
presenton  | Running task: <Task pending name='Task-294' coro=<ConcurrentService.run_task.<locals>.wrapper() running at /app/servers/fastapi/services/concurrent_service.py:17>> - executing send_webhook
presenton  | INFO:     10.20.211.2:0 - "POST /api/v1/ppt/presentation/generate HTTP/1.1" 500 Internal Server Error

Steps to reproduce

  1. Add extra connection tool in openwebui by MCP
  2. Add new tool to model in workspace
  3. Send message "Generate presentation about detail A.S. Pushkin in russian" to model
  4. Raise error in presenton

Expected behavior

The presentation should export successfully as a PPTX file.

Actual behavior

openwebui tool logs:

[{'type': 'text', 'text': "Error calling tool 'generate_presentation': HTTP error 500: Internal Server Error - {'detail': 'Presentation generation failed'}", 'annotations': None, 'meta': None}]

docker logs:

presenton  | INFO:     127.0.0.1:43720 - "POST /api/v1/ppt/openai/models/available HTTP/1.0" 422 Unprocessable Entity
presenton  | i { detail: 'Presentation slides not found' }
presenton  | Traceback (most recent call last):
presenton  |   File "/app/servers/fastapi/api/v1/ppt/endpoints/presentation.py", line 811, in generate_presentation_sync
presenton  |     return await generate_presentation_handler(
presenton  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
presenton  |   File "/app/servers/fastapi/api/v1/ppt/endpoints/presentation.py", line 801, in generate_presentation_handler
presenton  |     raise e
presenton  |   File "/app/servers/fastapi/api/v1/ppt/endpoints/presentation.py", line 750, in generate_presentation_handler
presenton  |     presentation_and_path = await export_presentation(
presenton  |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
presenton  |   File "/app/servers/fastapi/utils/export_utils.py", line 30, in export_presentation
presenton  |     raise HTTPException(
presenton  | fastapi.exceptions.HTTPException: 500: Failed to convert presentation to PPTX model
presenton  | Failed to get PPTX model: {"detail":"Presentation slides not found"}
presenton  | Running task: <Task pending name='Task-294' coro=<ConcurrentService.run_task.<locals>.wrapper() running at /app/servers/fastapi/services/concurrent_service.py:17>> - executing send_webhook
presenton  | INFO:     10.20.211.2:0 - "POST /api/v1/ppt/presentation/generate HTTP/1.1" 500 Internal Server Error

Presenton version

0.6.0-beta

Operating system

Ubuntu 24.04

How are you running Presenton?

Docker

LLM provider

Custom OpenAI-compatible API

Logs / screenshots

Impact

I can't use MCP.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    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