ebike-hunter

Troubleshooting

Cannot connect to the database

A portal returns 0 listings

Check logs/run.log, which has DEBUG level and full tracebacks. Portals change their HTML and APIs often.

The connector to fix is src/connectors/<portal>.py. Its test in tests/test_<portal>.py has a saved page sample you can update.

Many listings rejected (red dot in the scan output)

Rejections are expected. Common reasons:

analyze.py --problematic lets the AI recover listings rejected only because a spec was missing or misread.

Specs not extracted or wrong

  1. Test the parser on the title (see Configuration).
  2. Adjust config/taxonomy.json.
  3. Run python3 scripts/reprocess_all.py.

To fix a single listing, open đź“‹ Dettagli in the dashboard and use đź’ľ Salva correzioni.

Listing placed at the wrong distance

Check the listing’s location_raw in the database. Then add the missing alias to src/pipeline/geo_data.py and reprocess.

Dashboard doesn’t reflect a code change

Restart server.py. The running process keeps the old code.

analyze.py aborts with “ANTHROPIC_API_KEY not set”

Add the key to .env. --dry-run works without it.