Skip to content

Crash Report; #2261

Open
Open
@hydenp

Description

@hydenp

Error: Request failed with status 200:

Stack Trace:

Error: Request failed with status 200: 
    at To (/Users/**/frontend/node_modules/@hey-api/openapi-ts/dist/index.cjs:38:124484)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async z$ (/Users/**/frontend/node_modules/@hey-api/openapi-ts/dist/index.cjs:1338:4634)
    at async start (/Users/**/frontend/node_modules/@hey-api/openapi-ts/bin/index.cjs:131:21)

I'm getting this issue when trying to generate a fetch client as follows

export default defineConfig({
  input: "http://localhost:8000/openapi.json",
  output: {
    path: "hey-api",
    client: "fetch",
  },
  services: { asClass: true },
  types: { enums: "typescript" },
});

and this command

npm run openapi-ts

Not sure what the issue is. This is being built off a FastAPI spec, which does have some naming issues and is somewhat incomplete at this point as we are still in process of migrating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Something isn't workingneeds info ⏳Further information is required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions