# Improve error message \`API endpoint not found.\`

**URL:** <https://discourse.asciinema.org/t/improve-error-message-api-endpoint-not-found/943>\
**Category:** Ideas\
**Created:** [March 15, 2025, 6:27pm UTC](https://discourse.asciinema.org/t/improve-error-message-api-endpoint-not-found/943 "2025-03-15T18:27:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![test11937375](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@test11937375](https://discourse.asciinema.org/u/test11937375)\
**Post date:** [March 15, 2025, 6:27pm UTC](https://discourse.asciinema.org/t/improve-error-message-api-endpoint-not-found/943/1 "2025-03-15T18:27:25Z")

</div>

Hi there,  
this is a small suggestion on how to improve the following error message.  
I’ve just set up my asciinema server using podman and nginx as reverse proxy. Everything worked fine except for uploading recordings. I recieved the Error  
`asciinema: upload failed: API endpoint not found. This asciinema version may no longer be supported. Please upgrade to the latest version.`  
I checked my versions and updated my client from 2.2.0 to 2.4.0 even though this wasn’t necessary.  
I double and triple checked my ASCIINEMA\_API\_URL variable. But it took me one day to realize, that the variable was missing the little `s` in `https`.

My suggestion: Edit the error message to something like  
`asciinema: upload failed: API endpoint not found. This may be due to one of the following reasons: 1. This asciinema version may no longer be supported. Please upgrade to the latest version. 2. If you're self-hosting, ensure the ASCIINEMA_API_URL variable is set correctly including http/https.`

What do you think about this?

---

<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:** [May 2, 2025, 3:32pm UTC](https://discourse.asciinema.org/t/improve-error-message-api-endpoint-not-found/943/2 "2025-05-02T15:32:56Z")

</div>

The upcoming asciinema CLI 3.0 has been rewritten in Rust and has a completely new error handling, there’s a chance we’ll see a more useful error message for this particular case.
