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

Unable to run the server3.py file #120

Open
GaganaMD opened this issue Sep 25, 2023 · 1 comment
Open

Unable to run the server3.py file #120

GaganaMD opened this issue Sep 25, 2023 · 1 comment

Comments

@GaganaMD
Copy link

I have been trying to start a server from codespaces for a long time but am receiving this error:

This page isn’t workingbug-free-space-spork-r54qw9qrvx52pq94-8080.app.github.dev is currently unable to handle this request.
HTTP ERROR 502

Any help with this issue is welcome.

@RajKandane
Copy link

Hi there,

The error you're encountering, StopIteration, typically occurs when an iterator is exhausted, meaning it has no more items to return. In your case, it seems to happen when you're trying to retrieve the next item from self._data_1 in the __init__ method of your App class.

The likely reason is that the iterator self._data_1 is empty, and when you try to get the next item using next(self._data_1), there's nothing left to return. This situation could arise if your CSV file (test.csv) doesn't contain enough data, or if there's an issue with the data format.

To troubleshoot, you can check:

  1. Ensure that your CSV file (test.csv) exists and contains valid data.
  2. Verify that the data in the CSV file is correctly formatted and matches the expectations of your code.
  3. If it's empty, you can simply copy and paste the provided data into this path: \forage-jpmc-swe-task-2\datafeed\test.csv.

You can find the data here test csv , and after that, just copy-paste it into this path: \forage-jpmc-swe-task-2\datafeed\test.csv.

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