Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle timeouts more gracefully #57

Open
Kaligule opened this issue Apr 11, 2022 · 0 comments
Open

Handle timeouts more gracefully #57

Kaligule opened this issue Apr 11, 2022 · 0 comments

Comments

@Kaligule
Copy link

Currently, when a timeout occurs, a new window is opened. It will show something like the following:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (28) Failed to connect to www.google.de port 81 after 2704 ms: Connection timed out

The echo area displays Code block evaluation complete.

While nothing of this is wrong, it is also a bit anointing for testing because you have to close the window manually.

desired behavior

It would be way cooler if on timeouts we could just get the error message in the echo area:

curl: (28) Failed to connect to www.google.de port 81 after 2704 ms: Connection timed out

How to reproduce

The above output was produced with the following code:

#+begin_src http :max-time 3
GET www.google.de:81
#+end_src
ag91 added a commit to ag91/ob-http that referenced this issue Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant