Skip to content
New issue

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

Using solver.planning.domains/solve from plugin gets 400 error; hangs against paas-uom.org #182

Open
rpgoldman opened this issue Apr 24, 2024 · 3 comments

Comments

@rpgoldman
Copy link

rpgoldman commented Apr 24, 2024

I was learning the VS Code plugin, so I downloaded the vscode-pddl-samples and per the instructions tried to generate a plan for Airport/1plane.pddl using Airport/domain.pddl. I expected the planning to fail, since there's an intentionally-introduced error in that file. But instead of failing, I get a 400 error from the solver.planning.domains server:

image

I uploaded those files interactively to the planning editor at planning.domains, and tried to generate a plan using LAMA. Planning failed, as expected, but there was no error.

Here's my configuration:
image

Tried using paas-uom.org:5001 as the planner instead and the planning attempt hangs with this:

image

Any idea what I am doing wrong?

@rpgoldman rpgoldman changed the title Using solver.planning.domains/solve from plugin gets 404 error Using solver.planning.domains/solve from plugin gets 400 error; hangs against paas-uom.org Apr 24, 2024
@haz
Copy link

haz commented Apr 24, 2024

The plugin needs to be updated for the modern era solver.planning.domains (uses PaasS now). You can add a new planning engine, select the planning-as-a-service option, and configure like so:

image

@jan-dolejsi : ya still with us, bud?

@wikssss
Copy link

wikssss commented Jul 25, 2024

I had a similar issue and haz's recommendation fixed things for a while but now when I've configured planning as a service as: https://solver.planning.domains:5001/package and the extension is stuck loading here:
image.
Please could you help :) @jan-dolejsi

@jan-dolejsi
Copy link
Owner

jan-dolejsi commented Jul 25, 2024

I need bit more info, @wikssss
Just tested using the currently published version of the extension and all seems to work.

Can you try the following?

  1. Test using the out-of-the-box planner configuration (the last one in the list):
    image

  2. Please invoke the VS Code command Preferences: Open User Settings (JSON), find the "pddl.planners": [...] section and paste the content here (especially the entry related to the Planning-as-a-service entry). It should look like this:

        {
            "kind": "PLANNING_AS_A_SERVICE",
            "url": "https://solver.planning.domains:5001/package",
            "title": "https://solver.planning.domains:5001/package",
            "canConfigure": true
        }
  1. In VS Code invoke the Developer: Toggle Developer Tools command and look for an error in the Console tab that could be related to the planner HTTP call or related...

  2. You should also see a valid JSON response if you put the https://solver.planning.domains:5001/package address directly to your browser.

Thx. Jan

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

No branches or pull requests

4 participants