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

localhost showing {"detail":"Not Found"} #2

Open
Dheemant6 opened this issue Mar 13, 2024 · 0 comments
Open

localhost showing {"detail":"Not Found"} #2

Dheemant6 opened this issue Mar 13, 2024 · 0 comments

Comments

@Dheemant6
Copy link

(E:\Phishr-API-main\venv) PS E:\Phishr-API-main> python app.py
Loading the model...
E:\Phishr-API-main\venv\lib\site-packages\sklearn\base.py:376: InconsistentVersionWarning: Trying to unpickle estimator LabelEncoder from version 1.2.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
warnings.warn(
INFO: Started server process [25192]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:52845 - "GET / HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:52845 - "GET / HTTP/1.1" 404 Not Found

I am getting this error when i start hosting. anyone help me in this.

def get_similar_urls(data: DomainData):

# convert to dictionary
data = data.dict()

# the key has same name as you put in class
url = data["url"]
max_num = data["max_num"]

if (max_num <= 0):
    max_num = 20

# result
output = getTypoSquattedDomains(url, max_num)
print("API OUTPUT : ", output)
output = {"output": output}

# Convert the output dictionary to JSON-compatible format
output_dict = json.loads(json.dumps(output, default=str))
return output_dict

and in vscode, this line data = data.dict() is not working. says depricated

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

No branches or pull requests

1 participant