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

Word - Not able to create documents. #1792

Open
sangee2004 opened this issue Feb 20, 2025 · 0 comments
Open

Word - Not able to create documents. #1792

sangee2004 opened this issue Feb 20, 2025 · 0 comments
Assignees
Labels
bug Something isn't working tools

Comments

@sangee2004
Copy link

sangee2004 commented Feb 20, 2025

Tool version - github.com/obot-platform/tools:937093c

Steps to reproduce the problem:

  1. Create an agent and add Word tool.
  2. Chat with the agent and ask to create a document.

This results in the following error message presented to the user:

Image

Tool call shows following error:

ERROR: got (exit status 1) while running tool, OUTPUT: 2025/02/19 21:57:21 INFO Creating new Word Document in OneDrive name=mytestdoc.docx
2025/02/19 21:57:21 INFO Used soffice to convert markdown to docx input=/tmp/word-convsource-1562886989.md output=/tmp/word-convsource-1562886989.md.docx
2025/02/19 21:57:21 INFO pandoc/soffice command output stdout="convert /tmp/word-convsource-1562886989.md.html as a Writer/Web document -> /tmp/word-convsource-1562886989.md.docx using filter : Office Open XML Text\n" stderr="javaldx: Could not find a Java Runtime Environment!\nWarning: failed to read path from javaldx\n"
2025/02/19 21:57:22 INFO Getting item by path path=. drive=b!r706qYMgpUmTWY4cxWAlIOqGkBSFo1dGjKWQBNvCIZPbcpy1cYeYTLiIDLv4NMxR url=https://graph.microsoft.com/v1.0/drives/b%21r706qYMgpUmTWY4cxWAlIOqGkBSFo1dGjKWQBNvCIZPbcpy1cYeYTLiIDLv4NMxR/root:/.
failed to ensure folder exists: failed to get item by path ".": The server returned an unexpected status code and no error factory is registered for this code: 400

Debug logs - calls - 2025-02-20T034108.606.json

Similar error is also seen when trying to update contents of an existing document.

Debug logs from attempting to update an existing document - calls - 2025-02-20T131702.190.json

Note - Following are the api permissions I have
Image

Expected Behavior:
Should be able to create new docs and update contents of existing docs successfully.

@sangee2004 sangee2004 added bug Something isn't working tools labels Feb 20, 2025
@iwilltry42 iwilltry42 self-assigned this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tools
Projects
None yet
Development

No branches or pull requests

2 participants