-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Adding facility to support multiple errors #841
Conversation
The username 'blue' does not exist anymore, therefore we are using the username 'dev' instead.
Seems to be working fine now. No changes were needed to the data.
@sdushantha Thank You so much for the detailed steps. I hope i followed the steps in perfect manner. |
Looks like everything went well 👍 But I'm a little unsure of why there is a very long commit history of the past commits in this PR. I have never encountered this before. I tested everything and it seems to be running without and issue. I'll merge this PR and we'll see what happens to that long commit history. |
Looks like the tests went well, but the commit history got populated with the long commit history. I still have no idea of why that happened, but it doesn't really matter. Anyways, thank you for helping out! 😊 |
I am happy that my first open-source contribution was for Sherlock. Thanks for all the help. |
Late but, love this. Wish I had have had the time to do it myself when I mentioned it as an idea! Excellent. |
This PR changes the schema of the data.json. Since there were earlier changes to Sherlock that hardcoded the tool to look at the latest on master before doing a query, all of the users of Sherlock are going to start failing. For example, if I run a query with what I had on my hard drive, this is what I see:
I know that I brought up this point when that change originally went in, but my concern did not seem real as no change had happened yet. I think we can agree that the above crash message is not very user friendly. If nothing else, everyone should be prepared for users coming back entering issues about Sherlock crashing on them. I still think that the compatibility should be handled more robustly. But, that is a different topic. |
@hoadlck I do remember you telling me that, but I completely forgot about it when working on this PR. You are correct, there is a very high chance that we might be bombarded with issues regarding the error thrown by Sherlock. I do have a small idea to propose regarding this issue. We could have a file for notices or messages which we want the users to see. Sherlock would check this file on GitHub every time it ran and if there was a message, it would output that to the user. We could also have a "command word" such as |
@darvell Thank You for bringing up that idea! I hope this will help sherlock in long run. @hoadlck Reason for that error is, that the local copy of sherlock on your machine fetches the data from the updated data.json file. If you update the whole copy to the current version, I guess it will fix this issue. |
@lostnco1 I guess you are getting confused with multiple issues and multiple errors. Here we are talking about the multiple errors that the website might return. For multiple issues regarding sherlock you can use Issue Template and state your issues there. |
As of now, Sherlock supports only a single instance for error messages. I have added the functionality which can handle the list/array of error messages.
Taking an example of Tinder, it provides multiple kinds of error. So, I have added those error messages in the data.json file.
Now the core module sherlock.py only supports one error message in form of string. So I have modified that file and handled the case so that it can support a list/array of messages.
As a result, Tinder which was reporting False-Positives is handled, and now it returns correct results.
Also, this can be helpful in the future, in order to support multiple error messages for different sites.