fastapi_client icon indicating copy to clipboard operation
fastapi_client copied to clipboard

Generate step hangs

Open br-follow opened this issue 4 years ago • 2 comments

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.

br-follow avatar Oct 14 '21 15:10 br-follow

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.

aniljava avatar Mar 20 '22 22:03 aniljava

@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.

maximiliancw avatar Mar 24 '22 14:03 maximiliancw