How to Fix “Oops, an error occurred! Unexpected token” during Sora ?

Effective troubleshooting tips for resolving the "Unexpected Token Error" when logging into Sora, OpenAI's AI video generation tool.

OpenAI has finally launched its AI video generation tool for ChatGPT Plus and Pro s. Sora receives text prompts from the s and creates an extremely realistic video based on it.

After its public release, the platform saw a mad rush of s trying to sign up for the platform. That resulted in the OpenAI servers getting incapacitated at serving the request of so many s.

During the / process, s started getting various error messages.

One such error was the unexpected token error. The complete error message would look like this “Oops, an error occurred! Unexpected token ‘<’ “<!DOCTYPE” …is not valid JSON.

Interestingly, the ChatGPT Plus/Pro s, with eligibility to use Sora also faced the issue of logging into Sora. They, too, faced the “unexpected token” error.

This error caused frustration among all the s who were eager to try out Sora. In this guide, we have discussed the possible reasons for the error and provided you with the necessary troubleshooting tips to fix it.

Reasons for the “Unexpected Token Error…DOCTYPE is not Valid” in Sora

Normally, s intending to utilize Sora start by inputting their credentials to access the platform.

When they submit their credentials, they face a denial with “Unexpected token ‘<’ error” which signifies some problem at the developer’s end.

The error indicates that the JavaScript code received some non-JSON data that cannot be processed.

If the server is going through maintenance, you may experience problems during the process.

Sora Unexpected token error at the

During , due to several technical issues at your end, you may come across the Unexpected token ‘<‘ error.

It could be the buggy OpenAI app if you access Sora from your phone.

Problematic browser extensions or corrupted browser cache may also cause issues in loading a webpage resulting in several errors during the process.

Troubleshooting Tips to Fix the “Unexpected Token Error” in Sora

As mentioned in the previous section, an issue originating due to a problem at the server’s end can only be fixed by the product’s developer team.

s most likely have no role to play except waiting until the issue is resolved by OpenAI.

Still, you may follow some of these tips to do your part in trying to check if it resolves the issue on Sora.

Check if Sora’s Server is Down

Your first move should be checking if OpenAI servers are down. Head to the official OpenAI status page and check if Sora is down at the moment.

When the problem is at the server’s end, all you have to do is wait until the issue is fixed.

Is ChatGPT down today

Maybe try logging in to Sora after a couple of hours.

When the server maintenance is finished or the rush to use the platform is low, you should be able to without any problem.

Clear the Browser Cache

When junk data remains in the cache and even though webpage bugs and technical issues have been fixed, you continue to encounter errors while landing on the page or performing actions such as or .

So, it is suggested to clear the corrupt data from the browser cache.

To refresh the browser cache, follow these steps.

  1. Press Ctrl +Shift +Delete hotkeys while the browser is active.
  2. Select the Time Range to All Time on the Clear Browser Data .
  3. Choose cached images and files, thumbnails, and cookies.
  4. Press Delete Data and relaunch the browser.
    how to clear chrome browser data in 2025

These steps apply to all the primary web browsers used around the world.

Turn Off Problematic Browser Extensions

Browser extensions like ad-blocker, VPN, or other plugins that have not been updated may cause the problem during browsing.

Disable the browser plugins temporarily and check if you can seamlessly to Sora without getting any “unexpected error”.

  1. Launch your browser.
  2. In the address bar, type chrome://extensions.
  3. Press the toggle next to the extension you want to turn off.
    disable an extension on Chrome

I’m using Chrome browser. You can use this same command on other browsers browser_name://extensions.

On Mozilla Firefox, type about:addons to view the installed extensions.

Also, avoid using a VPN to access Sora, if you are from a region where the AI video generator has not been released officially.

Trying to to Sora from an uned region through a VPN may cause you to face errors.

OpenAI has declared a warning regarding using unauthorized means to access Sora, which would lead to removal.

OpenAI sora ed countries

Update the Browser App on Your Phone

Are you getting the “Oops, an error occurred! Unexpected token ‘<’ when logging into Sora from the browser app on your mobile?

Check for available app updates for your browser app on the Play Store or App Store.

  1. Go to Play Store and tap the connected Gmail avatar at the top.
  2. Go to Manage Apps and Device > Updates Available.
  3. If your preferred browser has a new build available, tap on the Update button.
    update mozilla firefox on Android

Similarly,

  1. iOS s can launch the App Store.
  2. Go to the active Apple ID and search for new app updates for your primary browser.
  3. Press the Update button to install it.
    update Microsoft Edge for iOS

After updating to the latest version, launch the browser, and use the correct email ID to to Sora.

If the error was due to a bug on the browser, check if the new app build fixed the problem.

Refresh the Page and Retry

You may try this simple troubleshooting method that requires you to simply refresh the webpage.

Often due to bad network connectivity, all the elements on a webpage may not load.

Due to that, you may encounter errors when trying to sign up or to the site.

Press the refresh button on the page of Sora and let the page load completely.

refresh the Sora webpage

Now, proceed to to Sora by entering your credentials through Google/Microsoft/Apple .

OpenAI

Even after applying various fixes if you keep encountering the “Oops, an error occurred! Unexpected token ‘<’ “<!DOCTYPE” …is not a valid JSON error, connect to the OpenAI .

how to  OpenAI

Alternatively, you can post about your issue on the official OpenAI community.

Here s from around the world who use the OpenAI products, share their experiences with OpenAI tools, discuss technical issues, and are helped by fellow s and developers.  

Bottom Line

OpenAI managed the errors at their end to handle a large number of requests that wanted to use Sora.

This fixed the “unexpected token error” for most s trying to to Sora to generate AI videos.

Currently, if you happen to come across the same error notification while logging into Sora, implement the troubleshooting tips offered in this guide.

If these tips don’t solve the issue, visit the OpenAI or official forum to share your queries. Maybe someone from the community will offer a way to fix it.

If you've any thoughts on How to Fix “Oops, an error occurred! Unexpected token” during Sora ?, then feel free to drop in below comment box. Also, please subscribe to our DigitBin YouTube channel for videos tutorials. Cheers!

Swayam Prakash
Swayam is a professional content creator with 6-years of experience in conceptualizing, creating, and managing tech-based content for notable online publishing firms. At DigitBin, he creates quality-rich and simple content related to Windows OS, Android, iOS, social media, cloud computing, and other general consumer technology. Me on Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *