-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Tests fail on master due to Twitter API #7369
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
Comments
This seems to be a temporary Twitter API issue, see comment. |
Ok. So you would suggest wait until Twitter fix this issue on their end? |
Do we already know for sure that it's a Twitter issue? You wrote:
That is confusing. The original endpoint returns a config object. |
No. I’m assuming it is as this issue has never been prevalent before(I.e every test has passed before) and the endpoint now returns an empty page regardless of IP, user agent, etc. |
That means the test has always been using an incorrect endpoint? That seems not possible because the existing tests checks for a specific response in |
Yes, the original endpoint used to return that object. It returns an empty page right now. |
Even if it returned an object, the test still wouldn't pass, see the example response. |
Sorry Manuel, I’m not quite sure I follow. The object returned by the Twitter oauth used to pass the tests, and now, does not. How would you suggest this be approached? |
That is what I doubt. How could it have passed the test? I want to make sure we don't overlook something here. |
I don’t think we overlooked anything. My theory is that as Twitter move to newer API versions, they are removing older endpoints, and these no longer work. Admittedly this seems a little strange, however I can’t understand why the exisiting endpoint would stop working (rate limiting still happens on new devices). |
I think we are talking about different aspects of this issue 🙂 Let's break it down:
We could just care about (b) and close the book, but if we understand (a) we may actually find an additional issue. |
@dblythy You were right, I looked into this and I understand now that these endpoints are just random endpoints to test the failing auth. It doesn't matter which endpoint is used as long as it requires OAuth. That confused me, I assumed these specific endpoints were picked for a particular reason, but they were just randomly picked. The test is now failing because of a Twitter API issue it seems, where the endpoint without proper auth does not respond with an error JSON, but with a zero length response, which is not expected by the test. The solution is just to switch to any other GET endpoint that requires OAuth end responds with an auth error JSON as expected. I will comment on your PR. |
Sorry, I should've explained that to start. My mistake for not being clear enough! |
No worries, I found the invalid endpoint in the PR, so the research was worth it. Thanks for tackling this issue to swiftly! |
New Issue Checklist
Issue Description
As discussed here, one test fails on master.
Steps to reproduce
Run test
Should fail a GET request'
.Actual Outcome
Test should pass
Expected Outcome
Test fails
Failing Test Case / Pull Request
Environment
Server
master
Database
both
Logs
The text was updated successfully, but these errors were encountered: