bigrig
bigrig
DDeno
Created by bigrig on 1/29/2024 in #help
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
> }
> }
2 replies
DDeno
Created by bigrig on 1/29/2024 in #help
View code in Subhosting project
Hi there - i'm using the API to create a new project and deployment with Subhosting. Just wondering how to actually see that code that I've pushed? I was thinking that i'd be able to open the project via the "Edit with Playground" option... but that doesn't show up for projects created with the deployments API it seems?
3 replies