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

Error: HttpError: tree.path contains a malformed path component #24

Open
nathan815 opened this issue Jan 3, 2022 · 2 comments
Open

Comments

@nathan815
Copy link

When I add a PlantUML diagram to a markdown file the action throws the following error:

Error: HttpError: tree.path contains a malformed path component

image

Seems to be a GitHub API error. It works perfectly fine for .puml files. Here is my workflow:

name: Generate PlantUML
on: push
jobs:
  generate_plantuml:
    runs-on: ubuntu-latest
    name: plantuml
    steps:
    - name: checkout
      uses: actions/checkout@v1
      with:
        fetch-depth: 1
    - name: plantuml
      id: plantuml
      uses: grassedge/[email protected]
      with:
        message: "Render PlantUML files"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Also tried with path: . set; same error.

The .md file in question:

# Test PlantUML Diagram

Sequence diagram:

` ` `plantuml:test-md-diagram
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
` ` `

![](./test-md-diagram.svg)

(rendered diagram should appear above)
@MarkOSullivan94
Copy link

Also getting the same issue

@ZeroOnet
Copy link

ZeroOnet commented Dec 7, 2023

When I add a PlantUML diagram to a markdown file the action throws the following error:

Error: HttpError: tree.path contains a malformed path component

image

Seems to be a GitHub API error. It works perfectly fine for .puml files. Here is my workflow:

name: Generate PlantUML
on: push
jobs:
  generate_plantuml:
    runs-on: ubuntu-latest
    name: plantuml
    steps:
    - name: checkout
      uses: actions/checkout@v1
      with:
        fetch-depth: 1
    - name: plantuml
      id: plantuml
      uses: grassedge/[email protected]
      with:
        message: "Render PlantUML files"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Also tried with path: . set; same error.

The .md file in question:

# Test PlantUML Diagram

Sequence diagram:

` ` `plantuml:test-md-diagram
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
` ` `

![](./test-md-diagram.svg)

(rendered diagram should appear above)

Empty folder cannot be tracked by git. I add .gitkeep file to path folder and then resolved.

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

3 participants