You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have had this bug with the "REST API" page for some time.
Symptoms
The "REST API" page is blank:
Services and actions are accessible via Moleculer Runner:
Manually calling /api/~node/services?withActions=true does not return any actions:
Debugging
Upon delving deep into the problem, I discovered:
An uncaught error in view's getServiceActions(svc.actions) due to an undefined actions property:
Applying a console.log to the file moleculer/src/internals.js:L61 shows the withActions parameter as false, even when it's explicitly passed in the request:
Additionally, applying a console.log to the file moleculer/src/registry/service-catalog.js:L117 shows an unrecognized parameter value, as L119 is never reached:
Help
Is this correct? Am I missing something?
Should there be improved error handling?
How can I assist in rectifying this if it's indeed an error?
The text was updated successfully, but these errors were encountered:
ggondim
added a commit
to ggondim/moleculer-web
that referenced
this issue
Aug 28, 2023
I have had this bug with the "REST API" page for some time.
Symptoms
/api/~node/services?withActions=true
does not return any actions:Debugging
Upon delving deep into the problem, I discovered:
getServiceActions(svc.actions)
due to an undefinedactions
property:console.log
to the filemoleculer/src/internals.js:L61
shows thewithActions
parameter as false, even when it's explicitly passed in the request:console.log
to the filemoleculer/src/registry/service-catalog.js:L117
shows an unrecognized parameter value, as L119 is never reached:Help
The text was updated successfully, but these errors were encountered: