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
SDK you're using (please complete the following information):
Version 10.1.0
Describe the bug
When trying to access Files API, you always get 404 "The resource you're looking for cannot be found".
The SDK is incorrectly using 2.0 instead 1.0.
To Reproduce
Steps to reproduce the behavior:
Use FilesApi and call getFiles (or any other files related function like deleteFileAssociation)
Expected behavior
A valid list of files should be returned (or whatever you are looking for)
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Using Postman I find that I am able to access Files related API if I simply change "api.xro/2.0" -> "files.xro/1.0"
Current workaround is to create a dedicate ApiClient for Files and override the basePath.
...
Caused by: com.google.api.client.http.HttpResponseException: 404 Not Found
GET https://api.xero.com/api.xro/2.0/Files
at com.google.api.client.http.HttpResponseException$Builder.build(HttpResponseException.java:293)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1118)
at com.xero.api.client.FilesApi.getFilesForHttpResponse(FilesApi.java:1306)
at com.xero.api.client.FilesApi.getFiles(FilesApi.java:1182)
...
The text was updated successfully, but these errors were encountered:
SDK you're using (please complete the following information):
Describe the bug
When trying to access Files API, you always get 404 "The resource you're looking for cannot be found".
The SDK is incorrectly using 2.0 instead 1.0.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A valid list of files should be returned (or whatever you are looking for)
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Using Postman I find that I am able to access Files related API if I simply change "api.xro/2.0" -> "files.xro/1.0"
Current workaround is to create a dedicate ApiClient for Files and override the basePath.
...
Caused by: com.google.api.client.http.HttpResponseException: 404 Not Found
GET https://api.xero.com/api.xro/2.0/Files
at com.google.api.client.http.HttpResponseException$Builder.build(HttpResponseException.java:293)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1118)
at com.xero.api.client.FilesApi.getFilesForHttpResponse(FilesApi.java:1306)
at com.xero.api.client.FilesApi.getFiles(FilesApi.java:1182)
...
The text was updated successfully, but these errors were encountered: