You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But once rewritten as a single expression, it does not: ❌
client.accounting_api.get_organisations(client.connections.first['tenantId'])# Error message: the server returns an error (XeroRuby::ApiError)# HTTP status code: 404
This is because client.connectionsoverwrites the @base_url of the client used in client.accounting_api, so the account api ends up making requests to https://api.xero.com instead of https://api.xero.com/api.xro/2.0.
Combining any two or more APIs in the same expression leads to this bug.
The text was updated successfully, but these errors were encountered:
This works: ✔️
But once rewritten as a single expression, it does not: ❌
This is because
client.connections
overwrites the @base_url of the client used inclient.accounting_api
, so the account api ends up making requests tohttps://api.xero.com
instead ofhttps://api.xero.com/api.xro/2.0
.Combining any two or more APIs in the same expression leads to this bug.
The text was updated successfully, but these errors were encountered: