Giter Site home page Giter Site logo

Comments (8)

jusovsky avatar jusovsky commented on June 1, 2024 1

I found that there are multiple issues, here.
1.
@"<ContentType xmlns=""http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2"">{0}</ContentType>" +
Should be
@"<ContentType xmlns=""http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2"">text/plain</ContentType>" +
2.
There's an unhandled NRE thrown from
A.Run(response?.Content.ReadAsStringAsync(), res => responseBody = res);
This method runs before the request has completed. This can be fixed easily with a continuation or async-await. I'm not familiar with AsyncHelper, but I tried using two different AsyncBridge objects and it worked fine.

3.
I think the TranslateArray method might just be broken on Azure right now. A few people complained of this same issue in December 2016. The bug on Connect is marked as "Resolved," but I strongly suspect it came back.

Thank you,
Josh Usovsky

from zetaresourceeditor.

kiates avatar kiates commented on June 1, 2024 1

I was able to try again today, and get the same brief error message placed into each previously empty string. "**** AsyncBridge.Run method threw an exception."

I tried your API secret and it wouldn't connect (You said it's similar so maybe you were just illustrating what it looks like?)

I don't get an exception stack trace (unless it is logged somewhere I don't know about), so it must catch it internally. I can't easily debug further on my end since I don't have DevExpress components.

I'll send you the key to debug if you think it will be helpful.

Thank you!

from zetaresourceeditor.

jusovsky avatar jusovsky commented on June 1, 2024 1

Thank you, @UweKeim! That fixed it.
Chad, if you install the application, you can just redirect the references to the binaries in the install folder. That's how I was able to build it.
@UweKeim, Someday you might want to put all of the dependencies into a Nuget package so that it's easier for others to build. In fact, I'd be happy to do that for you, if you'd like.

from zetaresourceeditor.

kiates avatar kiates commented on June 1, 2024 1

@UweKeim Great. I installed the new version and it looks like it fixed it! Thank you! @jusovsky Thanks for the tip on the dependencies; I thought it would require more than just the run-time versions. That may come in handy in the future!

from zetaresourceeditor.

UweKeim avatar UweKeim commented on June 1, 2024

I'll take a look.

When I implemented that new Azure Translation API calls, I once came to a similar conclusion as you (does not work), but later on, I never managed to reproduce this behaviour again.

Strange...

from zetaresourceeditor.

UweKeim avatar UweKeim commented on June 1, 2024

I've just debugged it and cannot see an error.

My Microsoft Translator (Azure) client secret looks similar to:

53071fg63970211ef37a312399f8a951

If the exception occurs on your machine, could you post it here, including all inner exceptions?

In addition, if you like, send me your client secret by e-mail and I can use it to debug the application again.

from zetaresourceeditor.

UweKeim avatar UweKeim commented on June 1, 2024

Thanks, @jusovsky I fixed 1. and 2. (at least I do hope so). Maybe 2. is also the cause for the issue, that @kiates gets. (Your API secret works well for me in my tests).

Anyway, I just released a new version 2.3.0.15. Here is the direct setup download.

from zetaresourceeditor.

UweKeim avatar UweKeim commented on June 1, 2024

@jusovsky I cannot legally deploy DevExpress assemblies. You need to own a license to build Zeta Resource Editor.

from zetaresourceeditor.

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.