Skip to content

FIX: Twitter health check broken on Faraday update#35407

Merged
Drenmi merged 1 commit intomainfrom
fix/twitter-auth-health-check
Oct 15, 2025
Merged

FIX: Twitter health check broken on Faraday update#35407
Drenmi merged 1 commit intomainfrom
fix/twitter-auth-health-check

Conversation

@Drenmi
Copy link
Copy Markdown
Contributor

@Drenmi Drenmi commented Oct 15, 2025

What is the problem?

Faraday updated their authentication/authorization middleware in version 2, which was a breaking change for the Twitter auth health check.

Why didn't we catch it?

The test was manually mocking and stubbing the individual Faraday objects, so the relevant code path wasn't exercised by our tests.

How does this fix it?

  • Update the test to use stub_request instead. (This correctly catches the deprecated method error.)
  • Update the health check to use the new middleware.

@Drenmi Drenmi merged commit ce1c48b into main Oct 15, 2025
19 checks passed
@Drenmi Drenmi deleted the fix/twitter-auth-health-check branch October 15, 2025 07:27
@discoursebot
Copy link
Copy Markdown

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/error-in-logs-related-to-twitter-login/385203/5

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants