Ben Rigby - PinkfishB
Denoβ€’2y agoβ€’
1 reply
Ben Rigby - Pinkfish

Deployment ID not available after API deployment

Hi - i'm calling the /deployments endpoint after creating a new project:

${API}/projects/${project.id}/deployments

But the output I get is not consistent with the API docs here: https://apidocs.deno.com/#post-/projects/-projectId-/deployments

In particular there's no deploymentId returned - for use with subsequent API calls.

Any ideas??

I'm getting this as output:
Response {
>    size: 0,
>    timeout: 0,
>    [Symbol(Body internals)]: {
>      body: PassThrough {
>        _readableState: [ReadableState],
>        _events: [Object: null prototype],
>        _eventsCount: 5,
>        _maxListeners: undefined,
>        _writableState: [WritableState],
>        allowHalfOpen: true,
>        [Symbol(kCapture)]: false,
>        [Symbol(kCallback)]: null
>      },
>      disturbed: false,
>      error: null
>    },
>    [Symbol(Response internals)]: {
>      url: 'https://api.deno.com/v1/projects/3fe3a69a-843c-4a88-b2af-e72f415e3600/deployments',
>      status: 200,
>      statusText: 'OK',
>      headers: Headers { [Symbol(map)]: [Object: null prototype] },
>      counter: 0
>    }
>  }
Was this page helpful?