Skip to content

Mapping error on empty response from client.helpers().featureManagement().featureToggle #76

@alansferreira

Description

@alansferreira

Hi there, first then all, this library is awesome, but i'm receiving an exception when trying to disable some features of my projects like ARTIFACTS and BOARDS, maybe i'm doing something wrong.

Can you help me?

Steps to reproduce

my pom.xml

<dependency>
	<groupId>io.github.hkarthik7</groupId>
	<artifactId>azd</artifactId>
	<version>6.0.0</version>
</dependency>
    var organizationUrl = Instance.BASE_INSTANCE.append("my-org");
    var pat = new PersonalAccessTokenCredential(organizationUrl, "my-project", "my-pat");
    
    var client = AzDService.builder().authentication(pat).buildClient();
    try {
      client.helpers().featureManagement().featureToggle(projectId, FeatureManagement.BOARDS, false);
    } catch (Exception e) {
      throw e;
    }

Expected behavior

just not error 

Actual behavior

throws Exception 

ApiResponseParsingException: No content to map due to end-of-input
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions