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.

duckling suddenly can’t parse local timestamp

See original GitHub issue

This happens when ~you don’t pass a timezone to the~ duckling ~configuration and it~ tries to get your time using reference time.

I thought this was my new computer sending weird timestamps, but it’s happened on both old and new and was recently reported by a community member.

Warning:

2019-07-13 14:24:32 WARNING  root  - Could not parse timestamp fc976cc217934115b1f4b5d44b236d80. Instead current UTC time will be passed to duckling. Error: invalid literal for int() with base 10: 'fc976cc217934115b1f4b5d44b236d80'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
msamoghcommented, Jul 22, 2019

when you don’t pass a timezone to the duckling configuration

I did pass a timezone and still got the same error.

1reaction
fanlucommented, Nov 15, 2019

Yes, I think there is no problem with timezone. this is my test case below.

curl -XPOST http://0.0.0.0:8000/parse --data 'dims=time&lang=en&l&tz=Asia/Shanghai&text=tomorrow morning&reftime=1573475247000'
[{"body":"tomorrow morning","start":0,"value":{"values":[{"to":{"value":"2019-11-12T12:00:00.000+08:00","grain":"hour"},"from":{"value":"2019-11-12T00:00:00.000+08:00","grain":"hour"},"type":"interva
l"}],"to":{"value":"2019-11-12T12:00:00.000+08:00","grain":"hour"},"from":{"value":"2019-11-12T00:00:00.000+08:00","grain":"hour"},"type":"interval"},"end":16,"dim":"time","latent":false}]
curl -XPOST http://0.0.0.0:8000/parse --data 'dims=time&lang=en&l&tz=Europe/Berlin&text=tomorrow morning&reftime=1573475247000'
[{"body":"tomorrow morning","start":0,"value":{"values":[{"to":{"value":"2019-11-12T12:00:00.000+01:00","grain":"hour"},"from":{"value":"2019-11-12T00:00:00.000+01:00","grain":"hour"},"type":"interval"}],"to":{"value":"2019-11-12T12:00:00.000+01:00","grain":"hour"},"from":{"value":"2019-11-12T00:00:00.000+01:00","grain":"hour"},"type":"interval"},"end":16,"dim":"time","latent":false}]
Read more comments on GitHub >

github_iconTop Results From Across the Web

duckling suddenly can't parse local timestamp #4006 - GitHub
This happens when you don't pass a timezone to the duckling configuration and it tries to get your time using reference time.
Read more >
Facebook's Duckling Cannot Identify Time Dimension Correctly
I'm using Facebook's Duckling to parse text. When I pass the text: 13h 47m it correctly classifies the entire text as DURATION (=...
Read more >
Duckling Survival - Ducks Unlimited
The premise is simple: while eggs must hatch to produce young, young must also survive to be recruited into the breeding population. Greater...
Read more >
Duck Health Care | Cornell University College of Veterinary ...
Keeping ducks healthy requires taking the necessary steps to prevent disease outbreaks from occurring in the first place, and in cases where ducks...
Read more >
Why You Should Not Feed Ducks | Sugar Land, TX
Feeding ducks and geese can lead to the following problems as well: Duckling malnutrition — in areas where ducks are regularly fed bread...
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