Back to Collection Items
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Text.StringBuilder.ToString()
at System.IO.StreamReader.ReadToEnd()
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path)
at ChilkatApi.GenBase.ApiDefData(String className)
at ChilkatApi.XClass.LoadClass(String className, Log log)
at ChilkatApi.ApiCache.getApiClass(String className, Log log)
at ChilkatApi.ApiCache.getApiMethod(String className, String methodName, Log log)
at ChilkatCode.CodeGen.getXEntry(String className, String entryName)
at ChilkatCode.CodeGen.getEntryType(String varName, String entryName)
at ChilkatCode.Parser.objectAccess(String varName, Xml xml)
at ChilkatCode.Parser.varAccess(Xml xml)
at ChilkatCode.Parser.primaryExpression(Xml xml)
at ChilkatCode.Parser.unaryExpression(Xml xml)
at ChilkatCode.Parser.multiplicativeExpression(Xml xml)
at ChilkatCode.Parser.additiveExpression(Xml xml)
at ChilkatCode.Parser.relationalExpression(Xml xml)
at ChilkatCode.Parser.equalityExpression(Xml xml)
at ChilkatCode.Parser.andExpression(Xml xml)
at ChilkatCode.Parser.expression(Xml xml)
at ChilkatCode.Parser.declaration()
at ChilkatCode.Parser.statement()
at ChilkatCode.Parser.Chilkat()
at ChilkatCode.Parser.Parse()
at ChilkatCode.Compile.CompileForToolsIO(String srcCode, String langHashKey, StringBuilder sbHtmlOut)
Curl Command
curl -X POST
-H "posserial: Test_SerialNo1"
-H "pososversion: IOS"
-H "posmodelframework: 1"
-H "presharedkey: C68FEC13-FE34-4839-89F9-ADB0D678CFE0"
--data-urlencode 'grant_type=client_credentials'
--data-urlencode 'client_id={{clientId}}'
--data-urlencode 'client_secret={{clientSecret}}'
https://domain.com/connect/token
Postman Collection Item JSON
{
"name": "1. Authenticate POS",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var json = pm.response.json()\r",
"var accesstoken=json.access_token\r",
"pm.environment.set(\"generatedAccessToken\",accesstoken);\r",
"\r",
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "posserial",
"value": "Test_SerialNo1",
"type": "text"
},
{
"key": "pososversion",
"value": "IOS",
"type": "text"
},
{
"key": "posmodelframework",
"value": "1",
"type": "text",
"disabled": true
},
{
"key": "presharedkey",
"value": "C68FEC13-FE34-4839-89F9-ADB0D678CFE0",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "grant_type",
"value": "client_credentials",
"type": "text"
},
{
"key": "client_id",
"value": "{{clientId}}",
"type": "text"
},
{
"key": "client_secret",
"value": "{{clientSecret}}",
"type": "text"
}
]
},
"url": {
"raw": "{{idSrvBaseUrl}}/connect/token",
"host": [
"{{idSrvBaseUrl}}"
],
"path": [
"connect",
"token"
]
}
},
"response": [
]
}