matteosistisette
asked this on September 27, 2011 17:11
When you test your layer at the "Test your layer" page and something is wrong in the response from the server, the error message most of the time either doesn't make sense, or it makes perfect sense and is plainly wrong.
Just an example: I'm trying to build an API5-compliant layer, and I get this message:
This seems to indicate that there is a missing "contentType" field, but according to API 5 documentation, the hotspot has no mandatory (nor even optional) contentType field. The contentType field exists in the hotspot object only in API6; in API 5 it exists in the action object, but in my case there is no action at all. I'm sure there's something wrong in my server response but this error message is inconsistent, so either it or the api documentation is wrong.
ANOTHER example is if you happen to pass the lat and long fields of the anchor as strings rather than as floats. It took me ages to figure out. You get a completely screwed up error message that tells something about an int and shows values that are not even in the response.
Comments latest first
Hello
Could you please write your layer name?
Best Regards
Alex
yes, obviously, this was with the api version set to 5 in the filter settings.
Hello
Did you try to change on testing page in the filter settings API version to 5?
Best Regards
Alex