suborbital / docs

Documentation monorepo for Suborbital projects and products
https://docs.suborbital.dev
Apache License 2.0
8 stars 5 forks source link

Quickstart execute plugin URL produces 404 error #212

Open gallilama opened 1 year ago

gallilama commented 1 year ago

I was going through the Quickstart tutorial, and noticed the last section of the tutorial "Executing plugins" continually produced 404 errors. The instructions from Quickstart are:

export ENV_TOKEN=<your previously generated token>

curl http://local.suborbital.network:8080/com.suborbital.acmeco/default/hello/v1.0.0 \
     --header "Authorization: Bearer $ENV_TOKEN" \
     -d 'my friend'
404 page not found

After a little investigation of se2-node exec.ts file, I found a different URL structure which works:

export ENV_TOKEN=<your previously generated token>

curl http://local.suborbital.network:8080/name/com.suborbital.acmeco/default/hello \
     --header "Authorization: Bearer $ENV_TOKEN" \
     -d 'my friend'

hello, my friend

The current quickstart appears to be ${execUri}/${tenant}/${namespace}/${name}/${version} But what works appears to be ${execUri}/name/${tenant}/${namespace}/${name}