LucaFalasca / Bus4You

1 stars 0 forks source link

Crash on BookingService #88

Closed LucaFalasca closed 1 year ago

LucaFalasca commented 1 year ago

Il container di booking service mi crasha all'avvio con questo errore

Traceback:

booking_service | /usr/local/lib/python3.11/site-packages/neo4j/_sync/work/result.py:465: UserWarning: Expected a result with a single record, but found multipl e. booking_service | warn("Expected a result with a single record, " booking_service | Traceback (most recent call last): booking_service | File "/app/BookingService.py", line 155, in booking_service | print(str(dao.get_distances(16,17))) booking_service | ^^^^^^^^^^^^^^^^^^^^^^^^ booking_service | File "/app/Neo4jDAO.py", line 93, in get_distances booking_service | return result.single()["distance"] booking_service | ~~~^^^^^^^^^^^^ booking_service | TypeError: 'NoneType' object is not subscriptable booking_service exited with code 1

@StefanAdrianHuma