mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[GH-ISSUE #353] Cannot upload recording - but works via curl #840
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#840
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bashfulrobot on GitHub (May 3, 2019).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/353
Hi there,
For some reason, the
asciinemacannot upload the recording.asciinema playcommand.Error
System
Asciinema Version
Python Versions
Thank you.
@vranystepan commented on GitHub (May 12, 2019):
@bashfulrobot I suppose it's caused by Disco Dingo :) I have the same issue with Xubuntu 19.04.
@bashfulrobot commented on GitHub (May 13, 2019):
@vranystepan Thank you for confirming the issue and that I am not the only one.
@ku1ik commented on GitHub (May 14, 2019):
Can you try uploading with
curlas shown here? https://gist.github.com/sickill/514860f60d01ed9218be4ede51a33887This will show us wether this is some OS specific issue (SSL certs) or maybe Ubuntu's Python 3 build issue.
@bashfulrobot commented on GitHub (May 21, 2019):
@sickill This works without issue via curl (mentioned in the original post). :-) But I just ran again with the command - no issues via curl at all. In fact, my temp workaround is a shell alias.
@ku1ik commented on GitHub (May 29, 2019):
I found the problem, and it's not something I expected :)
On Ubuntu Disco the User-Agent string that is sent is something like:
asciinema/2.0.2 CPython/3.7.3 Linux/4.9.125-linuxkit-x86_64-with-Ubuntu-19.04-discoThe final part is the result of
platform.platform()which is basically auname.So far so good.
Now, the nginx on asciinema.org uses "bad bots" blocking list from https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker which matches user agent string against a list of bots known for bad behavior.
It appeared that this block list contains regexp
~*\bDisco\b...🤦♂
I've removed it from the block list, tested on Ubuntu Disco, seems to be working ok now.
Sorry about that!
@bashfulrobot commented on GitHub (May 29, 2019):
Confirmed as working! Hopefully, nothing changes in 19.10 (we just started working on it).
Thank you for your time!
@vranystepan commented on GitHub (Jun 5, 2019):
Great! Thank you so much!
@stefanv commented on GitHub (Sep 27, 2019):
This seems to be the same issue I am experiencing on Debian; curl upload works, Python client fails.
@rlue commented on GitHub (Oct 30, 2019):
Seconding @stefanv's comment. curl upload works and official Debian package fails on Debian bullseye:
@verfriemelt-dot-org commented on GitHub (Jan 25, 2020):
this is still present, the plattform string:
@askdba commented on GitHub (Jan 30, 2021):
After spending hours trying to figure out SSL issues on MacOS Catalina
None of the solutions provided worked for me. The curl workaround uploads my
testrecording.I see this issue is closed but is there a resolution.