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

CLI repo add: invalid character '<' looking for beginning of value #2088

Closed
5 tasks done
runephilosof-karnovgroup opened this issue Aug 2, 2023 · 2 comments · Fixed by #2091
Closed
5 tasks done
Labels
bug Something isn't working

Comments

@runephilosof-karnovgroup
Copy link
Contributor

Component

cli

Describe the bug

user@fedora:~ $ docker run -e WOODPECKER_SERVER -e WOODPECKER_TOKEN woodpeckerci/woodpecker-cli:latest-alpine -- repo add 528940444
8:08AM FTL error running cli error="invalid character '<' looking for beginning of value"

System Info

Server
{"source":"https://github.com/woodpecker-ci/woodpecker","version":"1.0.0"}

Client
REPOSITORY                    TAG             IMAGE ID       CREATED      SIZE
woodpeckerci/woodpecker-cli   latest-alpine   0eb7866dd2b9   3 days ago   48.9MB

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
  • Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.
@runephilosof-karnovgroup runephilosof-karnovgroup added the bug Something isn't working label Aug 2, 2023
@runephilosof-karnovgroup
Copy link
Contributor Author

Maybe the request the go client library is making is wrong.
It is different from what the javascript UI is making.

Debug log from the server showing the two different requests

2023-08-02 10:08:27.000 CEST
{ip: 10.100.32.116, latency: 3.976252, level: debug, method: POST, path: /api/repos/528940444, status: 200, user-agent: Go-http-client/1.1}
2023-08-02 10:17:47.000 CEST
{ip: 10.100.32.116, latency: 1671.072989, level: debug, method: POST, path: /api/repos, status: 200, user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36}

@runephilosof-karnovgroup
Copy link
Contributor Author

The UI is sending a POST request to https://woodpecker-host/api/repos?forge_remote_id=528940444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant