freerouting icon indicating copy to clipboard operation
freerouting copied to clipboard

`/enqueue` endpoint giving 500

Open imrishabh18 opened this issue 1 year ago • 3 comments

Describe the bug Serialisation issue

Caused by: jakarta.json.bind.JsonbException:
Error accessing getter 'getRulesFile' declared in 'class app.freerouting.core.RoutingJob'

To Reproduce Steps to reproduce the behavior:

  1. Hit the endpint /enqueue

Screenshots Screenshot 2024-09-12 at 8 55 29 PM

imrishabh18 avatar Sep 12 '24 15:09 imrishabh18

I can't reproduce the problem, could you give me more details about the issue?

I looked into your PR as well, and I'm not against introducing new DTOs if they are justified, I just want to make sure first this is indeed a general issue with the endpoint.

I use Postman for testing, and it all looks good when I try to enqueue a new job: image

andrasfuchs avatar Sep 14 '24 08:09 andrasfuchs

So, I am in the main branch and this is how I am starting the api server. I am getting this error on hitting enqueue

`Caused by: jakarta.json.bind.JsonbException: Error accessing getter 'getRulesFile' declared in 'class app.freerouting.core.RoutingJob'

https://github.com/user-attachments/assets/4f4296c2-8f8a-4c23-bf0b-df58c15d7223

Also, is it possible you can share that postman collection please for the endpoints? Or just the screen recording of how you are going through all the endpoints and lastly calling the uploadInput and it's final result

imrishabh18 avatar Sep 14 '24 20:09 imrishabh18

This screen recoding is pretty cool 👍 Here is mine:

https://github.com/user-attachments/assets/f4948eaf-a592-4b54-910e-3c043388c093 Note: The {{sessionId}} in the URL is set by a script in Postman. Calling the changeSettings endpoint is optional. Uploading the DSN input is required before calling start and it must be in base64 format. All of this is subject to change, but it works like this for now.

Btw, you can change the API server enabled property by changing the %temp%\freerouting\freerouting.json file accordingly.

Sure, I'll invite you to the Postman workspace, please drop me a line with your e-mail address to [email protected]. I'm curious if you can that getRulesFile issue.

andrasfuchs avatar Sep 16 '24 08:09 andrasfuchs