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.

[Flow Logs] error: invalid literal for int() with base 10: '-': ValueError

See original GitHub issue

context

error

invalid literal for int() with base 10: '-': ValueError
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 337, in lambda_handler
process_message(message, tags, timestamp, node_ip)
File "/var/task/lambda_function.py", line 53, in process_message
process_packets(packets, detailed_tags, timestamp)
File "/var/task/lambda_function.py", line 231, in process_packets
stats.histogram("packets.per_request", int(packets), tags=tags, timestamp=timestamp)
ValueError: invalid literal for int() with base 10: '-'

metrics

screen shot 2018-06-04 at 09 03 53

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
garnermccloudcommented, Apr 11, 2019

Thanks for your patience. This has been deployed in the latest version of the application.

0reactions
hobbshcommented, Apr 10, 2019

@garnermccloud Any update on this? thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: invalid literal for int() with base 10: '' - Stack Overflow
2. For anyone currently looking here. The error may be that one of the lines isn't in integer form. · 1. i got...
Read more >
[Solved]: Python ValueError: invalid literal for int() with base 10
In Python “ValueError: invalid literal for int() with base 10” error is occurred when you try to convert a string value that is...
Read more >
ValueError: invalid literal for int() with base 10: '\n'
ValueError : invalid literal for int() with base 10: '\n' ... I'm getting the error "int() with base 10" can anyone please find...
Read more >
Python ValueError: invalid literal for int() with base 10 Solution
Our error message tells us there is an invalid literal for an integer in base 10. This means the value we have passed...
Read more >
How to Throw Exceptions in Python - Rollbar
Difference Between Python Syntax Errors and Python Exceptions ... Enter 1st number:s invalid literal for int() with base 10: 's' Enter 1st ...
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