Base solution for your next web application

Activities of "nperdikis"

Hi,

As I noticed, it was one of our merged code which was causing the issue. It seems like nswag doesn't support JObject as input paramter now. Hence I was facing this issue. Anyways, thank you for your quick response.

Executing file '..\src\EMA.Web.Host\nswag\service.config.nswag' with variables ''...
Stack overflow.
child_process.js:656
    throw err;
    ^

Error: Command failed: dotnet "..\src\EMA.Web.Host\node_modules\nswag\bin/binaries/NetCore31/dotnet-nswag.dll" run
    at checkExecSyncError (child_process.js:616:11)
    at Object.execSync (child_process.js:653:13)
    at c.exec (C:\Nithin\Projects\Devensoft\NextGen\main-trunk\src\EMA.Web.Host\node_modules\nswag\bin\nswag.js:69:11)
    at ChildProcess.exithandler (child_process.js:285:7)
    at ChildProcess.emit (events.js:189:13)
    at maybeClose (internal/child_process.js:970:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

Kindly note that I have manually changed defaultCoreVersion in nswag.js to "31" as I wanted to check. Even then it was throwing error

Can this endpoint return json data?

yes

Hi,

I am using .NET Core 3.1 & Angular 8. I am facing an issue when running refresh.bat. It's throwing me below mentioned error Executing file '..\EMA.Web.Host\nswag\service.config.nswag' with variables ''... Stack overflow. child_process.js:656 throw err; ^ As I noticed, the nswag version is 13.0.6 which does not support .NET Core 3.1 I believe. Even though I updated nswag ver to latest, its still throwing me the same error. I tried to modify few values in service.config.nswag to support core 3.1 but even then its not generating proxy file.

Also, I have changed port number (22742) to just verify but no luck. When I run 'http://localhost:22742/swagger/v1/swagger.json', I am getting updated json.

Kindly let me kow if I have missed any configuration or doing anything wrong

Showing 1 to 3 of 3 entries