Skip to content

[Bug]: Generating SDK client does not work on linux #232

Closed
@MartinDawson

Description

@MartinDawson

Contact Details

No response

What happened?

Following the docs here: https://github.com/Green-Software-Foundation/carbon-aware-sdk/blob/dev/docs/quickstart.md

./docker-generate-clients.sh host.docker.internal:5073
rm: cannot remove './javascript': No such file or directory
[main] ERROR io.swagger.v3.parser.util.RemoteUrl - unable to read
java.net.UnknownHostException: host.docker.internal
at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.base/java.net.Socket.connect(Unknown Source)
at java.base/java.net.Socket.connect(Unknown Source)
at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
at java.base/sun.net.www.http.HttpClient.(Unknown Source)
at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClie

Probably something to do with this? https://stackoverflow.com/questions/48546124/what-is-linux-equivalent-of-host-docker-internal

client

WebAPI (Default)

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions