sonarwatch / portfolio

SonarWatch portfolio repository
https://sonarwatch.github.io/portfolio/
Mozilla Public License 2.0
52 stars 30 forks source link

API Not Responding in Scallop Plugin #36

Open maulufia opened 2 months ago

maulufia commented 2 months ago

Description There is an issue with the Scallop Plugin where the API call to retrieve information is not working. The API is not responding, and the following error message is returned:

cause: Error: getaddrinfo ENOTFOUND sui.api.scallop.io at node_internal_captureLargerStackTrace (node:internal/errors:563:5) at nodeinternal (node:internal/errors:782:10) at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'sui.api.scallop.io'

Steps to Reproduce Attempt to use the API via the Scallop Plugin to retrieve information. Observe the error message as the API fails to respond.

Expected Behavior The API should respond with the requested information without throwing an error.

Actual Behavior The API does not respond, and the error message provided above is displayed.

Environment Plugin Version: 0.12.46 Node.js Version: v21.0.0 Operating System: Mac OS

Additional Information I believe the issue might be related to the 'addressEndpoint' variable in the 'constants.ts' file of the Scallop Plugin. It seems that the API address assigned to this variable is not functioning. Please take a look into this as well.