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

Check if root cause exists in $error['error'] #104

Closed
wants to merge 1 commit into from

Conversation

wblessen
Copy link

Description

Opensearch failed with missing array key root_cause in Connection.php

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Collaborator

@shyim shyim left a comment

Choose a reason for hiding this comment

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

Could you add a small unit test?

@wblessen
Copy link
Author

wblessen commented Nov 21, 2022

Could you add a small unit test?

@shyim

Yes, I can try.

Do you have a draft and a suggestion, which folder to use?

@shyim
Copy link
Collaborator

shyim commented Dec 2, 2022

Hey @wblessen ,

sorry for the late response.

You can add the test case to the existing file: https://github.com/opensearch-project/opensearch-php/blob/main/tests/Connections/ConnectionTest.php

Also don't forget to sign your commits with --signoff to pass the DCO check. Let me know if I can help you! 💙

@bbarani
Copy link
Member

bbarani commented Sep 25, 2023

Anyone looking in to this PR? @shyim @wblessen

@drunken-monkey
Copy link
Contributor

I created my own PR #168 for this, since there doesn’t seem to be any movement on this one.

@dblock
Copy link
Member

dblock commented Apr 19, 2024

Merged via #168.

@dblock dblock closed this Apr 19, 2024
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.

5 participants