# Asciinema: upload failed: API endpoint not found

**URL:** <https://discourse.asciinema.org/t/asciinema-upload-failed-api-endpoint-not-found/126>\
**Category:** Help\
**Created:** [October 24, 2018, 9:51am UTC](https://discourse.asciinema.org/t/asciinema-upload-failed-api-endpoint-not-found/126 "2018-10-24T09:51:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vimiix](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/vimiix/32/71_2.png) [@vimiix](https://discourse.asciinema.org/u/vimiix)\
**Post date:** [October 24, 2018, 9:51am UTC](https://discourse.asciinema.org/t/asciinema-upload-failed-api-endpoint-not-found/126/1 "2018-10-24T09:51:17Z")

</div>

When I uploading my local cast file by use below command:

```auto
asciinema upload xxx.cast

```

I get this error.

```auto
asciinema: upload failed: API endpoint not found. 
This asciinema version may no longer be supported. 
Please upgrade to the latest version.

```

But, my asciinema version is 2.0.1

How to solve it, thanks a lot.

* * *

platform: iTerm + Mac + oh-my-zsh

I installed asciinema by Homebrew.

---

<div class="post-metadata">

**Author:** ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)\
**Post date:** [December 2, 2018, 11:50am UTC](https://discourse.asciinema.org/t/asciinema-upload-failed-api-endpoint-not-found/126/2 "2018-12-02T11:50:29Z")

</div>

Are you using your own asciinema-server instance? What is the API host in the URL printed by `asciinema auth`? Don’t paste full URL here, as it contains your private install ID! 😉 Just the part before `/connect` is what interests me.

---

<div class="post-metadata">

**Author:** ![vimiix](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/vimiix/32/71_2.png) [@vimiix](https://discourse.asciinema.org/u/vimiix)\
**Post date:** [December 2, 2018, 3:27pm UTC](https://discourse.asciinema.org/t/asciinema-upload-failed-api-endpoint-not-found/126/3 "2018-12-02T15:27:24Z")

</div>

Thanks for your reply.

I got this message:

```auto
Open the following URL in a web browser to link your install ID with your asciinema.org user account:

http://asciinema.org/connect/xxxxxxx

This will associate all recordings uploaded from this machine (past and future ones) to your account, and allow you to manage them (change title/theme, delete) at asciinema.org.

```

---

<div class="post-metadata">

**Author:** ![vimiix](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/vimiix/32/71_2.png) [@vimiix](https://discourse.asciinema.org/u/vimiix)\
**Post date:** [December 2, 2018, 3:33pm UTC](https://discourse.asciinema.org/t/asciinema-upload-failed-api-endpoint-not-found/126/4 "2018-12-02T15:33:56Z")

</div>

The picture below is a screenshot of my operation.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/asciinema/original/1X/9917c838bcf4a8c10f7b1676114d235044d17f1b.png)

---

<div class="post-metadata">

**Author:** ![ku1ik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/ku1ik/32/171_2.png) [@ku1ik](https://discourse.asciinema.org/u/ku1ik)\
**Post date:** [December 2, 2018, 4:39pm UTC](https://discourse.asciinema.org/t/asciinema-upload-failed-api-endpoint-not-found/126/5 "2018-12-02T16:39:07Z")

</div>

Since asciinema 0.9.9 the API URL is HTTPS, not HTTP. That means you must have it overwritten to HTTP somewhere.  
Check env variable `ASCIINEMA_API_URL` (if you have it set), or the [config file](https://asciinema.org/docs/config) and make sure it’s HTTPS.

---

<div class="post-metadata">

**Author:** ![vimiix](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.asciinema.org/vimiix/32/71_2.png) [@vimiix](https://discourse.asciinema.org/u/vimiix)\
**Post date:** [December 4, 2018, 6:29am UTC](https://discourse.asciinema.org/t/asciinema-upload-failed-api-endpoint-not-found/126/6 "2018-12-04T06:29:02Z")

</div>

Thank you very much~  
It makes sense to me.  
My problem is solved.👍🙏
