no response object when creating an issue

Christian's Avatar

Christian

12 Jun, 2012 03:31 PM

Hi,

I'm having troubles receiving a response object after I successfully created an issue through the API with jQuery:

$.post(
    "http://seeclickfix.com/api/issues.json", 
    { 
        api_key: "valid-api-key",
        issue: {
            "lat": lat-float,
            "lng": lng-float,
            "summary": summary-string,
            "reporter_email": valid-email,
            "address": address-string
        }
    },
    function(data) {
        console.log("success", data);
})
.success(function() { console.log("second success"); })
.error(function() { console.log("error"); })
.complete(function() { console.log("complete"); });

The status code is 200, OK, and the issue is created, but the error handler is called and I don't see any response data. Is there something wrong with my approach?

Any insights are highly appreciated!

Thanks,
Christian

  1. Support Staff 2 Posted by Community Managers on 18 Jun, 2012 07:32 PM

    Community Managers's Avatar

    Hey Christian,

    Thank you for your message, and for your interest in SeeClickFix. I've passed your question along to our tech team, and I will give you an update as soon as I hear back from them. Please let me know if you have any other questions related to SeeClickFix.

    Regards,

    Kevin
    Community Manager
    SeeClickFix

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.