# Bug: Webhook URLs are capped at 512 characters

**URL:** <https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258>\
**Category:** Plex Labs\
**Tags:** webhooks\
**Created:** [September 25, 2022, 12:26am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258 "2022-09-25T00:26:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwigham](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wwigham/32/288931_2.png) [@wwigham](https://forums.plex.tv/u/wwigham)\
**Post date:** [September 25, 2022, 12:26am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258/1 "2022-09-25T00:26:15Z")

</div>

I have a webhook I’m trying to set up that includes a token in the URL querystring - said token is very long, around 800 characters, and PLEX quietly truncates any URL you put into the webhook input to 512 characters on save, which is putting quite a damper on things. A larger limit would be nice - a few thousand would give me some space - every major browser allows at least 2048 characters, usually more.

This is a dupe of [Webhook cuts off long urls ( 1000+ characters does not work)](https://forums.plex.tv/t/webhook-cuts-off-long-urls-1000-characters-does-not-work/450440), but that’s locked and closed with no action. I’d hope it’s not too hard to bump the number for those of us making homebrew automation APIs?

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [September 25, 2022, 12:46am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258/2 "2022-09-25T00:46:14Z")

</div>

I suspect the limitation is database in the cloud, which is probably not going to change. Why would you need such a long URL? In most cases you can replace it with some sort of token which is used to look up the additional information.

---

<div class="post-metadata">

**Author:** ![wwigham](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wwigham/32/288931_2.png) [@wwigham](https://forums.plex.tv/u/wwigham)\
**Post date:** [September 25, 2022, 12:53am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258/3 "2022-09-25T00:53:52Z")

</div>

It’s way, way easier to keep everything stateless inside the URL. I imagine the service whose token I’m consuming and passing along has the same philosophy, which is why it’s so long - it probably contains encrypted authentication data. I could make do with being able to send along a custom field with the body; but allowing more data in the URL querystring just seems easier?

---

<div class="post-metadata">

**Author:** ![wwigham](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wwigham/32/288931_2.png) [@wwigham](https://forums.plex.tv/u/wwigham)\
**Post date:** [September 25, 2022, 1:17am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258/4 "2022-09-25T01:17:16Z")

</div>

Specifically, for context, an auth token/code for anilist is around 1000 characters long right now (thanks JSON Web Tokens!). I don’t _really_ want to spin up a service whose only job is fetching auth tokens from shorter IDs for a hobby project for me and a few friends if I can help it, since then I need to worry about authentication myself, since I’m actually storing state (except I need to ensure mine fits within the 512 character limit)… Once I start applying that much effort I’m most of the way to rebuilding simkl 🤷‍♀️.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [September 25, 2022, 1:21am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258/5 "2022-09-25T01:21:03Z")

</div>

> [@wwigham](#):
>
> but allowing more data in the URL querystring just seems easier?

For you, yes. For us we’d need to alter a database schema and do a migration, which can be painful.

---

<div class="post-metadata">

**Author:** ![wwigham](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wwigham/32/288931_2.png) [@wwigham](https://forums.plex.tv/u/wwigham)\
**Post date:** [September 25, 2022, 1:33am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258/6 "2022-09-25T01:33:13Z")

</div>

Just as a point of comparison, Github allows webhook URLs of length 1024 at least, which’d be just enough for me to squeeze in an auth token of this size into the URL.

PLEX’s own webapp makes many URLs where query parameters bring the length of the URLs to 500+ characters - and that has the benefit of the auth getting stored in a cookie. It really is a fairly small limit.

---

<div class="post-metadata">

**Author:** ![Magenof](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/magenof/32/4503_2.png) [@Magenof](https://forums.plex.tv/u/Magenof)\
**Post date:** [September 25, 2022, 3:01am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258/7 "2022-09-25T03:01:17Z")

</div>

Hehe, I was also making an anilist hobby project in the locked thread, an anilist plex scrobbler. I remember having to swap to tautulli because plex webhooks became unreliable, and eventually switched to another media server.

But here was my last working code in dotnet core:

> **[GitHub - PieterVreysen/AnilistPlexScrobbler: Anilist scrobbler for Plex webhooks](https://github.com/PieterVreysen/AnilistPlexScrobbler)**
>
> Anilist scrobbler for Plex webhooks. Contribute to PieterVreysen/AnilistPlexScrobbler development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [September 25, 2022, 3:51am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258/8 "2022-09-25T03:51:43Z")

</div>

> [@wwigham](#):
>
> Just as a point of comparison, Github allows webhook URLs of length 1024 at least, which’d be just enough for me to squeeze in an auth token of this size into the URL

I’ll raise an internal issue.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 24, 2022, 3:52am UTC](https://forums.plex.tv/t/bug-webhook-urls-are-capped-at-512-characters/812258/9 "2022-12-24T03:52:22Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
