Comments (10)
Is this some re-emergence of #23?
from harvest.net.
It doesn't look like the same issue. The data is being returned with the correct content type this time.
from harvest.net.
ListProjects_Returns
is succeeding on my test account. Can you run it with your credentials?
from harvest.net.
ListProjects is working when provided with client ID, but failing without one. I just ran the test and it works fine on your test account (returning 2 projects), but fails with my credentials.
I'll keep investigating. Maybe this problem is isolated to my account. I'll try it with another admin's credentials.
from harvest.net.
Just ran it on my production account and it worked. It's probably account related.
Harvest likes to make little undocumented changes every now and then. I'd try commenting out segments of the Project model and see if you can figure out what's different about your account.
from harvest.net.
Thanks @ithielnor, I'll keep working through it.
Temporary workaround:
var harvestClients = HarvestClient.ListClients();
var harvestProjects = new List<Harvest.Net.Models.Project>();
foreach (var harvestClient in harvestClients) {
var projects = HarvestClient.ListProjects(harvestClient.Id);
if (projects != null) {
harvestProjects.AddRange(projects);
}
}
from harvest.net.
@ithielnor, I noticed that if any of my projects has the budget option turned on, then none of the projects will be returned. If I turn the budget option off, then ListProjects() will work again.
from harvest.net.
@ithielnor, debugging the code, the error is generated at HarvestXmlDeserializer.Map, prop.SetValue(x, type.FindEnumValue(value.ToString(), Culture), null);
Specifically, it's throwing "Input string was not in a correct format" error when trying to set project.EstimateBy member with enum type, EstimateMethod.
from harvest.net.
Thanks for the updates, @luciusism. I'll try to repro and fix this weekend.
from harvest.net.
EstimateMethod
does not appear to be used by Harvest. The only enum value we have is None
. I've fixed the BudgetMethod
as per @luciusism's other ticket.
Also discovered a bug in UpdateProject
while testing it. Apparently clientId
is a required field for updates.
from harvest.net.
Related Issues (20)
- .ListProjects() returning null HOT 2
- NuGet package is not signed HOT 3
- Async Support HOT 8
- Currency Updated HOT 1
- Currency field in Invoice HOT 10
- Update DailyOptions Model HOT 1
- Throw a HarvestException for any 4xx or 5xx HTTP status code HOT 2
- C# 6 support? HOT 2
- Getting Data in Postman, but not in c# Code HOT 8
- Add Resource methods to IHarvestRestClient to allow for Mocking of HarvestRestClient for testing. HOT 1
- AUD/USD Currency on getClients() HOT 4
- .net core support HOT 11
- .ListExpenses() returning empty list HOT 1
- .ListProjects() Returning null
- Creating payments using OAuth2 results in a 500 HOT 1
- Weekly Capacity not returned by ListUsers HOT 1
- Listing invoice with only "from" parameter returns incorrect results HOT 1
- project.ListTaskAssignments returns null
- supporting Harvest API V2 HOT 11
- .ListContacts returning null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harvest.net.