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

How to run a test server #4

Open
yakirdayan opened this issue Feb 28, 2023 · 2 comments
Open

How to run a test server #4

yakirdayan opened this issue Feb 28, 2023 · 2 comments
Assignees

Comments

@yakirdayan
Copy link

When I multiply the Main file and put alert link to perform "tests" I get the following error

Traceback (Most Recent Call Last):
File "C: \ User's \ User \ Desktop \ Python-Red-Mold-Master \ Src \ Main1.py", LINE 151, in
Main ()
File "C: \ Use \ User \ Desktop \ Python-Red-Hert-Master \ Src \ Main1.py", LINE 119, in Main
Red_alerts = Alert.get_red_Alerts ()
File "C: \ Use \ User \ Desktop \ Python-Rred-Bald-Master \ Src \ Main1.py", LINE 93, in Get_RED_ALRTS
Alerts = R.Content.decode ("UTF-8"). Replace ("\ n", "). Replace (" \ r ",")
Unicodedecodeperror: 'Utf-8

The format of the data I introduced in the JSON file is the data that appears in the Readme.D file.
You can explain why I get this error only when I replace the Home Front Command's link to the link with which I do "tests"

@Betzalel-Maor
Copy link

Betzalel-Maor commented May 9, 2023

I'm trying to make a test server too. Have you figured it out yet?

I'm using a test JSON file and linking the HOST to the file, but I think i'm doing something wrong, since it's not working.

This is the JSON file i'm using:

  "data": [
    {
      "alertDate": "2023-05-09T16:22:00",
      "alertType": "Red",
      "data": {
        "location": "Test Location"
      },
      "alertID": "12345"
    }
  ]
}```

@Zontex Zontex self-assigned this Apr 24, 2024
@Zontex
Copy link
Owner

Zontex commented Apr 24, 2024

Assigned to myself to create a working test

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

3 participants