XeroAPI / xero-ruby

Xero Ruby SDK for OAuth 2.0 generated from XeroAPI/Xero-OpenAPI
http://developer.xero.com/
MIT License
57 stars 91 forks source link

Unexpected 404 with Direct Tenant ID #319

Open chris-john-hopkins opened 1 month ago

chris-john-hopkins commented 1 month ago

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.

github-actions[bot] commented 1 month ago

PETOSS-592

github-actions[bot] commented 1 month ago

Thanks for raising an issue, a ticket has been created to track your request