attdevsupport / att-sdk-worklight

Worklight Adapters for AT&T APIPlatform
Other
8 stars 9 forks source link

Kitchensink - Ads failing: "Cannot read property 'Ads' of undefined #32

Open tarasklimenko opened 10 years ago

tarasklimenko commented 10 years ago

The Worklight KitchenSink app is failing to call Advertisements

Logs:

05-28 11:46:07.981: D/NONE(917): response [http://192.168.43.14:10080/ATTWLApplicationProject/apps/services/api/ATTWLKitchenSink/android/query] success: /*-secure-
05-28 11:46:07.981: D/NONE(917): {"statusCode":400,"responseID":"10","RequestError":{"ServiceException":{"Text":"Invalid input value for message part %1","Variables":"","MessageId":"SVC0002"}},"isSuccessful":true,"statusReason":"Bad Request","responseHeaders":{"Content-Length":"189","Allow":"POST","Content-Type":"application\/json"},"responseTime":499,"totalTime":500}*/
05-28 11:46:08.011: D/NONE(917): Success : Response is - {"status":200,"invocationContext":{},"invocationResult":{"statusCode":400,"responseID":"10","RequestError":{"ServiceException":{"Text":"Invalid input value for message part %1","Variables":"","MessageId":"SVC0002"}},"isSuccessful":true,"statusReason":"Bad Request","responseHeaders":{"Content-Length":"189","Allow":"POST","Content-Type":"application/json"},"responseTime":499,"totalTime":500}}
05-28 11:46:08.011: E/ViewRootImpl(917): sendUserActionEvent() mView == null
05-28 11:46:08.021: E/NONE(917): [http://192.168.43.14:10080/ATTWLApplicationProject/apps/services/api/ATTWLKitchenSink/android/query] exception. TypeError: Cannot read property 'Ads' of undefined
05-28 11:46:08.101: D/CordovaLog(917): file:///android_asset/www/default/worklight/worklight.js: Line 3333 : Uncaught TypeError: Cannot read property 'Ads' of undefined
05-28 11:46:08.101: E/Web Console(917): Uncaught TypeError: Cannot read property 'Ads' of undefined:3333
mattcobb commented 10 years ago

It is calling Ads, but getting back a 400 error. It is complaining that the MessageID is invalid. Didn't know Ads had a message id.