AOTG API Error Message: Difference between revisions

From AutoCount Resource Center
Content added Content deleted
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Draft==
'''Currently taking notes'''


==AOTG Error==



AOTG Error:
1.
1.
{"Message": "The requested resource does not support http method 'DELETE'."}
{
"Message": "The requested resource does not support http method 'DELETE'."
}



Solution:
Make sure SOTC_AUTH (AccessToken) is added to the header.


2.
2.
"ResultJson": "{\"Message\":\"Your current database version 1.0.9.77 is later than the database version supported by this AOTGClient (Version: 1.0.9.76), please acquire and install latest AOTGClient.\",\"StackTrace\":\"\",\"Source\":\"PSW.SOTC.Accounting.InProcess\"}"
"ResultJson": "{\"Message\":\"Your current database version 1.0.9.77 is later than the database version supported by this AOTGClient (Version: 1.0.9.76), please acquire and install latest AOTGClient.\",\"StackTrace\":\"\",\"Source\":\"PSW.SOTC.Accounting.InProcess\"}"
{
{
Line 34: Line 34:
}
}


Solutions:
Solutions:
Update AOTG Client
Update AOTG Client



3. Service Unavailable: Get result status (d50b5d0a-9cce-4a55-bfdd-40bf0f93063f) failed with exception - The given key was not present in the dictionary.

After delete a debtor, call Get Result, it returns "503 Service Unavailable"

Solution:
Make sure SOTC_AUTH (AccessToken) is added to the header.



4. 401 Unauthorized<br/>
(Header)<br/>
Cache-Control →no-cache
Pragma →no-cache
Expires →-1
Server →Microsoft-IIS/10.0
Message →Invalid Session
X-AspNet-Version →4.0.30319
X-Powered-By →ASP.NET
Date →Fri, 01 Mar 2019 06:12:30 GMT
Content-Length →0

Solution: Make sure AccessToken is valid.

5. 404 Not Found<br/>
Occur when get RESULT
(Header)<br/>
Cache-Control →no-cache
Pragma →no-cache
Expires →-1
Server →Microsoft-IIS/10.0
X-AspNet-Version →4.0.30319
X-Powered-By →ASP.NET
Date →Fri, 01 Mar 2019 06:18:31 GMT
Content-Length →0

Solution: ?

==Stock==
===Create Stock Item===
1. Missing Detail UOM for this new Item.

Solution: make sure the '''RowState''' is assigned with correct value.
[[AOTG API: Create Stock Item|Create Stock Item]]



<br/>
<br/>

Latest revision as of 02:47, 26 August 2019

Draft

Currently taking notes

AOTG Error

1. {"Message": "The requested resource does not support http method 'DELETE'."}

Solution:
Make sure SOTC_AUTH (AccessToken) is added to the header. 

2. "ResultJson": "{\"Message\":\"Your current database version 1.0.9.77 is later than the database version supported by this AOTGClient (Version: 1.0.9.76), please acquire and install latest AOTGClient.\",\"StackTrace\":\"\",\"Source\":\"PSW.SOTC.Accounting.InProcess\"}"

 {
   "RequestId": "xxe5-d76-430-88d-5c2x4d3a28",
   "RequestName": "GetDebtorList",
   "HostName": "---",
   "IPAddress": "---",
   "RequestTypeName": null,
   "ResultJson": "{\"Message\":\"Your current database version 1.0.9.77 is later than the database version supported by this AOTGClient (Version: 1.0.9.76), please acquire and install latest AOTGClient.\",\"StackTrace\":\"\",\"Source\":\"PSW.SOTC.Accounting.InProcess\"}",
   "RequestParamJson": null,
   "ResultStream": null,
   "ResultTypeName": "PSW.SOTC.Accounting.Provider.Models.ExceptionEntity",
   "Status": "Failed",
   "Version": "1.2.19015.11001",
   "AccountBookInfo": "Plug-In 1.9 Test-1.0.9.76",
   "AccountBookDBInfo": "1.0.9.76",
   "Timestamp": "2019-02-28T01:19:53.3615122Z",
   "ResultedTimestamp": null,
   "ProcessingInterval": 0.0730796,
   "InQueueInterval": null,
   "ResultFileURL": null
}
Solutions:
Update AOTG Client


3. Service Unavailable: Get result status (d50b5d0a-9cce-4a55-bfdd-40bf0f93063f) failed with exception - The given key was not present in the dictionary.

After delete a debtor, call Get Result, it returns "503 Service Unavailable"

Solution:
Make sure SOTC_AUTH (AccessToken) is added to the header. 


4. 401 Unauthorized
(Header)
Cache-Control →no-cache Pragma →no-cache Expires →-1 Server →Microsoft-IIS/10.0 Message →Invalid Session X-AspNet-Version →4.0.30319 X-Powered-By →ASP.NET Date →Fri, 01 Mar 2019 06:12:30 GMT Content-Length →0

Solution: Make sure AccessToken is valid.

5. 404 Not Found
Occur when get RESULT (Header)
Cache-Control →no-cache Pragma →no-cache Expires →-1 Server →Microsoft-IIS/10.0 X-AspNet-Version →4.0.30319 X-Powered-By →ASP.NET Date →Fri, 01 Mar 2019 06:18:31 GMT Content-Length →0

Solution: ?

Stock

Create Stock Item

1. Missing Detail UOM for this new Item.

Solution: make sure the RowState is assigned with correct value.
Create Stock Item



See Also AOTG API


Go to menu

Go to top
Resources For AutoCount Software Developers