viezel / napp.alloy.adapter.restapi

RestAPI Sync Adapter for Titanium Alloy Framework
197 stars 102 forks source link

Works but get the following error #2

Closed iantearle closed 11 years ago

iantearle commented 11 years ago

Not sure if this is a problem with the API or something else, I am using deployd and get the following error on every API call. However I get exactly what I want back.

[ERROR] :  = "<KrollCallback: 0xc3a5490>";
[ERROR] :      headers =     {
[ERROR] :          "Content-Type" = "application/json";
[ERROR] :      };
[ERROR] :      parse = 1;
[ERROR] :      success = "<KrollCallback: 0xc3a1da0>";
[ERROR] :      type = GET;
[ERROR] :      url = "http://localhost:2403/breeders";
[ERROR] :  }
viezel commented 11 years ago

Hi there,

I just updated the rest api adapter to not do that. It was for debugging purposes. but you can now use

config: {
        "URL": "http://example.com/api/modelname",
        "debug": 1, // this one - start debug mode
        "adapter": {
            "type": "restapi",
            "collection_name": "mymodelname"
        }
    }
iantearle commented 11 years ago

Sorted.

Thanks!

mlabieniec commented 11 years ago

I'm getting the same error, still not able to run with debug mode on.

viezel commented 11 years ago

Which version do you ude? Please paste tour config file