SecondsRemaining doesn't countdown or is 2147483647
See original GitHub issueHi, I try to display and update the remaining time in seconds while translating a document. I don’t know what I’m doing wrong, but the remaining time either never changes or gets 2147483647 (int max) after a while. Note I don’t have much experience with the Await/Async features yet.
' Upload
Dim Handle As Model.DocumentHandle = Await O_Translator.TranslateDocumentUploadAsync(New FileInfo(File.SourcePath), SourceLang.Code, TargetLang.Code, DTOptions)
' Get Status every 500ms
Do
Await Task.Delay(500)
Dim DocStatus = Await O_Translator.TranslateDocumentStatusAsync(Handle)
If DocStatus.Status = Model.DocumentStatus.StatusCode.Translating Then
Debug.WriteLine(DocStatus.SecondsRemaining)
End If
Loop
' Download
Await O_Translator.TranslateDocumentDownloadAsync(Handle, New FileInfo(File.TargetPath))
This is a typical debug output I get with this code:
8
8
8
8
8
8
8
8
8
8
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
2147483647
I’ve tried with PDF. With a larger docx I’ve got many lines of 49 (without the 2147483647) but still no countdown.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
IETF - UPS-MIB
SYNTAX INTEGER (0..2147483647) upsObjects OBJECT IDENTIFIER ::= { upsMIB 1 } ... of seconds remaining until shutdown, or -1 if no shutdown countdown...
Read more >Have a .mib file, how do I set up the XML file for cacti?
First, Cacti doesn't use MIB files directly. It is only concerned with the OID that you can get from browsing the MIB. Second,...
Read more >Injecting a banner populated with cookie data - Dan Denney
Part of our banner was a countdown timer and since I was shipping code to multiple domains using different tech stacks, I needed...
Read more >RFC 1628 - UPS Management Information Base
When read, upsShutdownAfterDelay will return the number of seconds remaining until shutdown, or -1 if no shutdown countdown is in effect.
Read more >https://www.jema-net.or.jp/Japanese/standard/ups/j...
SYNTAX INTEGER (0..2147483647) jemaUpsObjects OBJECT IDENTIFIER ... number of seconds remaining until shutdown, or -1 if no shutdown countdown is in effect.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same here, any update on this @daniel-jones-deepl?
Hi @dartrax, thanks for creating this issue. I’ve reproduced the issue and I’m looking into it.