moleculerjs / moleculer-web

:earth_africa: Official API Gateway service for Moleculer framework
http://moleculer.services/docs/moleculer-web.html
MIT License
295 stars 118 forks source link

Undefined `actions` property in `/api/~node/services?withActions=true` causes empty REST API page #331

Open ggondim opened 1 year ago

ggondim commented 1 year ago

I have had this bug with the "REST API" page for some time.

Symptoms

image

image

image

Debugging

Upon delving deep into the problem, I discovered:

image image

image image

image image

Help

ggondim commented 1 year ago

I discovered that mergeParams: false was the cause of this issue.

Developers should continue to use this configuration without experiencing side effects in internal services.

I implemented a minor workaround in src/index.js:L455 to force parameter merging for internal services, and it resolved the issue.

image