NetTalk Central

Author Topic: NT 14.20 API error  (Read 2088 times)

jking

  • Sr. Member
  • ****
  • Posts: 411
    • View Profile
    • Email
NT 14.20 API error
« 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
« Last Edit: September 01, 2024, 07:58:36 AM by jking »

jking

  • Sr. Member
  • ****
  • Posts: 411
    • View Profile
    • Email
Re: NT 14.20 API error
« Reply #1 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