Giter VIP home page Giter VIP logo

Comments (8)

jerome-raffalli avatar jerome-raffalli commented on July 25, 2024 2

Hello Andrii, Crowdin is a great tool and having the Client API in opensource is really a good point. Thank you.

from crowdin-api-client-dotnet.

jerome-raffalli avatar jerome-raffalli commented on July 25, 2024 1

Hello Andrii, yes I checked this code and it's ok for me.

from crowdin-api-client-dotnet.

andrii-bodnar avatar andrii-bodnar commented on July 25, 2024

Hi @jerome-raffalli, thanks a lot for your involvement! We will fix these issues ASAP

from crowdin-api-client-dotnet.

innomaxx avatar innomaxx commented on July 25, 2024

Hi @jerome-raffalli, which OS and .NET runtime versions are you using? I had just tested MediaTypeHeaderValue.Parse("application/json-patch+json") on .NET 5 and it works fine.

from crowdin-api-client-dotnet.

jerome-raffalli avatar jerome-raffalli commented on July 25, 2024

Hello Max,

I am using visualstudio 2022 on windows server 2019
test program is for .NET6, but my application is for .NET5 and it hangs too.
I just rechecked and replacing "json-patch+json" with "json" doesn't hang but does nothing (the isArchived flag remains null)
so there is a problem too.

my test code :

using Crowdin.Api;
using Crowdin.Api.ProjectsGroups;
using Crowdin.Api.Tasks;

var client = new CrowdinApiClient(new CrowdinCredentials
{
    AccessToken = "...",
    Organization = ""
});

var L = new List<TaskArchivedStatusPatch>();
L.Add(new TaskArchivedStatusPatch { Operation= PatchOperation.Replace, Path= TaskArchivedStatusPatchPath.IsArchived, Value = true });
await client.Tasks.EditTaskArchivedStatus(499200, 16, L);

var TK = await client.Tasks.ListTasks(499200);

Exception details

Crowdin.Api.CrowdinApiException
  HResult=0x80131500
  Message=Unsupported Content-Type Header
  Source=Crowdin.Api
  StackTrace:
   at Crowdin.Api.CrowdinApiClient.<CheckDefaultPreconditionsAndErrors>d__90.MoveNext() in Q:\crowdin-api-client-dotnet\src\Crowdin.Api\CrowdinApiClient.cs:line 327

from crowdin-api-client-dotnet.

andrii-bodnar avatar andrii-bodnar commented on July 25, 2024

@jerome-raffalli please revoke your access token specified in your comment for the security reasons

from crowdin-api-client-dotnet.

innomaxx avatar innomaxx commented on July 25, 2024

@jerome-raffalli please try fix/patch-routes-content-type branch and let us know if the problem is solved or not

from crowdin-api-client-dotnet.

andrii-bodnar avatar andrii-bodnar commented on July 25, 2024

Hi @jerome-raffalli!

Have you tried the proposed solution? Also, you can check the code with the fix in linked PR.

from crowdin-api-client-dotnet.

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.