question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when generating parameters by reference

See original GitHub issue

When specifying a global parameter in documentation.parameters and referencing to this parameter in the request ('$ref': '#/parameters/someParam') specification an error occurs when generating the client.

(node:93171) UnhandledPromiseRejectionWarning: Error: Request failed with status code 500
    at createError (/path/to/project/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/path/to/project/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/path/to/project/node_modules/axios/lib/adapters/http.js:237:11)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1183:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
(node:93171) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:93171) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.

Hash: 7532bd6d1996f82068cf
Version: webpack 4.35.0
Time: 31ms
Built at: 10/16/2019 11:54:09 AM

ERROR in Entry module not found: Error: Can't resolve './our-project.js' in '/path/to/project/bin/build'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:26 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
Manweillcommented, Oct 25, 2019

Currently, you can define the parameter in definition. And then, welcome PR or wait for me of next version .

0reactions
Manweillcommented, Apr 1, 2022

@mikaelnilsson77 it’s great.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PHP error: "Cannot pass parameter 2 by reference"
The error means that the 2nd argument is expected to be a reference to a variable. Since you are not handing a variable...
Read more >
ReferenceError - JavaScript - MDN Web Docs
The ReferenceError object represents an error when a variable that doesn't exist (or hasn't yet been initialized) in the current scope is ...
Read more >
ref keyword - C# Reference - Microsoft Learn
A compiler error occurs if the only difference between two members of a type is that one of them has a ref parameter...
Read more >
Passing by Reference - Manual - PHP
Passing by Reference ¶. You can pass a variable by reference to a function so the function can modify the variable. The syntax...
Read more >
Parameterize Instances of a Reusable Referenced Model
In the top model, you can configure the diagnostic configuration parameter No explicit final value for model arguments to generate an error or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found