~emersion/hut#47: 
hut seems to hang and sets noecho when missing permissions

I'm on current main with Debian GNU/Linux as underlying OS:

[hut]$ git rev-parse HEAD
6c85e1e3726a54e10783db84d72e0eafa1428090
[~]$ cat /etc/debian_version 
12.5

When I start a hut command where I'm lacking permissions, hut seems to hang. When Ctrl-C'ing out of that, terminal echo is gone, so I have to reset the terminal:

[~]$ hut builds list jobs
gqlclient: server failure: Access denied, missing PROFILE:RO grant
^^^^^ "hangs" here
^C
[~]$  <<<<< no echo when typing here
Status
REPORTED
Submitter
~jschmidt
Assigned to
No-one
Submitted
11 months ago
Updated
11 months ago
Labels
No labels applied.

~jschmidt 11 months ago

Same happens when provoking any kind of error:

[tmp]$ hut builds list foobarbaz
no such user
^C

~xenrox 11 months ago

This sounds like the known bug with hut's pager implementation. You could try to invoke a non-pager command like hut meta show foobarbaz to make sure. You can get more information here.

~jschmidt 11 months ago

Yes, that seems to be it, thanks for the pointer. (Only that hut meta show foobarbaz actually does return some user information - probably some left-overs ...)

I guess we can leave this todo open for improved visibility?