Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
MartinDawson opened this issue Dec 24, 2022 · 4 comments
Closed
1 task done

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

MartinDawson opened this issue Dec 24, 2022 · 4 comments
Labels
bug Something isn't working stale v1.2

Comments

@MartinDawson
Copy link

MartinDawson commented Dec 24, 2022

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
@MartinDawson MartinDawson added the bug Something isn't working label Dec 24, 2022
@Willmish
Copy link
Collaborator

Willmish commented Jan 23, 2023

Hi and thanks for raising the issue @MartinDawson - are you able to share the exact command you have ran?

From what I've seen you are right that accessing host's ports from within a docker container via host.docker.internal is supported only on Mac and Windows. The docs in quickstart.md need to be consolidated with the guide within src/clients directory, or directly refer to it. Can you check if this issue persists if you try following that one instead?

@github-actions
Copy link
Contributor

This issue has not had any activity in 120 days. Please review this issue and ensure it is still relevant. If no more activity is detected on this issue for the next 20 days, it will be closed automatically.

@github-actions github-actions bot added the stale label May 24, 2023
@danuw danuw added the v1.2 label Jun 5, 2023
@github-actions github-actions bot removed the stale label Jun 6, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2023

This issue has not had any activity in 120 days. Please review this issue and ensure it is still relevant. If no more activity is detected on this issue for the next 20 days, it will be closed automatically.

@github-actions github-actions bot added the stale label Oct 4, 2023
@github-actions
Copy link
Contributor

This issue has not had any activity for too long. If you believe this issue has been closed in error, please contact an administrator to re-open, or if absolutly relevant and necessary, create a new issue referencing this one.

@danuw danuw mentioned this issue Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale v1.2
Projects
None yet
Development

No branches or pull requests

3 participants