Title: 200 SyntaxError: Unexpected token
Last modified: September 27, 2024

---

# 200 SyntaxError: Unexpected token

 *  Resolved [ULinn](https://wordpress.org/support/users/ulinn/)
 * (@ulinn)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/200-syntaxerror-unexpected-token/)
 * I just installed Code profiler and I get the following error when I start profiling.
   Tried it with several users and settings.
 * The HTTP server returned the following error: 200 SyntaxError: Unexpected token‘
   <‘, “
 * Front- and Backend of my site are available and show no error in the browser.
 * What can I do to get the profiler working?
 * Best regards
 * Uli

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/200-syntaxerror-unexpected-token/#post-18042450)
 * It looks like the site returns some characters when the profiler connects to 
   the admin AJAX ednpoint (/wp-admin/admin-ajax.php).
 * Can you try to open your browser’s console ( `CTRL + Shift + J` ), click on the“
   Start profiling” button and see if there’s any error? You can also check the 
   result of the AJAX request in the console “Network” tab (you can filter on the`
   admin-ajax` substring). That will show you the response to the HTTP request.
 *  Thread Starter [ULinn](https://wordpress.org/support/users/ulinn/)
 * (@ulinn)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/200-syntaxerror-unexpected-token/#post-18043227)
 * In the Network Tab get a 400 Bad Request for wp-admin/admin-ajax.php
 * The console says:
 * admin.php:1 Unchecked runtime.lastError: The message port closed before a response
   was received.
   toolbar_init.js:58 Uncaught TypeError: Cannot read properties of
   null (reading ‘addEventListener’)at toolbar_init.js:(anonym)@toolbar_init.js:
   58
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/200-syntaxerror-unexpected-token/#post-18044492)
 * The request is blocked with a 400 HTTP code.
   Do you have any security plugin,.
   htaccess rule or server application that protects the admin AJAX endpoint?Go 
   to the profiler page, click the “Support” tab and search for `[admin-ajax]` in
   the system information report. Does it show an error?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘200 SyntaxError: Unexpected token’ is closed to new replies.

 * ![](https://ps.w.org/code-profiler/assets/icon-256x256.png?rev=3143506)
 * [Code Profiler - WordPress Performance Profiling and Debugging Made Easy](https://wordpress.org/plugins/code-profiler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-profiler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-profiler/)
 * [Active Topics](https://wordpress.org/support/plugin/code-profiler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-profiler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-profiler/reviews/)

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/200-syntaxerror-unexpected-token/#post-18044492)
 * Status: resolved