Title: JavaScript errors in console
Last modified: January 22, 2021

---

# JavaScript errors in console

 *  Resolved [onlyonemj](https://wordpress.org/support/users/onlyonemj/)
 * (@onlyonemj)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-errors-in-console-3/)
 * There seems to be issues with a couple of CPTs I have on a website. Disabling
   REST API setting seems to fix it, but Gutenberg goes away if I do this. The errors
   I am getting are as follows:
 * ERROR 404: [https://foo.bar/wp-json/wp/v2/users/?who=authors&per_page=100&_locale=user](https://foo.bar/wp-json/wp/v2/users/?who=authors&per_page=100&_locale=user)
 * UNCAUGHT (IN PROMISE) in Object, code: “rest_no_route”, message: “No route was
   found matching the URL and request method.” [https://foo.bar/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25](https://foo.bar/wp-includes/js/dist/data.min.js?ver=777f925bfe1a2aea2a86b7b9ae6aed25)
 * Are you able to replicatE?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-errors-in-console-3/#post-13945001)
 * We would need to see a full stack trace of the javascript error to get a better
   idea of what scripts are being included and used in this case. I don’t believe
   javascript coming from CPTUI itself should be getting involved in REST API requests,
   as we try to limit the loading to just our settings pages. However, I could be
   wrong. Potentially setting SCRIPT_DEBUG to true in your wp-config.php could help
   with that.
 * For what it may or may not be worth, when i drop that API url into my local install,
   I get a message of “Sorry, you are not allowed to query users by this parameter.”
   so you may have something else configured a bit more.

Viewing 1 replies (of 1 total)

The topic ‘JavaScript errors in console’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-errors-in-console-3/#post-13945001)
 * Status: resolved