You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dmitry (Jira)" <ji...@apache.org> on 2024/10/17 07:13:00 UTC

[jira] [Created] (CXF-9069) bad url in swagger servers

Dmitry created CXF-9069:
---------------------------

             Summary: bad url in swagger servers
                 Key: CXF-9069
                 URL: https://issues.apache.org/jira/browse/CXF-9069
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 4.0.5
            Reporter: Dmitry
         Attachments: image-2024-10-17-10-11-38-527.png, image-2024-10-17-10-11-59-161.png

Good afternoon!
I use cxf-rt-rs-service-description-openapi-v3
and cxf-spring-boot-autoconfigure

When I run my app localy - server in swagger its ["http://127.0.0.1:8081"|http://127.0.0.1:18081/]
and its work good.
but when I run it in docker - server become "http://upstream-api" instead of my domen name and all endpoints in swagger are dont work ("TypeError: NetworkError when attempting to fetch resource.")

This problem was not there when I used cxf-rt-rs-service-description-swagger.

What I do wrong? I should change something in app configuration or in container?
Thank for your time!

!image-2024-10-17-10-11-59-161.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)