Giter VIP home page Giter VIP logo

Comments (10)

ithielnor avatar ithielnor commented on July 18, 2024

Is this some re-emergence of #23?

from harvest.net.

hbgwhite avatar hbgwhite commented on July 18, 2024

It doesn't look like the same issue. The data is being returned with the correct content type this time.

from harvest.net.

ithielnor avatar ithielnor commented on July 18, 2024

ListProjects_Returns is succeeding on my test account. Can you run it with your credentials?

from harvest.net.

hbgwhite avatar hbgwhite commented on July 18, 2024

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.

image

I'll keep investigating. Maybe this problem is isolated to my account. I'll try it with another admin's credentials.

from harvest.net.

ithielnor avatar ithielnor commented on July 18, 2024

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.

hbgwhite avatar hbgwhite commented on July 18, 2024

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.

luciusism avatar luciusism commented on July 18, 2024

@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.

luciusism avatar luciusism commented on July 18, 2024

@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.

ithielnor avatar ithielnor commented on July 18, 2024

Thanks for the updates, @luciusism. I'll try to repro and fix this weekend.

from harvest.net.

ithielnor avatar ithielnor commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.