bcemmett / SurveyMonkeyApi-v3

Library for querying SurveyMonkey's v3 API
MIT License
37 stars 25 forks source link

Slider Control gives error when calling GetCollectorResponseDetailsList #88

Open npatibandla0214 opened 2 years ago

npatibandla0214 commented 2 years ago

When I use the Slider Control in the Survey, I get the following error: Any ideas?

System.ArgumentException: Json property left_label_id doesn't exist on object QuestionDisplayOptions

bcemmett commented 2 years ago

It sounds like you're using using this code directly, running in debug, rather than using the library through nuget.

When running in debug, if SurveyMonkey's api gives back any information for which this library's .NET objects (in the Containers folder) don't have a property to deserialize that data to, this library will throw an exception. The intention here is that the library should only be run in debug during development, and in that case you want to know when there's extra information which the api has started returning so that those properties can be added. When running in release mode, if will just ignore any data like that where it can't deserialise it.

I'd suggest using the library through nuget. Alternatively if you identify those kinds of missing properties, feel free to submit a PR adding them.