Skip to content

Unexpected 404 with Direct Tenant ID #319

@chris-john-hopkins

Description

@chris-john-hopkins

Description
I encountered an unexpected 404 Not Found error when attempting to retrieve contacts using the get_contacts method with the tenantId directly fetched from client.last_connection. However, if I first assign the tenantId to an intermediate variable and then use that variable in the get_contacts method, the call works as expected.

404

client.accounting_api.get_contacts(client.last_connection['tenantId'])

Works as expected

tenant_id = client.last_connection['tenantId']
client.accounting_api.get_contacts(tenant_id)

Seems very odd to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions