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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:00:10+00:00 2026-05-12T06:00:10+00:00

The background is that I’ve got a celery distributed job server configured with a

  • 0

The background is that I’ve got a celery distributed job server configured with a Django view that returns the status of a running job in JSON. The job server is located at celeryserver.mydomain.com and the page I’m executing the jQuery from is http://www.mydomain.com so I shouldn’t need to consider JSONP for this should I, as the requests aren’t being made to different domains?

Watching my server logs I see that jQuery is executing the getJSON call every 3 seconds as it should (with the Javascript setInterval). It does seem to use an OPTION request, but I’ve confirmed using curl that the JSON is still returned for these request types.

The issue is that the console.log() Firebug call in the jQuery below doesn’t ever seem to run! The one before the getJSON call does. Not having a callback work is a problem for me because I was hoping to poll for a celery job status in this manner and do various things based on the status of the job.

<script type="text/javascript">
    var job_id = 'a8f25420-1faf-4084-bf45-fe3f82200ccb';

    // wait for the DOM to be loaded then start polling for conversion status
    $(document).ready(function() {
        var getConvertStatus = function(){
            console.log('getting some status');
            $.getJSON("https://celeryserver.mydomain.com/done/" + job_id,
                function(data){
                    console.log('callback works');
                });
        }
        setInterval(getConvertStatus, 3000);
    });
</script>

I’ve used curl to make sure of what I’m receiving from the server:

$ curl -D - -k -X GET https://celeryserver.mydomain.com/done/a8f25420-1faf-4084-bf45-fe3f82200ccb
HTTP/1.1 200 OK
Server: nginx/0.6.35
Date: Mon, 27 Jul 2009 06:08:42 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close

{"task": {"executed": true, "id": "a8f25420-1faf-4084-bf45-fe3f82200ccb"}}

That JSON looks fine to me and JSONlint.com validates it for me right now… I also simulated the jQuery query with -X OPTION and got exactly the same data back from the server as with a GET (content-type of application/json etc.)

I’ve been staring at this for ages now, any help greatly appreciated. I’m a pretty new jQuery user but this seems like it should be pretty problem-free so I have no idea what I’m doing wrong!

  • 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-12T06:00:10+00:00Added an answer on May 12, 2026 at 6:00 am

    I think you have a cross-subdomain issue, sub.domain.tld and domain.ltd are not the same.

    I recommend you to install Firebug and check if your code is throwing an Permission denied Exception when the request starts, if it’s the case, go for JSONP…

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

Sidebar

Ask A Question

Stats

  • Questions 154k
  • Answers 154k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Since your sample vector is a list of pointers, you… May 12, 2026 at 10:27 am
  • Editorial Team
    Editorial Team added an answer Perhaps the DSN does not retain the password. Have you… May 12, 2026 at 10:27 am
  • Editorial Team
    Editorial Team added an answer To my knowledge there is no way of doing this,… May 12, 2026 at 10:27 am

Related Questions

I'm working my way into MVC at the moment, but on my To learn
Within a Visual Basic Project I have added a resource file (resx) that contains
I am trying to create a CSS layout where the page looks like it's
The background to this question is that I need to use some user session
I have a listview that is binded to a ThreadSafeObservableCollection. The background of each

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.