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.

http error 408 timeout

See original GitHub issue

I get a lot of http 408 (timeout) errors when I try to do a .get (e.g., charge_state = v.get('data_request/charge_state')

Is there a timeout parameter that I should modify to avoid this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rz93594commented, Jan 28, 2019

I run this loop after the wake command and it is seeming pretty reliable for me as of late.

while True: state time.sleep(2) veh = c.vehicles[0] status = veh.wake_up() state = status[‘response’][‘state’] if state == ‘online’: print(state) break

note: cleanup for your own use…

0reactions
ejsuncycommented, Jan 24, 2019

this library’s _open function calls urllib’s open function but doesn’t specify the timeout parameter, which it should. I’ll work on a PR. Yeah, looks like a server-side issue, which makes sense, you don’t want hundreds of thousands of connections all waiting for vehicles to wake up. IMO polling might be a good option.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix the HTTP 408 Error (8 Solutions) - Kinsta
The 408 Request Timeout error means the request you sent to the website server took longer than the server was prepared to wait....
Read more >
How to Fix a 408 Request Timeout Error - Lifewire
The 408 Request Timeout error means the request you sent to the website server took longer than it was prepared to wait.
Read more >
How to Fix a 408 Request Timeout Error - KeyCDN Support
A 408 Request Timeout message is an HTTP status code that is returned to the client when a request to the server takes...
Read more >
408 Request Timeout - HTTP Status Code Glossary - WebFX
HTTP Status Code 408: The server did not receive a complete request message within the time that it was prepared to wait.
Read more >
408 Request Timeout: What It Is and How to Fix It - Airbrake Blog
The 408 Request Timeout is an HTTP response status code indicating that the server did not receive a complete request from the client...
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