futurewei-cloud / alcor

Alcor: Cloud native SDN platform powered by Kubernetes and Istio
MIT License
32 stars 33 forks source link

API GW Dependencies Upgrade Issue #473

Open xieus opened 3 years ago

xieus commented 3 years ago

In PR #471, we tried to upgrade Spring Boot and Cloud GW dependencies to latest but hit the UnsupportedMediaTypeException issue on VPC LIST API.

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.5.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Horton.SR9</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

API GW Logs

2020-11-11 15:58:19.839 DEBUG 1 --- [or-http-epoll-3] a.w.r.e.AbstractErrorWebExceptionHandler : [92f60bf3-7] Resolved [UnsupportedMediaTypeException: Content type 'application/json;charset=ISO-8859-1' not supported for bodyType=com.futurewei.alcor.web.entity.vpc.NetworksWebJson] for HTTP GET /v2.0/networks
2020-11-11 15:58:19.841 ERROR 1 --- [or-http-epoll-3] a.w.r.e.AbstractErrorWebExceptionHandler : [92f60bf3-7]  500 Server Error for HTTP GET "/v2.0/networks?id=0a1a6d10-4b77-4521-b0f2-59d90b6f5faf"