-
Notifications
You must be signed in to change notification settings - Fork 1
GetResponses() matchSingleAnswer.Success bombs with "[comment(9)]" value #1
Comments
Thanks for reporting this. Without seeing the JSON data that it's trying to parse, it's hard to troubleshoot this. Could you please post the JSON data that is returned from the API? I suggest removing any sensitive data first before posting it. Here's how you can get the data: put a breakpoint at line 278 of ApiClient.cs. Then when it hits that breakpoint, copy the value of the fullUrl variable, and then paste it into your browser. You can then copy/paste the contents of the page. |
I removed the other 'data' objects for brevity but left the first one where the last key/pair value is causing the issue e.g. comment(9). { |
I was away on vacation and did not get a chance to look at this until now. I think the problem stems from using hard-coded magic numbers in Model.cs. Try changing line 344 to this: This will use the length of the matched word (question, calc, comment), rather than a hardcoded value of 10. A similar approach can be used for the other matches. When I get time to test this change I'll push it if it works. Feel free to try making the change yourself. |
Hi Guys,
Love the API, thank you!
I'm implementing it and doing some testing against our SG account. When using GetResponses(), its bombing when the matchSingleAnswer.Success check is encountered with a value of "[comment(9)]". I took a screenshot but I don't see an option to upload it so hopefully this is enough detail to help you trouble shoot.
Thanks.
The text was updated successfully, but these errors were encountered: