Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8995113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:34:34+00:00 2026-06-15T23:34:34+00:00

Does anybody know how to suppress errors from being shown in browser console when

  • 0

Does anybody know how to suppress errors from being shown in browser console when executing dojo/request.

For example, I make a post request to backend which returns HTTP 400 telling me that an error has occurred because of validation check.

I will handle it appropriately in my code, show some validation warnings but still dojo/request logs the error into console:

Example

This example is on HTTP500, but it’s the same in HTTP400.

This is a code snippet

var results = request.post("/webapp/target/save", {
                data:       dojo.toJson(this._dataObject),
                headers:    this.headers,
                handleAs:   "json"
            });

There has to be a way to hide this on production code 🙂

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:34:35+00:00Added an answer on June 15, 2026 at 11:34 pm

    I do not think this is possible. Reporting network errors is not a feature of Dojo, nor plain vanilla JavaScript. Even event.preventDefault()/event.stopPropagation() when handling crude XMLHttpRequest or console.error = function(){} have no effect.

    You can suppress network errors logging in Firebug:
    enter image description here

    Dragonfly and F12 Developer Tools in IE9 do not log network errors into the console. Chrome Dev Tools does and I cannot find the way to disable it.

    Users do not use your application with Dev Tools opened, so they won’t see any errors at all and those who are willing to see them have dozens of methods to accomplish that hacking. Anyway, I would also prefer having an option here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody know why my getAltitude in the following always returns 0? package com.example.helloandroid;
Does anybody know of a way to make jQuery Mobile load only on pages
Does anybody know how to properly read from a file an input that looks
Does anybody know what the recommend method is to copy data from one table
Does anybody know why the Console.In, Console.Out and Console.Error properties are read only? One
Does anybody know whether it's possible to make a given PowerBuilder application (for which
Does anybody know of a good solution that can be used from php that
Does anybody know how to make a jQery function that has more than one
Does anybody know a quick way to force an outgoing http request to go
Does anybody know how to make inmobi interstitial ads only landscape orientation for Android?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.