Skip to content

Just use the final code . run with cds watch --profile hybrid . it will ends withe following error . #10

@horsemanjackyliu

Description

@horsemanjackyliu

Just use the final code . run with cds watch --profile hybrid . it will ends withe following error .

[odata] - GET /odata/v4/job-posting/createVectorEmbeddings
Error while creating Vector Embeddings.
Error: undefined
[cds] - ErrorWithCause: Failed to fetch the list of deployments.
at getAllDeployments (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/ai-api/dist/utils/deployment-resolver.js:63:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async resolveDeploymentId (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/ai-api/dist/utils/deployment-resolver.js:33:23)
... 2 lines matching cause stack trace ...
Caused by:
ErrorWithCause: Request failed with status code 403.
at executeRequest (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/core/dist/http-client.js:30:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async OpenApiRequestBuilder.execute (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/core/dist/openapi-request-builder.js:37:26)
at async getAllDeployments (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/ai-api/dist/utils/deployment-resolver.js:54:31)
at async resolveDeploymentId (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/ai-api/dist/utils/deployment-resolver.js:33:23)
at async AzureOpenAiEmbeddingClient.run (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/foundation-models/dist/azure-openai/azure-openai-embedding-client.js:26:30)
at async RetryOperation._fn (/Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/p-retry/index.js:50:12)
Caused by:
HTTP Response: Request failed with status code 403
{
"error": {
"code": "01550006",
"message": "Forbidden, Invalid tenant or resource group. Please check your headers and make sure the tenant and resource group are provisioned..",
"requestId": "6a6f2aa6-00f8-99a5-bc21-dc7ac4944c66",
"target": "/api/v2/deployments"
}
} {
cause: ErrorWithCause: Request failed with status code 403.
at executeRequest (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/core/dist/http-client.js:30:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async OpenApiRequestBuilder.execute (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/core/dist/openapi-request-builder.js:37:26)
... 3 lines matching cause stack trace ...
at async RetryOperation._fn (/Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/p-retry/index.js:50:12)
Caused by:
HTTP Response: Request failed with status code 403
{
"error": {
"code": "01550006",
"message": "Forbidden, Invalid tenant or resource group. Please check your headers and make sure the tenant and resource group are provisioned..",
"requestId": "6a6f2aa6-00f8-99a5-bc21-dc7ac4944c66",
"target": "/api/v2/deployments"
}
} {
cause: AxiosError: Request failed with status code 403
at settle (/Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/axios/dist/node/axios.cjs:2053:12)
at IncomingMessage.handleStreamEnd (/Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/axios/dist/node/axios.cjs:3170:11)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (/Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/axios/dist/node/axios.cjs:4280:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async executeRequest (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/core/dist/http-client.js:22:26)
at async OpenApiRequestBuilder.execute (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/core/dist/openapi-request-builder.js:37:26)
at async getAllDeployments (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/ai-api/dist/utils/deployment-resolver.js:54:31)
at async resolveDeploymentId (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/ai-api/dist/utils/deployment-resolver.js:33:23)
at async AzureOpenAiEmbeddingClient.run (file:///Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/@sap-ai-sdk/foundation-models/dist/azure-openai/azure-openai-embedding-client.js:26:30)
at async RetryOperation._fn (/Users/I501000/projects/codejam-cap-llm/job-posting-service/node_modules/p-retry/index.js:50:12) {
code: 'ERR_BAD_REQUEST',
config: [Object],
request: [ClientRequest],
response: [Object],
status: 403
}
},
attemptNumber: 1,
retriesLeft: 0
}
[error] - 500 > { code: '500', message: 'Failed to fetch the list of deployments.' }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions