user2666618
user2666618

Reputation: 71

vespa deploy --wait 300 app-1-getting-started get error-code "METHOD_NOT_ALLOWED"

When I follow this article to practice vepsa https://docs.vespa.ai/en/tutorials/news-1-getting-started.html

when i do this step vespa deploy --wait 300 app-1-getting-started

i got this error

{
    "error-code": "METHOD_NOT_ALLOWED",
    "message": "Method 'POST' is not supported"
}

why and how can i fix this error ?

Upvotes: 1

Views: 497

Answers (2)

Jo Kristian Bergum
Jo Kristian Bergum

Reputation: 3184

Vespa deploys to http://localhost:19071/ and if the service running on that port is not the Vespa configuration service, but a different HTTP server that returns 405, this might explain the behavior you observe. The tutorial starts the Vespa container image using 3 port bindings

  • 8080:8080 is the Vespa container (data plane, read and write)
  • 19071:19071 is the Vespa configuration service which accepts app package (control plane)
docker run -m 10G --detach --name vespa --hostname vespa-tutorial \
  --publish 8080:8080 --publish 19071:19071 --publish 19092:19092 \
  vespaengine/vespa

Upvotes: 1

Kristian Aune
Kristian Aune

Reputation: 981

I am unable to reproduce, I just ran through the steps. I suggest you submit an issue at https://github.com/vespa-engine/vespa/issues with your environment and also include vespa.log for the Vespa Team to have a look

Upvotes: 1

Related Questions