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.

genPostData should use a different timestamp from storageHash.oldestTimestamp when getOlderMessages = True.

See original GitHub issue

Currently IITC uses the stored oldest timestamp of received messages as the maxTimestampMs in the data for retrieving messages when getOlderMessages is true.

data = $.extend(data, {maxTimestampMs: storageHash.oldestTimestamp});

However, where a single request results in 50+ (or a large value, unknown specific) messages all at the same time, say when a heavily layered field set is destroyed, this means that the first request sets the oldestTimestamp to that time, but every subsequent request keeps requesting the same time period.

Since the chat never receives older messages, it logjams at this timestamp and won’t display any earlier entries.

Suggested Solution:

Use the timestamp of the oldestTimestamp minus one millisecond. Since Niantic uses end inclusive timestamps in their request, you need to shift the end timestamp back by one millisecond or you will continue to receive the same data over and over.

data = $.extend(data, {maxTimestampMs: storageHash.oldestTimestamp - 1});

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
johnd0ecommented, Dec 8, 2020

@Looka13

Thank you for this investigation!

0reactions
Looka13commented, Dec 8, 2020

@johnd0e Thank you and all the other developers who works on such an important tool as it is IITC!

Read more comments on GitHub >

github_iconTop Results From Across the Web

IITC-CE/ingress-intel-total-conversion (Raised $0.00) - Issuehunt
genPostData should use a different timestamp from storageHash.oldestTimestamp when getOlderMessages = True. Unfunded#364created byperringaiden.
Read more >
Timestamps, Time Zones, Time Ranges, and Date Formats
Learn how Sumo Logic manages timestamps, time zones, time ranges, and dates, and the configuration options that are available.
Read more >
pandas.Timestamp — pandas 1.5.2 documentation
Timestamp is the pandas equivalent of python's Datetime and is interchangeable with it in most cases. It's the type used for the entries...
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