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

fix: log final writer error instead of handling #1564

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

hf
Copy link
Contributor

@hf hf commented Apr 30, 2024

If writing to the ResponseWriter fails, then there's no point in trying to handle the error recursively and write again. Just log with a warning.

Should deal with some endless-recursion edge cases.

@hf hf requested a review from a team as a code owner April 30, 2024 11:54
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8894279595

Details

  • 0 of 8 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 65.732%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/api/errors.go 0 8 0.0%
Totals Coverage Status
Change from base Build 8877376633: 0.0%
Covered Lines: 8208
Relevant Lines: 12487

💛 - Coveralls

@hf hf merged commit 170bd66 into master Apr 30, 2024
3 checks passed
@hf hf deleted the hf/log-json-error-response branch April 30, 2024 12:11
hf pushed a commit that referenced this pull request May 6, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.151.0](v2.150.1...v2.151.0)
(2024-05-06)


### Features

* refactor one-time tokens for performance
([#1558](#1558))
([d1cf8d9](d1cf8d9))


### Bug Fixes

* do call send sms hook when SMS autoconfirm is enabled
([#1562](#1562))
([bfe4d98](bfe4d98))
* format test otps
([#1567](#1567))
([434a59a](434a59a))
* log final writer error instead of handling
([#1564](#1564))
([170bd66](170bd66))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
uxodb pushed a commit to uxodb/auth that referenced this pull request Nov 13, 2024
If writing to the ResponseWriter fails, then there's no point in trying
to handle the error recursively and write again. Just log with a
warning.

Should deal with some endless-recursion edge cases.
uxodb pushed a commit to uxodb/auth that referenced this pull request Nov 13, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.151.0](supabase/auth@v2.150.1...v2.151.0)
(2024-05-06)


### Features

* refactor one-time tokens for performance
([supabase#1558](supabase#1558))
([d1cf8d9](supabase@d1cf8d9))


### Bug Fixes

* do call send sms hook when SMS autoconfirm is enabled
([supabase#1562](supabase#1562))
([bfe4d98](supabase@bfe4d98))
* format test otps
([supabase#1567](supabase#1567))
([434a59a](supabase@434a59a))
* log final writer error instead of handling
([supabase#1564](supabase#1564))
([170bd66](supabase@170bd66))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 13, 2024
If writing to the ResponseWriter fails, then there's no point in trying
to handle the error recursively and write again. Just log with a
warning.

Should deal with some endless-recursion edge cases.
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 13, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.151.0](supabase/auth@v2.150.1...v2.151.0)
(2024-05-06)


### Features

* refactor one-time tokens for performance
([supabase#1558](supabase#1558))
([d1cf8d9](supabase@d1cf8d9))


### Bug Fixes

* do call send sms hook when SMS autoconfirm is enabled
([supabase#1562](supabase#1562))
([bfe4d98](supabase@bfe4d98))
* format test otps
([supabase#1567](supabase#1567))
([434a59a](supabase@434a59a))
* log final writer error instead of handling
([supabase#1564](supabase#1564))
([170bd66](supabase@170bd66))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 15, 2024
If writing to the ResponseWriter fails, then there's no point in trying
to handle the error recursively and write again. Just log with a
warning.

Should deal with some endless-recursion edge cases.
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 15, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.151.0](supabase/auth@v2.150.1...v2.151.0)
(2024-05-06)


### Features

* refactor one-time tokens for performance
([supabase#1558](supabase#1558))
([d1cf8d9](supabase@d1cf8d9))


### Bug Fixes

* do call send sms hook when SMS autoconfirm is enabled
([supabase#1562](supabase#1562))
([bfe4d98](supabase@bfe4d98))
* format test otps
([supabase#1567](supabase#1567))
([434a59a](supabase@434a59a))
* log final writer error instead of handling
([supabase#1564](supabase#1564))
([170bd66](supabase@170bd66))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants