OpenAPITools / OpenAPITools/openapi-generator
[BUG] [Typescript Axios] pingRaw is not a function
Open
Nobody has claimed this yet.
Issue: Bug
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Whe I call a generated function ping it throws an error that says this.pingRaw is not a function
openapi-generator version
6.0.1
The error:
TypeError: this.pingRaw is not a function
at Object.eval (PingApi.js?23ef:49:1)
at Generator.next (<anonymous>)
at eval (PingApi.js?23ef:20:1)
at new Promise (<anonymous>)
at __awaiter (PingApi.js?23ef:16:1)
at Object.ping [as queryFn] (PingApi.js?23ef:48:1)
at Object.fetchFn [as fn] (index.production.js?491d:21:9818)
at d (index.production.js?491d:21:5170)
at eval (index.production.js?491d:21:5510)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the generated TypeScript Axios client and inspect PingApi.js around the ping method shown in the stack trace, including how pingRaw is expected to be exposed. The issue does not include the OpenAPI specification, generator command, or a test location, so those details must be obtained before defining and verifying the fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100