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 error in BaseClient.Perform #922

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Check error in BaseClient.Perform #922

merged 2 commits into from
Nov 27, 2024

Conversation

arp242
Copy link
Contributor

@arp242 arp242 commented Nov 20, 2024

The http.Resonse will be nil on errors, so return early.

Fixes #913

The http.Resonse will be nil on errors, so return early.

Fixes elastic#913
@Anaethelion
Copy link
Contributor

Thank you!
I'll remove the import reordering to be able to backport that all the way to 7.17.

@Anaethelion Anaethelion merged commit 01fe1fa into elastic:main Nov 27, 2024
3 checks passed
@arp242 arp242 deleted the errc branch November 27, 2024 13:10
Anaethelion added a commit that referenced this pull request Nov 27, 2024
* Check error in BaseClient.Perform

The http.Resonse will be nil on errors, so return early.

Fixes #913

* revert reordering of imports

---------

Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
Anaethelion added a commit that referenced this pull request Nov 27, 2024
* Check error in BaseClient.Perform

The http.Resonse will be nil on errors, so return early.

Fixes #913

* revert reordering of imports

---------

Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
Anaethelion added a commit that referenced this pull request Nov 27, 2024
* Check error in BaseClient.Perform

The http.Resonse will be nil on errors, so return early.

Fixes #913

* revert reordering of imports

---------

Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
Anaethelion added a commit that referenced this pull request Nov 27, 2024
Anaethelion added a commit that referenced this pull request Nov 27, 2024
* Check error in BaseClient.Perform

The http.Resonse will be nil on errors, so return early.

Fixes #913

* revert reordering of imports

---------

Co-authored-by: Laurent Saint-Félix <laurent.saintfelix@elastic.co>
Anaethelion added a commit that referenced this pull request Nov 27, 2024
Anaethelion added a commit that referenced this pull request Nov 27, 2024
* Check error in BaseClient.Perform

The http.Resonse will be nil on errors, so return early.

Fixes #913

* revert reordering of imports

---------

Co-authored-by: Martin Tournoij <martin@arp242.net>
Anaethelion added a commit that referenced this pull request Nov 27, 2024
* Check error in BaseClient.Perform

The http.Resonse will be nil on errors, so return early.

Fixes #913

* revert reordering of imports

---------

Co-authored-by: Martin Tournoij <martin@arp242.net>
Anaethelion added a commit that referenced this pull request Nov 27, 2024
* Check error in BaseClient.Perform

The http.Resonse will be nil on errors, so return early.

Fixes #913

* revert reordering of imports

---------

Co-authored-by: Martin Tournoij <martin@arp242.net>
Anaethelion added a commit that referenced this pull request Nov 27, 2024
* Check error in BaseClient.Perform

The http.Resonse will be nil on errors, so return early.

Fixes #913

* revert reordering of imports

---------

Co-authored-by: Martin Tournoij <martin@arp242.net>
@arp242
Copy link
Contributor Author

arp242 commented Nov 27, 2024

I'll remove the import reordering to be able to backport that all the way to 7.17.

Cheers, I just did that because goimports automatically changed it, and figured I might as well get it right.

By the way, would you mind also talking a look at my other patches (#905 and #906)? I need to use a fork because of that now 😅

I think #905 should be pretty straight-forward? #906 might need a bit more of a careful look(?) It's been working well for me in the last month, and without it a lot of times you don't get an actual meaningful error if you do something wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid memory address or nil pointer dereference on v7@v7.17.7/elasticsearch.go:307
2 participants