Skip to content

Typo and/or property not always there #251

@gbataille

Description

@gbataille

Hey, just to let you know that I got a new error today.
I have not investigated the cause (whether they fixed their typo or whether the field in not always there)
It does not seem to be a blocker and ibeam recovers, so not a bit issue

status.collision = json_response['collission']

│ ----------------------------------------                                                                                                                                                                                                                                                                                                                                                                                                                                                    │
│ Exception occurred during processing of request from ('10.0.22.234', 50230)                                                                                                                                                                                                                                                                                                                                                                                                                 │
│ Traceback (most recent call last):                                                                                                                                                                                                                                                                                                                                                                                                                                                          │
│   File "/usr/local/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock                                                                                                                                                                                                                                                                                                                                                                                                    │
│     self.process_request(request, client_address)                                                                                                                                                                                                                                                                                                                                                                                                                                           │
│   File "/usr/local/lib/python3.11/socketserver.py", line 348, in process_request                                                                                                                                                                                                                                                                                                                                                                                                            │
│     self.finish_request(request, client_address)                                                                                                                                                                                                                                                                                                                                                                                                                                            │
│   File "/usr/local/lib/python3.11/socketserver.py", line 361, in finish_request                                                                                                                                                                                                                                                                                                                                                                                                             │
│     self.RequestHandlerClass(request, client_address, self)                                                                                                                                                                                                                                                                                                                                                                                                                                 │
│   File "/usr/local/lib/python3.11/socketserver.py", line 755, in __init__                                                                                                                                                                                                                                                                                                                                                                                                                   │
│     self.handle()                                                                                                                                                                                                                                                                                                                                                                                                                                                                           │
│   File "/usr/local/lib/python3.11/http/server.py", line 432, in handle                                                                                                                                                                                                                                                                                                                                                                                                                      │
│     self.handle_one_request()                                                                                                                                                                                                                                                                                                                                                                                                                                                               │
│   File "/usr/local/lib/python3.11/http/server.py", line 420, in handle_one_request                                                                                                                                                                                                                                                                                                                                                                                                          │
│     method()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                │
│   File "/srv/ibeam/src/health_server.py", line 17, in do_GET                                                                                                                                                                                                                                                                                                                                                                                                                                │
│     return self._ready()                                                                                                                                                                                                                                                                                                                                                                                                                                                                    │
│            ^^^^^^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                    │
│   File "/srv/ibeam/src/health_server.py", line 31, in _ready                                                                                                                                                                                                                                                                                                                                                                                                                                │
│     status = check_status()                                                                                                                                                                                                                                                                                                                                                                                                                                                                 │
│              ^^^^^^^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                 │
│   File "/srv/ibeam/src/handlers/http_handler.py", line 256, in get_status                                                                                                                                                                                                                                                                                                                                                                                                                   │
│     status.collision = json_response['collission']                                                                                                                                                                                                                                                                                                                                                                                                                                          │
│                        ~~~~~~~~~~~~~^^^^^^^^^^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                          │
│ KeyError: 'collission'                                                                                                                                                                                                                                                                                                                                                                                                                                                                      │
│ ----------------------------------------                                                                                                                                                                                                                                                                                                                                                                                                                                                    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions