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

[Enhance] set server.error.include-message to ALWAYS #9045

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion console-ui/src/globalLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,6 @@ const request = (function(_global) {
const [url, paramsStr] = config.url.split('?');
const params = paramsStr ? paramsStr.split('&') : [];
params.push(`accessToken=${accessToken}`);
params.push('message=true');

return $.ajax(
Object.assign({}, config, {
Expand Down
1 change: 0 additions & 1 deletion console-ui/src/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const request = () => {
if (!params) {
config.params = {};
}
config.params.message = true;
if (!url.includes('auth/users/login')) {
let token = {};
try {
Expand Down
2 changes: 1 addition & 1 deletion console/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
### Default web context path:
server.servlet.contextPath=/nacos
### Include message field
server.error.include-message=ON_PARAM
server.error.include-message=ALWAYS
### Default web server port:

#*************** Network Related Configurations ***************#
Expand Down
4 changes: 2 additions & 2 deletions console/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
<!-- 第三方css结束 -->
<link href="./css/main.css?d55d0acbe80d224a66fe" rel="stylesheet"></head>
<link href="./css/main.css?d06d0b89622baa349ee9" rel="stylesheet"></head>

<body>
<div id="root" style="overflow:hidden"></div>
Expand All @@ -56,6 +56,6 @@
<script src="console-ui/public/js/merge.js"></script>
<script src="console-ui/public/js/loader.js"></script>
<!-- 第三方js结束 -->
<script type="text/javascript" src="./js/main.js?d55d0acbe80d224a66fe"></script></body>
<script type="text/javascript" src="./js/main.js?d06d0b89622baa349ee9"></script></body>

</html>
22 changes: 11 additions & 11 deletions console/src/main/resources/static/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion distribution/conf/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
### Default web context path:
server.servlet.contextPath=/nacos
### Include message field
server.error.include-message=ON_PARAM
server.error.include-message=ALWAYS
### Default web server port:
server.port=8848

Expand Down
2 changes: 1 addition & 1 deletion distribution/conf/application.properties.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
### Default web context path:
server.servlet.contextPath=/nacos
### Include message field
server.error.include-message=ON_PARAM
server.error.include-message=ALWAYS
### Default web server port:
server.port=8848

Expand Down