bigrig
bigrig5mo ago

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
> }
> }
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
> }
> }
1 Reply
bigrig
bigrig5mo ago
So it deploys successfully; i can see it in the web console; i can run it at the deployment URL; But i can't see the deployment ID via the API (only via the web console).