Skip to content

fix: add Redis setup instructions and handle missing Redis connection gracefully#776

Open
rashmivemuri wants to merge 2 commits intoOWASP:mainfrom
rashmivemuri:patch-2
Open

fix: add Redis setup instructions and handle missing Redis connection gracefully#776
rashmivemuri wants to merge 2 commits intoOWASP:mainfrom
rashmivemuri:patch-2

Conversation

@rashmivemuri
Copy link
Contributor

Fixes #652

Problem

When running OpenCRE locally, the map analysis feature fails with a Redis
connection error because the setup documentation does not mention starting
Redis before running the app.

Changes

  1. docs/developmentSetup.md - Added make start-containers step in the
    Running Locally section so users know to start Redis and Neo4j first.

  2. application/utils/gap_analysis.py - Added a None check after
    redis.connect() so if Redis is unavailable, the app returns a clear
    error message instead of crashing.

Added error handling for Redis connection failure.

Signed-off-by: Rashmi Vemuri <rashmivemuri@gmail.com>
Added instructions to start required services before running locally.

Signed-off-by: Rashmi Vemuri <rashmivemuri@gmail.com>
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

Successfully merging this pull request may close these issues.

Map analysis not working locally

1 participant