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

data.json file access error [Bad Response] #2351

Open
1 task done
shivaganesht opened this issue Oct 25, 2024 · 13 comments
Open
1 task done

data.json file access error [Bad Response] #2351

shivaganesht opened this issue Oct 25, 2024 · 13 comments
Labels
environment Problem with user's environment.

Comments

@shivaganesht
Copy link

shivaganesht commented Oct 25, 2024

Installation method

PyPI (via pip)

Description

image

I encountered an issue while trying to access the data.json file from the Sherlock project. Below are the details to help reproduce the bug:

What I was trying to do: I was running the Sherlock tool to collect information about specific usernames on various platforms.

What I expected to happen: I expected the tool to download and access the data.json file successfully, allowing the program to run without any interruptions.

What actually happened: Instead of successfully accessing the data.json file, I received an error message stating: "Bad response while accessing data file URL https://raw.githubusercontent.com/sherlock-project/sherlock/master/sherlock/resources/data.json.This suggests that the file may not be accessible or may have been moved or deleted.

Comment: I checked the URL in my browser, and it seems to return an error, which indicates that the file may no longer be available. This issue could impact users trying to run the tool, as it relies on this data file. Please investigate the status of the data.json file and consider providing an alternative or a local copy option to ensure functionality.

Steps to reproduce

Install Sherlock:
Open your terminal or command prompt.
Run the command: pip install sherlock.

Run Sherlock:
In the terminal, execute the command: sherlock , replacing with any username you wish to search for.

Observe the Output:
Monitor the terminal output as the tool attempts to access the data.json file.

Error Encounter:
Note the error message that appears, specifically: "Bad response while accessing data file URL https://raw.githubusercontent.com/sherlock-project/sherlock/master/sherlock/resources/data.json.

Check URL Manually:
Open a web browser and navigate to https://raw.githubusercontent.com/sherlock-project/sherlock/master/sherlock/resources/data.json.
Confirm if the file is accessible or if an error (e.g., 404 Not Found) is displayed.

Additional information

Bug Reported by: Shiva Ganesh Talikota

Code of Conduct

  • I agree to follow this project's Code of Conduct
@shivaganesht shivaganesht added the bug Something isn't working label Oct 25, 2024
@ppfeister
Copy link
Member

What version of the tool are you running? (--version)

@ppfeister ppfeister added environment Problem with user's environment. and removed bug Something isn't working labels Oct 25, 2024
@Danila-Kovalenko
Copy link

Same here, my version is 0.14.4, and, sadly, it will not work

@ppfeister
Copy link
Member

@Danila-Kovalenko 0.14.4 is long out of date and that behavior is expected due to a refactor. You should update your install.

Note that the Parrot repositories are out of date, so I would recommend using any other source. Trying to get an update pushed there sometime soon

@AshleyDownBelow
Copy link

@ppfeister both pipx and pip say 0.14.4 is latest despite updated package on PyPi
image

@ppfeister
Copy link
Member

That would seem to be a local issue unfortunately and not one with Sherlock. I would however recommend trying --no-cache for pipx or --no-cache-dir for pip. @AshleyDownBelow Also applicable to @Danila-Kovalenko and @shivaganesht

Failing that, you'd have to set a higher verbosity and read through the logs. Setting no-cache may very well solve it though.

@shivaganesht
Copy link
Author

What version of the tool are you running? (--version)

sherlock 0.14.4
Python HTTP for Humans.: 2.31.0
Python: 3.7.6

@shivaganesht
Copy link
Author

@ppfeister both pipx and pip say 0.14.4 is latest despite updated package on PyPi image

Yes, I am having the same issue here.

@shivaganesht
Copy link
Author

That would seem to be a local issue unfortunately and not one with Sherlock. I would however recommend trying --no-cache for pipx or --no-cache-dir for pip. @AshleyDownBelow Also applicable to @Danila-Kovalenko and @shivaganesht

Failing that, you'd have to set a higher verbosity and read through the logs. Setting no-cache may very well solve it though.

image
I'm getting this error now. did I do it correctly? or guide me on how to execute this?

@shivaganesht
Copy link
Author

That would seem to be a local issue unfortunately and not one with Sherlock. I would however recommend trying --no-cache for pipx or --no-cache-dir for pip. @AshleyDownBelow Also applicable to @Danila-Kovalenko and @shivaganesht
Failing that, you'd have to set a higher verbosity and read through the logs. Setting no-cache may very well solve it though.

image I'm getting this error now. did I do it correctly? or guide me on how to execute this?

image

I'm not getting how to do it...

@ppfeister
Copy link
Member

Let me be more specific --

# If using pipx
pipx upgrade sherlock-project --pip-args="--no-cache-dir"
# If using pip
pip install sherlock-project --upgrade --no-cache-dir

Can't say for sure if this will be what sets you right, but it's at least worth trying. I also have no idea what oddities might be present on the Windows side of things.

@shivaganesht
Copy link
Author

Let me be more specific --

# If using pipx
pipx upgrade sherlock-project --pip-args="--no-cache-dir"
# If using pip
pip install sherlock-project --upgrade --no-cache-dir

Can't say for sure if this will be what sets you right, but it's at least worth trying. I also have no idea what oddities might be present on the Windows side of things.

image

I tried. No Luck. 🥲

@bytexenon
Copy link
Contributor

sherlock 0.14.4 Python HTTP for Humans.: 2.31.0 Python: 3.7.6

Hello,

This issue seems to be related to your Python version. The latest versions of Sherlock no longer supports Python 3.7, so Pip automatically selects the latest compatible version, which unfortunately uses a broken GitHub URL for the data.json file.

To resolve this, try upgrading your Python version by running:

sudo apt update
sudo apt install python3

(or an alternative depending on your distribution). After upgrading, reinstall the package and it should work

@ppfeister
Copy link
Member

ppfeister commented Nov 4, 2024

Oh god, good catch @bytexenon

Didn't realize he was on 3.7. That went EOL almost a year and a half ago.

Those commands only work for deb + derivs (as you mention) but he can probably just get the latest for Windows from their website https://www.python.org/downloads/windows/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
environment Problem with user's environment.
Projects
None yet
Development

No branches or pull requests

5 participants