swagger-api / swagger-api/swagger-codegen

HTTP ERROR 500

Open
#8,793 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I used to generate angular client code using the endpoint http://generator.swagger.io/api/gen/clients/typescript-angular. Now its not possible any more (with the same swagger declaration file). POST request returns code and link as before. But requesting the link returns http error 500 with the following error message:

Problem accessing /api/gen/download/48396db7-3063-4ae2-9668-0581b658db34.
Reason: Request failed.

Swagger-codegen version

2.0

Swagger declaration file content or url

ims-config-api.zip

Command line used for generation

POST to http://generator.swagger.io/api/gen/clients/typescript-angular. Swagger declaration file included in body.
GET to url of link returned by POST message

Steps to reproduce

see above (just POST with swagger declaration file as payload, and GET to the link url)

Related issues/PRs
Suggest a fix/enhancement

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with swagger-codegen 2.0 by POSTing the attached ims-config-api.zip to the TypeScript Angular client endpoint, then requesting the returned download URL. Trace the generator service handling for that request; done means the generated client can be downloaded instead of returning HTTP 500.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.