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
--data-urlencode 'grant_type=password'
--data-urlencode 'scope=https://api-cpe.sunat.gob.pe'
--data-urlencode 'client_id=99993656-9999-9999-90ad-9999d06d9999'
--data-urlencode 'client_secret=u3Hhp5vbb5GubHPdQ161sQ=='
--data-urlencode 'username=20307150981SOPORTE1'
--data-urlencode 'password=12345678'
https://api-seguridad.sunat.gob.pe/v1/clientessol/99993656-9999-9999-90ad-9999d06d9999/oauth2/token/
Postman Collection Item JSON
{
"name": "Get Token",
"request": {
"method": "POST",
"header": [
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "grant_type",
"value": "password",
"type": "text"
},
{
"key": "scope",
"value": "https://api-cpe.sunat.gob.pe",
"type": "text"
},
{
"key": "client_id",
"value": "99993656-9999-9999-90ad-9999d06d9999",
"type": "text"
},
{
"key": "client_secret",
"value": "u3Hhp5vbb5GubHPdQ161sQ==",
"type": "text"
},
{
"key": "username",
"value": "20307150981SOPORTE1",
"type": "text"
},
{
"key": "password",
"value": "12345678",
"type": "text"
}
]
},
"url": {
"raw": "https://api-seguridad.sunat.gob.pe/v1/clientessol/99993656-9999-9999-90ad-9999d06d9999/oauth2/token/",
"protocol": "https",
"host": [
"api-seguridad",
"sunat",
"gob",
"pe"
],
"path": [
"v1",
"clientessol",
"99993656-9999-9999-90ad-9999d06d9999",
"oauth2",
"token",
""
]
}
},
"response": [
]
}