NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jking on August 31, 2024, 04:10:02 PM

Title: NT 14.20 API error
Post by: jking on August 31, 2024, 04:10:02 PM
Hello all,

     I'm getting an error 40 when trying to use an API to delete a record.  I'm trying from the JSON Post example created in the API documentation in my app.
 Please see attached image JSONPOST.png.  I'm confused by the error definition as it indicates trying to save a record when I'm trying to delete a record. 

     Interestingly, the HTTPGET method does delete the record as expected.  See image HTTPGET.png

I cannot see where the issue is in the JSONPOST.  Can anyone help?

Thanks,

Jeff
Title: Re: NT 14.20 API error
Post by: jking on September 03, 2024, 09:44:37 AM
Hello all,

    I think this is a prefix issue, like I had in April this year.  In that case Bruce suggested setting jsonParameter.SetMaxPrefixLength(4) to something less than 4, the default.  I'll experiment with this more later.  But for now the workaround was to check Include Field Prefixes in the Options tab of the Parameters tab in the NetWebServiceMethod template.

Thanks,

Jeff