Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side errors are not displayed anywhere #5

Closed
lonely-lockley opened this issue Jun 21, 2022 · 1 comment · Fixed by #13
Closed

Server side errors are not displayed anywhere #5

lonely-lockley opened this issue Jun 21, 2022 · 1 comment · Fixed by #13
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@lonely-lockley
Copy link
Owner

If a server-side error in Compiler service happens, web application shows only "Request failed with status code 500" message. Extra information needed here.
If we look into a service answer, we can see that it gives extra information about an error:

{
  "message": "Internal Server Error",
  "_links": {
    "self": {
      "href": "/compile",
      "templated": false
    }
  },
  "_embedded": {
    "errors": [
      {
        "message": "Internal Server Error: Unable to compile the source\n[kind=ERROR, line=37, message=variable acl is already defined in class com.github.lonelylockley.archinsight.gen.cp.Container]"
      }
    ]
  }
}

It would be nice to show "message.message" field value to a user.

@lonely-lockley lonely-lockley added the enhancement New feature or request label Jun 21, 2022
@lonely-lockley lonely-lockley added this to the MVP milestone Jun 21, 2022
@lonely-lockley
Copy link
Owner Author

Insight code to reproduce this error:

container cont

service test
    name = Test service

service test
    name = Error service

@imn-d imn-d linked a pull request Jun 23, 2022 that will close this issue
@imn-d imn-d closed this as completed in #13 Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants