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 7431111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:14:41+00:00 2026-05-29T09:14:41+00:00

While executing this below Dojo code the call back mehod is calling the onFailure.

  • 0

While executing this below Dojo code the call back mehod is calling the onFailure.
But if i will do

console.warn("Resp Code:"+ioargs.xhr.status);

It gives me 200 as status code why this is happening,it should go to the load but it is calling the error.

dojo.xhrGet({ preventCache : "true",
        url : path,
        sync:true,
        load : onSuccess,
        error : onFailure,
        handleAs : "json"
    });
  • 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-05-29T09:14:42+00:00Added an answer on May 29, 2026 at 9:14 am

    More than likely, since you’ve told the request to handle the response as json, the response you are getting back is not actually json, which can generate the error. From the Live Docs @ dojotoolkit.org:

    This parameter specifies how to handle the data returned from the server. It usually takes values of ‘text’, ‘xml’, or ‘json’. What those values do is instruct it to try and hand the data to the asynchronous callback functions in that format. Naturally if you specify a format that doesn’t match what the server sends you will likely get an error.

    Make sure the response is sending back valid JSON and the server is sending it as the application/json content-type, otherwise set your handleAs to text.

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

Sidebar

Related Questions

While executing the code below I am getting HTTP 500 Internal Server Error. public
Below is the procedure which i have taken from net..but while executing its giving
While executing the code below i am getting javascript error expected object though i
I am executing this statement under while (($data=fgetcsv($this->fin,5000,;))!==FALSE) Now what I want in else
The offending block of code is below. The code almost always works, but sometimes
I have code below that is getting called from a while loop so it's
I am trying to execute the below code from a console app. ConfigurationSection aggregatedFileSection
I expected that Pageheap will force my application to crash while executing the 2nd
I am executing this string which is not literally what is below, it is
while executing the following query, i get an error that there's an error in

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.