Skip to content

fix query display response issues #58

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

Merged
merged 3 commits into from
May 12, 2024
Merged

fix query display response issues #58

merged 3 commits into from
May 12, 2024

Conversation

Blankll
Copy link
Member

@Blankll Blankll commented May 12, 2024

fix: query display response issues

display the response when querying a non-exists index
display the response when the response is a non-json payload

Refs: #56

Blankll added 2 commits May 12, 2024 15:45
…ces list

Signed-off-by: seven <zilisheng1996@gmail.com>
Signed-off-by: seven <zilisheng1996@gmail.com>
@Blankll Blankll marked this pull request as ready for review May 12, 2024 08:05
@@ -40,8 +40,13 @@ const fetchApi: { [key: string]: (key: string, val: unknown) => unknown } = {
body: payload ? JSON.parse(payload) : undefined,
agent,
});
console.log('fetchApi fetch result:', result.headers.get('content-type'));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the console.log

if (!newIndex.mapping) {
newIndex.mapping = await client.get(`/${index}/_mapping`, 'format=json');
}
console.log('update active index', newIndex);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

Signed-off-by: seven <zilisheng1996@gmail.com>
@Blankll Blankll merged commit 6d4402a into master May 12, 2024
4 checks passed
@Blankll Blankll deleted the fix/query-issue branch May 12, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant