D
Dokploy•6mo ago
ElPoulpo

Impossible to deploy using API as applicationId is always NOT FOUND

Hi @Siumauricio, Can't use API to trigger deployment. Got error message
{
"message": "Application not found",
"code": "NOT_FOUND"
}
{
"message": "Application not found",
"code": "NOT_FOUND"
}
Using endpoint project.all to retrieve application ID but got "applicationId": null for every application. Tried with other id like composeId or domainId or projectId . Nothing works
10 Replies
Siumauricio
Siumauricio•6mo ago
Can you give more details? have you tried to trigger the api via swagger?
ElPoulpo
ElPoulpoOP•6mo ago
Yes not working etheir
ElPoulpo
ElPoulpoOP•6mo ago
Auto Deploy
Learn how to automatically deploy your application to Dokploy.
ElPoulpo
ElPoulpoOP•6mo ago
curl -X 'GET' \
'https://your-domain/api/project.all' \
-H 'accept: application/json'
-H 'Authorization: Bearer <token>'
curl -X 'GET' \
'https://your-domain/api/project.all' \
-H 'accept: application/json'
-H 'Authorization: Bearer <token>'
All the project insight the response of that request come without applicationID
ElPoulpo
ElPoulpoOP•6mo ago
for example
No description
ElPoulpo
ElPoulpoOP•6mo ago
another one
ElPoulpo
ElPoulpoOP•6mo ago
No description
ElPoulpo
ElPoulpoOP•6mo ago
this is responses from Swagger API and so when using
curl -X 'POST' \
'https://your-domain/api/application.deploy' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"applicationId": "string"
}'
curl -X 'POST' \
'https://your-domain/api/application.deploy' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"applicationId": "string"
}'
It fails @Siumauricio any idea on what's going on ?
Siumauricio
Siumauricio•6mo ago
Let me try lol, why are you deploying a compose with the application endpoint? every service has it own service, compose is composeId and you should use the /compose.deploy is the same for applications, use applicationId and you should use the /application.deploy
ElPoulpo
ElPoulpoOP•6mo ago
@Siumauricio I see, make sens now 😅 Didn't get the general point about application vs compose service

Did you find this page helpful?