Get Creditors via ServiceStack  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Re: Get Creditors via ServiceStack

Postby Scott.Pearce » Thu Oct 21, 2021 9:58 am

Are you hosting via IIS or are you hosting using the "Jiwa 7 Self Hosted REST API" windows service?
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Get Creditors via ServiceStack  Topic is solved

Postby Scott.Pearce » Thu Oct 21, 2021 5:05 pm

Add this to the top of your internal void Test() function in your project:

Code: Select all
ClientConfig.SkipEmptyArrays = true;


Issue was caused by this:

Query string is too long - client sending empty string arrays

The clue for me was the exception thrown:

Screenshot 2021-10-21 170928.png
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Previous

Return to REST API

Who is online

Users browsing this forum: No registered users and 1 guest