question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SecondsRemaining doesn't countdown or is 2147483647

See original GitHub issue

Hi, 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LAB02-Admincommented, Mar 15, 2023

Same here, any update on this @daniel-jones-deepl?

1reaction
daniel-jones-deeplcommented, Nov 9, 2022

Hi @dartrax, thanks for creating this issue. I’ve reproduced the issue and I’m looking into it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found