jenkinsci / jenkinsci/java-client-api

Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: [B@77384bb4; line: 1, column: 2]

Open
#327 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
913
Forks
466
PR merge metrics
No merged PRs in 30d

Description

Please i have this problems when at this line

JenkinsServer jenkins = new JenkinsServer(new URI( "");
// this is the line wich make this problem
Map<String, Job> jobs = jenkins.getJobs();

    JobWithDetails job = jobs.get("pgw").details();
    System.out.println(job.getName());
    System.out.println(jobs);

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the jenkins.getJobs() call and inspect the URI passed to JenkinsServer, then determine what response is being parsed when the unexpected '<' character is reported. Done means the jobs request receives the expected valid value and the example can retrieve the "pgw" job details without this parsing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.