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

[ERROR][stocksight] Got an error with status code: 404 (will try again later) #40

Open
Anuraag287 opened this issue Feb 13, 2024 · 1 comment

Comments

@Anuraag287
Copy link

I am facing this issue upon executing the sentiment.py file. Any Suggestions or solutions??

@Siddharth-Latthe-07
Copy link

possible solution and suggestions:-

A 404 error in this context indicates that the script encountered a resource that doesn't exist. Here are some potential causes and solutions for the 404 error:

  1. Incorrect URL:
    Double-check the URL defined in the sentimentURL variable or the URL you're trying to access for headlines. Ensure there are no typos or missing parts.
  2. Temporary Server Issue:
    The error message "will try again later" suggests the issue might be temporary. Try rerunning the script after a short wait (a few minutes) to see if the resource becomes available.
  3. Authentication Issues:
    If the URL requires authentication (e.g., login credentials), ensure your script has the necessary information to access the resource.

Debugging Tips:

Print the exact URL the script tries to access before the error occurs. This can help you identify if it's an incorrect URL or a server issue.
Check the documentation for the third-party sentiment service or the website you're trying to access headlines from. They might have updated their API or structure, requiring adjustments in your script.

hope this helps, thanks

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

2 participants