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

Generate step hangs #31

Open
br-follow opened this issue Oct 14, 2021 · 2 comments
Open

Generate step hangs #31

br-follow opened this issue Oct 14, 2021 · 2 comments

Comments

@br-follow
Copy link

After running the command on macos

./scripts/generate.sh \
  -i https://raw.githubusercontent.com/alpacahq/bkdocs/master/assets/openapi.yaml \
  -p client \
  -o generated \
  -n api.services.alpaca.broker.client

I get the output

Storing intermediate outputs in /Users/brapaport/udon/fastapi_client/tmp.BUD4aF2bG; it will be removed if generation is successful
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

But it appears to hang forever.

@aniljava
Copy link

M1 Mac, you might need to edit scripts/util/openapi-generate.sh to account for ARM running X86 docker image. I know this issue from something else, dont have M1 to test myself.

@maximiliancw
Copy link

@br-allstreet I encountered the same error and found that changing the image tage to latest in scripts/util/openapi-generate.sh fixes it. I think Docker should pick the correct platform image automatically if available, so my guess is that some problem in openapi-generator-cli was fixed in between versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants