We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Followed this guide:
https://github.com/TimefoldAI/timefold-quickstarts/tree/stable/python/vehicle-routing
solve
Expected behavior
The solution is loaded without errors in the console.
Actual behavior
IMPORTANT: this does not happen everytime, it seems the first time after starting the web server it always fails.
The results partially load. But I got an exception in the console:
File "timefold/python/timefold-quickstarts/python/vehicle-routing/src/vehicle_routing/domain.py", line 131, in arrival_time return (self.visits[-1].departure_time + TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'
and the UI shows:
Getting route plan has failed. 500: Internal Server Error Code: unknown Error id: ----
To Reproduce
Follow the quickstart README.
Timefold Solver Version or Git ref:
As per the pyproject.toml:
[project] name = "vehicle_routing" version = "1.0.0" requires-python = ">=3.10" dependencies = [ 'timefold == 1.13.0b0', 'fastapi == 0.111.0', 'pydantic == 2.7.3', 'uvicorn == 0.30.1', 'pytest == 8.2.2', ]
Output of java -version:
java -version
openjdk version "17.0.12" 2024-07-16 OpenJDK Runtime Environment (build 17.0.12+7-Ubuntu-1ubuntu222.04) OpenJDK 64-Bit Server VM (build 17.0.12+7-Ubuntu-1ubuntu222.04, mixed mode, sharing)
Output of uname -a or ver:
uname -a
ver
(uname -a)
Linux system76-pc 6.9.3-76060903-generic #202405300957~1721174657~22.04~abb7c06~dev-Ubuntu SMP PREEMPT_DY x86_64 x86_64 x86_64 GNU/Linux
I also tried running the solver through the REST API using the commands provided in the "GUIDE" section:
curl -X GET -H 'Accept:application/json' http://localhost:8080/demo-data/FIRENZE -o sample.json curl -X POST -H 'Content-Type:application/json' http://localhost:8080/route-plans [email protected] curl -X GET -H 'Accept:application/json' http://localhost:8080/route-plans/ID
If I keep runing the third command during solving, I get solutions most of the times, but it also raises errors often.
The text was updated successfully, but these errors were encountered:
Hello @pchtsp and thanks for reporting! We'll take a look when time permits.
Sorry, something went wrong.
Christopher-Chianelli
No branches or pull requests
Describe the bug
Followed this guide:
https://github.com/TimefoldAI/timefold-quickstarts/tree/stable/python/vehicle-routing
solve
button in the web UI.Expected behavior
The solution is loaded without errors in the console.
Actual behavior
IMPORTANT: this does not happen everytime, it seems the first time after starting the web server it always fails.
The results partially load. But I got an exception in the console:
and the UI shows:
To Reproduce
Follow the quickstart README.
Environment
Timefold Solver Version or Git ref:
As per the pyproject.toml:
Output of
java -version
:openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment (build 17.0.12+7-Ubuntu-1ubuntu222.04)
OpenJDK 64-Bit Server VM (build 17.0.12+7-Ubuntu-1ubuntu222.04, mixed mode, sharing)
Output of
uname -a
orver
:(uname -a)
Additional information
I also tried running the solver through the REST API using the commands provided in the "GUIDE" section:
If I keep runing the third command during solving, I get solutions most of the times, but it also raises errors often.
The text was updated successfully, but these errors were encountered: