Asciinema: 无法上传录音 - 但可通过 curl 工作

创建于 2019-05-03  ·  11评论  ·  资料来源: asciinema/asciinema

你好呀,

由于某种原因, asciinema无法上传录音。

  • 我尝试了重试命令 - 但这也不起作用。
  • 我可以使用asciinema play命令播放本地文件。
  • 我可以通过 curl 上传(命令来自 IRC 频道,但目前不记得该命令)。
  • 我通过 snap 包安装了 asciinema。

``` $ which asciinema
/snap/bin/asciinema

## Error

$ asciinema 上传/tmp/tmpc5xmedw5-ascii.cast
asciinema:上传失败:服务器出现临时问题。 请稍后再试。
asciinema:稍后通过运行重试:asciinema upload /tmp/tmpc5xmedw5-ascii.cast

## System

主机:bashfulrobot 内核:5.0.0-13-generic x86_64 位:64
桌面:i3 4.16.1 发行版:Ubuntu 19.04(Disco Dingo)

## Asciinema Version

asciinema 2.0.2

## Python Versions

蟒蛇--版本
蟒蛇 2.7.16

python3 --version
蟒蛇 3.7.3

``

谢谢你。

最有用的评论

这仍然存在,平台字符串:

>>> platform.platform();
'Linux-5.4.0-3-amd64-x86_64-with-debian-bullseye-sid'

所有11条评论

@bashfulrobot我想它是由 Disco Dingo 引起的 :) 我对 Xubuntu 19.04 有同样的问题。

@vranystepan感谢您确认这个问题,而且我不是唯一一个。

您可以尝试使用curl上传,如图所示吗? https://gist.github.com/sickill/514860f60d01ed9218be4ede51a33887

这将告诉我们这是操作系统特定的问题(SSL 证书)还是 Ubuntu 的 Python 3 构建问题。

@sickill这可以通过 curl 正常工作(在原始帖子中提到)。 :-) 但我只是再次运行命令 - curl 根本没有问题。 事实上,我的临时解决方法是一个 shell 别名。

我发现了问题,这不是我所期望的:)

在 Ubuntu Disco 上,发送的 User-Agent 字符串类似于:
asciinema/2.0.2 CPython/3.7.3 Linux/4.9.125-linuxkit-x86_64-with-Ubuntu-19.04-disco

最后一部分是platform.platform()的结果,它基本上是一个uname

到现在为止还挺好。

现在,asciinema.org 上的 nginx 使用来自https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker 的“坏机器人”阻止列表,该列表将用户代理字符串与以不良行为而闻名的机器人列表相匹配。

看起来这个块列表包含正则表达式~*\bDisco\b ...

🤦‍♂

我已将其从阻止列表中删除,并在 Ubuntu Disco 上进行了测试,现在似乎可以正常工作了。

对于那个很抱歉!

确认工作正常! 希望 19.10 没有任何变化(我们刚刚开始研究它)。

感谢您的时间!

伟大的! 非常感谢!

这似乎与我在 Debian 上遇到的问题相同; curl 上传有效,Python 客户端失败。

$ uname -a
Linux carbo 4.19.0-5-amd64 #1 SMP Debian 4.19.37-6 (2019-07-18) x86_64 GNU/Linux

$ python -V
Python 3.7.4+

$ pip list | grep asciinema
asciinema                     2.0.2

附议@stefanv的评论。 curl 上传工作正常,官方 Debian 软件包在 Debian Bullseye 上失败:

$ uname -a
Linux shibori 5.2.0-3-amd64 #1 SMP Debian 5.2.17-1 (2019-09-26) x86_64 GNU/Linux

$ asciinema --version
asciinema 2.0.2

这仍然存在,平台字符串:

>>> platform.platform();
'Linux-5.4.0-3-amd64-x86_64-with-debian-bullseye-sid'

在花了几个小时试图找出 MacOS Catalina 上的 SSL 问题之后

asciinema: upload failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>
asciinema: retry later by running: asciinema upload /var/folders/2j/7schjxl10bgdwl5_bsznbqm00000gn/T/tmp62k0vrw7-ascii.cast

提供的任何解决方案都不适合我。 curl 解决方法上传我的test录音。
我看到此问题已关闭,但是否有解决方案。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

redaxmedia picture redaxmedia  ·  3评论

ThomasWaldmann picture ThomasWaldmann  ·  3评论

pfalcon picture pfalcon  ·  4评论

deeplook picture deeplook  ·  10评论

lebinh picture lebinh  ·  3评论