Comments (8)
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.
Hello Andrii, yes I checked this code and it's ok for me.
from crowdin-api-client-dotnet.
Hi @jerome-raffalli, thanks a lot for your involvement! We will fix these issues ASAP
from crowdin-api-client-dotnet.
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.
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.
@jerome-raffalli please revoke your access token specified in your comment for the security reasons
from crowdin-api-client-dotnet.
@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.
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)
- Apply Pre-Translation API: add labels support HOT 3
- Applications API support HOT 8
- Report Settings Template: add the `isPublic` property support HOT 1
- Source Files: add the `context` property support HOT 4
- `WorkflowsApiExecutor` is not accessible in the `CrowdinApiClient` class HOT 2
- Strings translations APIs: add new parameters support HOT 2
- NuGet package: add Readme HOT 1
- Screenshots APIs: add the `labelIds` parameter support HOT 3
- Applications API: add support for new endpoints HOT 5
- StringBatchOperations return null HOT 7
- String-based API support HOT 6
- Security Logs API support
- List Language Translations API: support new parameters HOT 3
- Fields API support HOT 6
- Custom fuzzy match types in translation cost report HOT 1
- Remove the `markAddedTranslationsAsDone` parameter
- Tasks API updates
- UploadTranslations not working for XLIFF file HOT 3
- AI API support
- Add the `orderBy` parameter to list methods
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 crowdin-api-client-dotnet.