Use true timestamp to avoid "Invalid timestamp"#1
Merged
Thibauth merged 1 commit intoThibauth:masterfrom Jul 22, 2013
Crupuk:patch-1
Merged
Use true timestamp to avoid "Invalid timestamp"#1Thibauth merged 1 commit intoThibauth:masterfrom Crupuk:patch-1
Thibauth merged 1 commit intoThibauth:masterfrom
Crupuk:patch-1
Conversation
With the original version i got :
python /usr/lib/python2.6/site-packages/pushover.py --token "NU2LC5g2G9jgVR9eHVLYAUmkFuPeky" --client "FWhJFb5wgV35bmzmaxeV976K1WqaFE" "Hello"
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pushover.py", line 227, in <module>
url_title=args.url_title, timestamp=True)
File "/usr/lib/python2.6/site-packages/pushover.py", line 207, in send_message
return MessageRequest(payload)
File "/usr/lib/python2.6/site-packages/pushover.py", line 104, in __init__
Request.__init__(self, "post", MESSAGE_URL, payload)
File "/usr/lib/python2.6/site-packages/pushover.py", line 86, in __init__
raise RequestError(self.answer["errors"])
__main__.RequestError:
==> timestamp is invalid
By casting time.time() the error disappears
Thibauth
added a commit
that referenced
this pull request
Jul 22, 2013
Use true timestamp to avoid "Invalid timestamp"
Owner
|
This does the job indeed. I guess I forgot to test this case. Thanks a lot! |
Contributor
Author
|
Could you please make a release ? I just install it ( pip install python-pushover ) on a new server and still get the error. Thanks |
Owner
|
Yes, I was thinking of doing this. It should hopefully happen this week-end. |
Owner
|
Better late that never: new release is available on Pypi and can be install with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the original version i got :
python /usr/lib/python2.6/site-packages/pushover.py --token "NU2LC5g2G9jgVR9eHVLYAUmkFuPeky" --client "FWhJFb5wgV35bmzmaxeV976K1WqaFE" "Hello"
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pushover.py", line 227, in
url_title=args.url_title, timestamp=True)
File "/usr/lib/python2.6/site-packages/pushover.py", line 207, in send_message
return MessageRequest(payload)
File "/usr/lib/python2.6/site-packages/pushover.py", line 104, in init
Request.init(self, "post", MESSAGE_URL, payload)
File "/usr/lib/python2.6/site-packages/pushover.py", line 86, in init
raise RequestError(self.answer["errors"])
main.RequestError:
==> timestamp is invalid
By casting time.time() the error disappears