Skip to content

Blank window and validation error #2

@gorghino

Description

@gorghino

Hello! I'm not sure this is right place to rise issues about Creator-Controller.
We recently got a Pozyx Creator One Kit with 4 anchors.

We installed the Controller that was listed here https://docs.pozyx.io/creator/installation-setup on Windows 11 and Ubuntu 20.04 and 22.04.
In all the OS, we're getting a big blank window (white) once we signed in.

At the beginning I got a JSON error in my Ubuntu 20.04 setup regarding one of the anchor:

gorgo@razer:~/Linux Creator Controller$ ./core-creator 
2023-03-02 15:06:31,479 - __main__ - INFO - Starting core server
2023-03-02 15:06:31,749 - core_diy.core.pozyx - INFO - Connected to Pozyx device
2023-03-02 15:06:31,755 - core_diy.core.pozyx_core - ERROR - Tried positioning but no positioner configured, back to idle mode
======== Running on http://127.0.0.1:5000 ========
(Press CTRL+C to quit)
2023-03-02 15:07:02,811 - core_diy.core.middlewares - ERROR - Exception in validation error, TypeError: sequence item 1: expected str instance, int found
Traceback (most recent call last):
  File "core_diy/core/middlewares.py", line 53, in input_validator
  File "site-packages/jsonschema/validators.py", line 896, in validate
jsonschema.exceptions.ValidationError: 'settings' is a required property

Failed validating 'required' in schema['properties']['tags']['items']:
    {'properties': {'id': {'description': 'ID of the Pozyx tag',
                           'oneOf': [{'type': 'string'},
                                     {'type': 'integer'}]},
                    'inUse': {'default': True, 'type': 'boolean'},
                    'settings': {'properties': {'uwb': {'description': 'uwb '
                                                                       'settings',
                                                        'properties': {'bitrate': {'default': '110 '
                                                                                              'kbit/s',
                                                                                   'description': 'the '
                                                                                                  'bitrate',
                                                                                   'enum': ['110 '
                                                                                            'kbit/s',
                                                                                            '850 '
                                                                                            'kbit/s',
                                                                                            '6.81 '
                                                                                            'Mbit/s'],
                                                                                   'type': 'string'},
                                                                       'channel': {'default': 5,
                                                                                   'description': 'channel '
                                                                                                  'number',
                                                                                   'enum': [1,
                                                                                            2,
                                                                                            3,
                                                                                            4,
                                                                                            5,
                                                                                            7],
                                                                                   'type': 'integer'},
                                                                       'gain': {'default': 25,
                                                                                'description': 'The '
                                                                                               'transmission '
                                                                                               'gain',
                                                                                'maximum': 33,
                                                                                'minimum': 0,
                                                                                'type': 'number'},
                                                                       'plen': {'default': 1024,
                                                                                'description': 'The '
                                                                                               'preamble '
                                                                                               'length',
                                                                                'enum': [64,
                                                                                         128,
                                                                                         256,
                                                                                         512,
                                                                                         1024,
                                                                                         2048,
                                                                                         4096],
                                                                                'type': 'integer'},
                                                                       'prf': {'default': '64 '
                                                                                          'MHz',
                                                                               'description': 'The '
                                                                                              'pulse '
                                                                                              'repition '
                                                                                              'frequency',
                                                                               'enum': ['16 '
                                                                                        'MHz',
                                                                                        '64 '
                                                                                        'MHz'],
                                                                               'type': 'string'}},
                                                        'type': 'object'}},
                                 'required': ['uwb'],
                                 'type': 'object'}},
     'required': ['id', 'settings'],
     'type': 'object'}

On instance['tags'][4]:
    {'id': '4406', 'inUse': True}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "core_diy/core/middlewares.py", line 66, in input_validator
TypeError: sequence item 1: expected str instance, int found

We forgot all the anchors and redid the discovery and apparently the error disappeared but the page is still blank.

gorgo@razer:~/Linux Creator Controller$ ./core-creator 
2023-03-02 15:07:51,389 - __main__ - INFO - Starting core server
2023-03-02 15:07:51,658 - core_diy.core.pozyx - INFO - Connected to Pozyx device
2023-03-02 15:07:51,666 - core_diy.core.pozyx_core - ERROR - Tried positioning but no positioner configured, back to idle mode
======== Running on http://127.0.0.1:5000 ========
(Press CTRL+C to quit)
2023-03-02 15:08:03,101 - core_diy.core.pozyx_core - INFO - Updating positioning (and UWB) settings
{'valid': [], 'invalid': [], 'unknown': []}
2023-03-02 15:08:03,105 - core_diy.core.pozyx_core - INFO - Can't start positioning because less than three anchors (with positions)
2023-03-02 15:08:03,105 - core_diy.core.pozyx_core - INFO - Finished configuration.
2023-03-02 15:08:03,105 - core_diy.core.pozyx_core - INFO - Not starting positioning, no positioner configured

gateway-api and the appImage doesn't show any errors.

Any idea why we got it even with Windows 11?
Only the webpage seems to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions