Skip to content

Issue with PCF Cloud Foundry Client's "Retrieve Recent Logs" Function Compatibility with TAS for VMs v4.0.3 (Cloudfoundry v1.35.1) #196

Open
@DivyaLakshmanna

Description

@DivyaLakshmanna

Description:
I am experiencing a compatibility issue with the PCF Cloud Foundry (PCF CF) client when trying to use the "Retrieve Recent Logs" function. The issue seems to arise specifically when working with TAS for VMs v4.0.3, where the underlying Cloudfoundry version used is 1.35.1.

Issue:
When attempting to retrieve recent logs using the PCF CF client with TAS for VMs v4.0.3, I encounter an error or unexpected behavior.
Error : raise InvalidStatusCode(HTTPStatus(response.status_code), body, response.headers.get("x-vcap-request-id"))
cloudfoundry_client.errors.InvalidStatusCode: NOT_FOUND = {"description": "The app could not be found: ", "error_code": "CF-AppNotFound", "code": 100004}

Steps to Reproduce:
Ensure that the application is running on the Pcf Platform: TAS for VMs v4.0.3.
Use the app.recent_logs() method from the cloudfoundry-client version 1.35.1 to retrieve logs for an App.
Observe the cloudfoundry_client.errors.InvalidStatusCode: NOT_FOUND error.

Environment
Pcf Platform: TAS for VMs v4.0.3
cloudfoundry-client version: 1.35.1

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