Fix: ‘Your client issues a malformed or illegal request’

Some users have been encountering the Youtube Error 400 when visiting some or any Youtube page from a Windows PC. The error message is rather ambiguous and reads “Your client has issued a malformed or illegal request. That’s all we know”. 

Your client issues a malformed or illegal request
Your client issues a malformed or illegal request Fix

Looking at the status code, the error seems to indicate that Youtube serves is incapable of processing your request due to a client error. The reasons why this is commonly happening is an invalid request message, framing or a deceptive request routing.

After investigating the issue, it seems like the Youtube Error 400 is sometimes caused by a selection of cookies that are being misused. However, most of the time, the issue occurs on Chrome versions that are actively using the Great Suspender extension. As it turns out, the problem is caused by the matter in which the scroll position is recorded in the cookies. After a while, the size of the cookie will surpass the limit and the affected user will start seeing the Youtube Error 400 message.

How to fix the Youtube Error 400

As of know, there is no other way of resolving the issue than deleting the cookies responsible for the apparition of this issue. But keep in mind that unless you used some kind of Chrome extension capable of blocking the gsScrollPos cookie from exceeding the size, you’ll likely end up getting the Youtube Error 400 message again after some time.

If you’re struggling with the Youtube 400 error, the methods below will help you overcome the issue. Please follow the potential fixes below in order until you encounter a fix that manages to re-grant you the normal functionality of YouTube.

If you’re looking for a quick and easy fix, follow Method 1. If you want to specifically delete the cookies that are causing the issue without removing the rest of Youtube’s related cookies, follow Method 2.

Method 1: Deleting the gsScrollPos cookie via siteData

This first method involves launching Chrome’s SiteData page and deleting the cookie responsible for the apparition of the Youtube Error 400 manuallyBut keep in mind that following the steps below will delete all related Youtube cookies, not just the gsScrollPos cookie (which is responsible for this issue).

Here’s a quick guide on to do this:

  1. Open Google Chrome and type (or paste) “chrome://settings/siteData” in the address bar.
  2. Next, use the search function in the top-right corner and search for “youtube“. Shortly after you hit Enter, you should see two separate sets of cookies. Then, simply hit the Remove all shown button above them to delete any related YouTube cookie.
    If you’re looking for a more targeted approach, move over to Method 2. 

Method 2: Removing the gsScrollPos cookie via Developer Tools

A more direct approach would be to use Chrome’s Developer Tools to specifically hunt for the gsScrollPos cookie and delete every occurence associated with YouTube. Going down this avenue will enable you to leave the other YouTube related cookies unaffected.

Here’s a quick guide on deleting the gsScrollPos cookie via Developer tools:

  1. Open Google Chrome and visit Youtube. Ignore the Youtube Error 400 for now. Instead, press Ctrl + Shift + I to open Developer Tools.
  2. In the Developer tools, hit the more error and choose Application.
  3. Now from the left side of the developer pane (the one with various menus), expand the Cookies tab, then select the link associated with YouTube.
  4. Next, find every cookie that starts with gs, selects them systematically and hit the Del key to get rid of all occurrences.
  5. Once all the responsible cookies have been deleted, reload the page and YouTube should be working again.

Even if you managed to resolve the issue, keep in mind that you are very likely to experience the same behavior again if you will continue using The Great Suspender extension. One solution to take care of the problem indefinitely is to disable the extension for good.

However, if you are fond of using The Great Suspender to automatically suspend unused tabs, you can make use of another Chrome extension such as Edit This Cookie to block the usage o the gsScrollPos cookie permanently.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

15
    MO
    Mole Aug 15, 2018

    Thanks i didn’t know that Gspost was from the Great suspender extension

    ER
    Edson Rocha Sep 11, 2018

    Thank you. The method 1 fixed the error on my browser.
    Obrigado. O método 1 resolveu o erro no meu navegador.

    JA
    Javi Dec 8, 2018

    Thank you very much! This is the second time I found you and the first time seems like months ago even though I use youtube a lot. Much appreciated.

    EG
    EB Gold Dec 21, 2018

    This worked — thank you!

    D
    Dheinny M. Jan 9, 2019

    Method 2 works fine to me. Thank you.

    RS
    Ryan Scott Feb 2, 2019

    turns out that The Great Suspender is to blame. I told it not to suspend YouTube, ever. and it seems to be working.

    Reply
    IP
    Ian Parra Feb 18, 2019

    worked as a charm thank you!

    EL
    Eric Levine Feb 19, 2019

    THANK YOU

    OT
    Otorres Feb 25, 2019

    Yep! That did it! Thank you!

    GH
    George Hervin Apr 1, 2019

    Thank you so much! This problem has been plaguing me so much lately, and I’m glad to have it over with.

    WI
    willphule Apr 9, 2019

    Thank You! Method 2 works perfectly!

    AN
    Anshul May 8, 2019

    Amazing! Thanks for the detailed explanation.

    KM
    Kenny Mansfield Jul 12, 2019

    I don’t use the Great Suspender and my problem wasn’t with YouTube, it was when clicking links to Amazon from a Google search results page. I followed the instructions to use the developer’s tool, but used it on to “400” error page. It displayed probably more than 40 “gsScrollPos” instances. I deleted them all and the next time I clicked an Amazon link from Google search, it worked! Thanks for the info.

    Reply
    NI
    NinjaMarion Aug 6, 2019

    Had no clue what was doing it, only that my subs feed wasn’t working in normal Chrome but worked in incognito. Tried disabling all my extensions, browser update & restart, computer restart… nothing. Finally Googled and this was the first result. 2 minutes later, it’s fixed. Thanks.

      SW
      SWLinPHX Nov 6, 2019

      Note, if you are on a Mac the key combo for Google Chrome’s Developer Tools is Command-Option-I (not Control-Shift-I).

      Reply