Code Monkey home page Code Monkey logo

tr-05-serverless-relay's Issues

Schema validation fails when attempting to add tiles to the dashboard

Examining the built-in SecureX dashboard modules - the tile API endpoint requires a value for tile_id rather than tile-id as specified in the schema.

Schema validation failed when attempting to add tiles to the dashboard.

{
    "errors": [{
        "module_instance_id": "XXXX",
        "module_type_id": "XXXX",
        "code": "invalid argument",
        "message": "{'tile-id': ['Missing data for required field.'], 'tile_id': ['Unknown field.']}",
        "type": "fatal",
        "module": "Test Relay"
    }]
}

Flask Dependencies Broken in current version

trying to run app.py of the base, after going through the steps. the virtual env is setup, the dependencies installed as per the text file. However, flask is not working correctly due to the Jinja depedency. Flask version 1 relying on the other lib's escape method, which no longer exists.
after updating to flask 2.2.3 in the venv, it works well. I haven't checked the full zappa deployment yet (getting there soon).

"Jinja is a dependency of Flask and Flask V1.X.X uses the escape module from Jinja, however recently support for the escape module was dropped in newer versions of Jinja." (source https://stackoverflow.com/questions/71718167/importerror-cannot-import-name-escape-from-jinja2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.